Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Pyrex error #7

Closed
yomguy opened this issue Jan 17, 2012 · 4 comments
Closed

Build: Pyrex error #7

yomguy opened this issue Jan 17, 2012 · 4 comments

Comments

@yomguy
Copy link

yomguy commented Jan 17, 2012

with SDK r16, API r14 NDK r7:

copying docs/logos.html -> /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame/docs
copying docs/index.html -> /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame/docs
copying docs/pygame_small.gif -> /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame/docs
copying docs/pygame_powered.gif -> /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame/docs
copying docs/pygame_tiny.gif -> /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame/docs
copying docs/pygame_logo.gif -> /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame/docs
running install_egg_info
Writing /home/momo/dev/android/python-for-android/build/python-install/lib/python2.7/site-packages/pygame-1.9.1release-py2.7.egg-info
Leaving ARM enviromnent
Call build_android
Entering in ARM enviromnent
Compiler found at /home/momo/dev/android/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc

Error converting Pyrex file to C:

...
cdef char * reading
reading = android_wifi_scan()

reading_list = []

for line in filter(lambda l: l, reading.split('\n')):
                  ^

/home/momo/dev/android/python-for-android/build/android/android/android.pyx:156:23: Expected an identifier or literal

@yomguy
Copy link
Author

yomguy commented Jan 17, 2012

on Debian 6, x86_64

@tito
Copy link
Member

tito commented Jan 18, 2012

which cython version do you have ?

@tito
Copy link
Member

tito commented Jan 18, 2012

working with cython 0.15.1
Try to pip install --upgrade cython

@yomguy
Copy link
Author

yomguy commented Jan 18, 2012

OK thanks, that did it.

But now, 2 more things for building:

  • 'android' script should be in the user $PATH
  • I need to modify build.py at line 242 for the subprocess to call 'android-14' and not 'android-8'

After that, the touchtracer demo works well. Really good job !

@yomguy yomguy closed this as completed Jan 18, 2012
micahscopes pushed a commit to micahscopes/python-for-android that referenced this issue Jul 23, 2020
Add usesCleartextTraffic flag so webview works for Android 9 & 10, and --fileprovider-paths support
lazyyq pushed a commit to lazyyq/python-for-android that referenced this issue Nov 8, 2024
Fixed: Black screen issue on old android devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants