-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
recipe for pyjinius fails #731
Comments
I'm not sure what's caused this. Can you post the full log, including the original p4a command? |
This is what I get if I rerun it. Several components were built correctly..
|
Thanks for the log, but unfortunately I can't see the problem. The _io.so thing relates to the python built for android trying to access its shared libraries, which doesn't work because they're built for arm32. That's why you can get a similar error in a number of ways, but it shouldn't happen with pyjnius and I can't think of why it would. |
Workaround is to uninstall all local user cython installations and install cython using |
@cgcgcg let us know if @rafalo1333 's suggestion works. Thanks. |
I think @rafalo1333's suggestion was correct, and this should be fixed in master now. |
Hi everyone, RAN: /Users/appleapple/Desktop/CalendarIA/CAI/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v STDOUT: Traceback (most recent call last): STDERR: [INFO]: pyjnius first build failed (as expected) Exception in thread background thread for pid 63098: RAN: /Users/appleapple/Desktop/CalendarIA/venv/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./jnius/jnius.pyx STDOUT: Error compiling Cython file: ... include "jnius_compat.pxi" jnius/jnius.pyx💯0: 'config.pxi' not found Error compiling Cython file: ... include "jnius_compat.pxi" IF JNIUS_PLATFORM == "android": jnius/jnius.pyx:102:3: Compile-time name 'JNIUS_PLATFORM' not defined Error compiling Cython file: ... IF JNIUS_PLATFORM == "android": jnius/jnius.pyx:104:5: Compile-time name 'JNIUS_PLATFORM' not defined Error compiling Cython file: ... jnius/jnius_jvm_dlopen.pxi:1:0: 'config.pxi' not found Error compiling Cython file: ... IF JNIUS_PYTHON3: Error compiling Cython file: ... include "jnius_env.pxi" jnius/jnius.pyx:113:3: Compile-time name 'JNIUS_PYTHON3' not defined STDERR: Traceback (most recent call last): RAN: /Users/appleapple/Desktop/CalendarIA/venv/bin/python3 '-cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main());' ./jnius/jnius.pyx STDOUT: Error compiling Cython file: ... include "jnius_compat.pxi" jnius/jnius.pyx💯0: 'config.pxi' not found Error compiling Cython file: ... include "jnius_compat.pxi" IF JNIUS_PLATFORM == "android": jnius/jnius.pyx:102:3: Compile-time name 'JNIUS_PLATFORM' not defined Error compiling Cython file: ... IF JNIUS_PLATFORM == "android": jnius/jnius.pyx:104:5: Compile-time name 'JNIUS_PLATFORM' not defined Error compiling Cython file: ... jnius/jnius_jvm_dlopen.pxi:1:0: 'config.pxi' not found Error compiling Cython file: ... IF JNIUS_PYTHON3: Error compiling Cython file: ... include "jnius_env.pxi" jnius/jnius.pyx:113:3: Compile-time name 'JNIUS_PYTHON3' not defined STDERR: Command failed: /Users/appleapple/Desktop/CalendarIA/venv/bin/python -m pythonforandroid.toolchain create --dist_name=kvcalc --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/appleapple/Desktop/CalendarIA/CAI/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21 ENVIRONMENT: TERM = 'xterm-256color' SHELL = '/bin/bash' TMPDIR = '/var/folders/38/s153lprs32d5n6sn_c19w8240000gn/T/' CONDA_SHLVL = '0' USER = 'appleapple' COMMAND_MODE = 'unix2003' CONDA_EXE = '/Users/appleapple/anaconda3/bin/conda' SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.PpqkPympBV/Listeners' __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x52' VIRTUAL_ENV = '/Users/appleapple/Desktop/CalendarIA/venv' _CE_CONDA = '' PATH = '/Users/appleapple/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/appleapple/Desktop/CalendarIA/venv/bin:/Users/appleapple/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Users/appleapple/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.7/bin' TERMINAL_EMULATOR = 'JetBrains-JediTerm' __CFBundleIdentifier = 'com.jetbrains.pycharm' PWD = '/Users/appleapple/Desktop/CalendarIA/CAI' XPC_FLAGS = '0x0' PS1 = '(venv) \h:\W \u$ ' _CE_M = '' XPC_SERVICE_NAME = '0' SHLVL = '1' HOME = '/Users/appleapple' CONDA_PYTHON_EXE = '/Users/appleapple/anaconda3/bin/python' LOGNAME = 'appleapple' LC_CTYPE = 'en_CA.UTF-8' DISPLAY = '/private/tmp/com.apple.launchd.JG7odCqoLs/org.macosforge.xquartz:0' _ = '/Users/appleapple/Desktop/CalendarIA/venv/bin/buildozer' OLDPWD = '/Users/appleapple/Desktop/CalendarIA' PYVENV_LAUNCHER = '/Users/appleapple/Desktop/CalendarIA/venv/bin/python' PACKAGES_PATH = '/Users/appleapple/.buildozer/android/packages' ANDROIDSDK = '/Users/appleapple/.buildozer/android/platform/android-sdk' ANDROIDNDK = '/Users/appleapple/.buildozer/android/platform/android-ndk-r19c' ANDROIDAPI = '27' ANDROIDMINAPI = '21' Buildozer failed to execute the last command The error might be hidden in the log above this error Please read the full log, and search for it before raising an issue with buildozer itself. In case of a bug report, please add a full log with log_level = 2 ` |
Hi!
I am trying to get off the ground with p4a, but I run into an issue with pyjnius. Is this possibly linked to #454, since it's the same error about _io.so? I have Cython 0.23.4.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: