You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for the really awesome project! I wrote a Kivy app two years ago and tried to revive the project, but am currently stuck on building the apk. I am running into two build errors I do not quite understand.
1/2 Buildozer does not use systemwide python.
Buildozer seems to download hostpython3 and uses this python distribution to build my dependencies, but the hostpython3 distribution does not seem to have cython installed
[INFO]: -> directory context /data/tools/mapfix/.buildozer/android/platform/build/build/other_builds/pyproj-python3/armeabi-v7a__ndk_target_26/pyproj
[INFO]: -> running python -c import sys; print(sys.path)
[INFO]: Trying first build of pyproj to get cython files: this is expected to fail
[INFO]: -> running python setup.py build_ext -v
Exception in thread background thread for pid 3764:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/jan/.local/lib/python3.6/site-packages/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/home/jan/.local/lib/python3.6/site-packages/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/home/jan/.local/lib/python3.6/site-packages/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/jan/.local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /data/tools/mapfix/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3/native-build/python setup.py build_ext -v
STDOUT:
ERROR: Cython.Build.cythonize not found. Cython is required to build from a repo.
The systemwide python has cython installed:
jan@jan-notebook:~/data/tools/mapfix$ which python
/usr/bin/python
jan@jan-notebook:~/data/tools/mapfix$ python --version
Python 3.6.8
jan@jan-notebook:~/data/tools/mapfix$ python
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license"for more information.
>>> import Cython
>>> print(Cython.__version__)
0.29.13
The one used by buildozer does not:
jan@jan-notebook:~/data/tools/mapfix$ /data/tools/mapfix/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3/native-build/python --version
Python 3.7.1
jan@jan-notebook:~/data/tools/mapfix$ /data/tools/mapfix/.buildozer/android/platform/build/build/other_builds/hostpython3/desktop/hostpython3/native-build/python
Python 3.7.1 (default, Oct 23 2019, 21:24:49)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license"for more information.
>>> import Cython
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
ModuleNotFoundError: No module named 'Cython'
2/2 Buildozer does not respect all version specifications in my requirements.
Hi, Please don't open issue for multiple issue, it is hard to track down everything, and cannot close half of the opened issue :)
First of all, in cross compilation, host != target. Host is your computer, target is the final device (android device, running on ARM mostly).
When cross compiling, we compile our own python for host and target, to have matching version and be able to run locally some setup.py that will match the target version:
python-for-android don't allow to change the python3 version. Because there is patches associated to the python3 recipes, it would require us to track all the Python 3 version associated with their patch for android.
Cython is used manually for various reason (biglinking), and is not installed on the hostpython so this is expected.
As for the recipe not accepting your version, it may be because the recipe doesn't allow it. Check the recipe on python-for-android as well.
If you want to talk more about the compilation, come to the discord, and check python-for-android project. Buildozer is just a wrapper around it.
👋 @joergbrech, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
First of all, thanks for the really awesome project! I wrote a Kivy app two years ago and tried to revive the project, but am currently stuck on building the apk. I am running into two build errors I do not quite understand.
1/2 Buildozer does not use systemwide python.
Buildozer seems to download
hostpython3
and uses this python distribution to build my dependencies, but thehostpython3
distribution does not seem to have cython installedThe systemwide python has cython installed:
The one used by buildozer does not:
2/2 Buildozer does not respect all version specifications in my requirements.
I have the line
in my
buildozer.spec
but buildozer installs the latest version2.4.0
ofpyproj
, which I know does not work:Version
2.4.0
verified via:Notes
I also have the job set up in a clean container on Travis. You can find the log here and the travis config here. Thank you for looking into this!
buildozer.spec
Command:
Spec file:
Logs
You can find the buildozer build logs on travis. Let me know if you want me to attach a complete log here anyway.
The text was updated successfully, but these errors were encountered: