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
[ yes] I have a short, runnable example that reproduces the issue
I reproduced the problem with the latest development version (p4a.branch = develop)
I used the grave accent (aka backticks) to format code or logs when appropriated
Versions
Python:3.10.13
OS:22.04.3-Ubuntu
Kivy:2.3.0
Cython:0.29.32
OpenJDK:"17.0.12"
Description
I was building a Flet application with zmq functionalities. So I tried to build the pyzmq library for android as it already had a recipe. But i am getting error . Since its a Flet app, i don't know where the buildozer.spec file is.
p4a command used
Command:
p4a create --requirements pyzmq --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir /home/user/Android/Sdk/ --ndk-dir /home/user/Android/Sdk/ndk/25.1.8937393/ --dist-name mydist
// Keep the triple grave accent (aka backquote/backtick) to have the code formatted
Spec file:
I don't know where the spec file is
Logs
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Will compile for the following archs: armeabi-v7a, arm64-v8a, x86_64
[INFO]: Android API target was not set manually, using the default of 33
[INFO]: Available Android APIs are (31, 33, 34, 35)
[INFO]: Requested API target 33 is available, continuing.
[INFO]: Getting NDK dir from from user argument
[INFO]: Found NDK version 25b
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=33, default ndk-api=21)
[INFO]: ccache is missing, the build will not be optimized in the future.
[INFO]: No existing dists meet the given requirements!
[INFO]: No dist exists that meets your requirements, so one will be built.
[INFO]: Found a single valid recipe set: ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sqlite3', 'python3', 'setuptools', 'pyzmq']
[INFO]: Trying to find a bootstrap that matches the given recipes.
[INFO]: Found 4 acceptable bootstraps: ['webview', 'service_only', 'sdl2', 'service_library']
[INFO]: Using the highest ranked/first of these: service_only
[INFO]: Found a single valid recipe set: ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'pyzmq', 'six', 'pyjnius', 'android']
[INFO]: The selected bootstrap is service_only
[INFO]: # Creating dist with service_only bootstrap
[INFO]: Dist will have name mydist and requirements (pyzmq)
[INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'pyzmq', 'six', 'pyjnius', 'android']
[INFO]: Dist will also contain modules () installed from pip
[INFO]: Dist will be build in mode debug
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/service_only
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Recipe build order is ['hostpython3', 'libffi', 'libzmq', 'openssl', 'sqlite3', 'python3', 'genericndkbuild', 'setuptools', 'pyzmq', 'six', 'pyjnius', 'android']
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython3
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/hostpython3
[INFO]: -> running basename https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz
[INFO]: hostpython3 download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading libffi
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/libffi
[INFO]: -> running basename https://github.com/libffi/libffi/archive/v3.4.2.tar.gz
[INFO]: libffi download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading libzmq
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/libzmq
[INFO]: -> running basename https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.zip
[INFO]: libzmq download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading openssl
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/openssl
[INFO]: -> running basename https://www.openssl.org/source/openssl-1.1.1w.tar.gz
[INFO]: openssl download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading sqlite3
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/sqlite3
[INFO]: -> running basename https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip
[INFO]: sqlite3 download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading python3
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/python3
[INFO]: -> running basename https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz
[INFO]: python3 download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading genericndkbuild
[INFO]: Skipping genericndkbuild download as no URL is set
[INFO]: Downloading setuptools
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/setuptools
[INFO]: -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-69.2.0.tar.gz
[INFO]: setuptools download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading pyzmq
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/pyzmq
[INFO]: -> running basename https://github.com/zeromq/pyzmq/archive/v22.3.0.zip
[INFO]: -> running rm -f .mark-v22.3.0.zip
[INFO]: Downloading pyzmq from https://github.com/zeromq/pyzmq/archive/v22.3.0.zip
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading six
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/six
[INFO]: -> running basename https://pypi.python.org/packages/source/s/six/six-1.15.0.tar.gz
[INFO]: six download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading pyjnius
[INFO]: -> directory context /home/user/.local/share/python-for-android/packages/pyjnius
[INFO]: -> running basename https://github.com/kivy/pyjnius/archive/1.6.1.zip
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Downloading android
[INFO]: Skipping android download as no URL is set
[INFO]: # Building all recipes for arch armeabi-v7a
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython3 for armeabi-v7a
[INFO]: -> running basename https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop
[INFO]: hostpython3 is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking libffi for armeabi-v7a
[INFO]: -> running basename https://github.com/libffi/libffi/archive/v3.4.2.tar.gz
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21
[INFO]: libffi is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking libzmq for armeabi-v7a
[INFO]: -> running basename https://github.com/zeromq/libzmq/releases/download/v4.3.4/zeromq-4.3.4.zip
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21
[INFO]: libzmq is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking openssl for armeabi-v7a
[INFO]: -> running basename https://www.openssl.org/source/openssl-1.1.1w.tar.gz
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/openssl/armeabi-v7a__ndk_target_21
[INFO]: openssl is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking sqlite3 for armeabi-v7a
[INFO]: -> running basename https://www.sqlite.org/2021/sqlite-amalgamation-3350500.zip
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21
[INFO]: sqlite3 is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking python3 for armeabi-v7a
[INFO]: -> running basename https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/python3/armeabi-v7a__ndk_target_21
[INFO]: python3 is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking genericndkbuild for armeabi-v7a
[INFO]: Skipping genericndkbuild unpack as no URL is set
[INFO]: Unpacking setuptools for armeabi-v7a
[INFO]: -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-69.2.0.tar.gz
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/setuptools/armeabi-v7a__ndk_target_21
[INFO]: setuptools is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking pyzmq for armeabi-v7a
[INFO]: -> running basename https://github.com/zeromq/pyzmq/archive/v22.3.0.zip
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21
[INFO]: pyzmq is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking six for armeabi-v7a
[INFO]: -> running basename https://pypi.python.org/packages/source/s/six/six-1.15.0.tar.gz
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/six/armeabi-v7a__ndk_target_21
[INFO]: six is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Unpacking pyjnius for armeabi-v7a
[INFO]: -> running basename https://github.com/kivy/pyjnius/archive/1.6.1.zip
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/pyjnius-genericndkbuild/armeabi-v7a__ndk_target_21
[INFO]: pyjnius is already unpacked, skipping
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: -> running cp -a /home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/pythonforandroid/recipes/android/s...(and 123 more)
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython3 for armeabi-v7a
[INFO]: hostpython3 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for hostpython3[armeabi-v7a]
[INFO]: hostpython3 already patched, skipping
[INFO]: Prebuilding libffi for armeabi-v7a
[INFO]: libffi has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for libffi[armeabi-v7a]
[INFO]: libffi already patched, skipping
[INFO]: Prebuilding libzmq for armeabi-v7a
[INFO]: libzmq has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding openssl for armeabi-v7a
[INFO]: openssl has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding sqlite3 for armeabi-v7a
[INFO]: sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding python3 for armeabi-v7a
[INFO]: python3 has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for python3[armeabi-v7a]
[INFO]: python3 already patched, skipping
[INFO]: Prebuilding genericndkbuild for armeabi-v7a
[INFO]: genericndkbuild has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding setuptools for armeabi-v7a
[INFO]: setuptools has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding pyzmq for armeabi-v7a
[INFO]: pyzmq has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding six for armeabi-v7a
[INFO]: six has no prebuild_armeabi_v7a, skipping
[INFO]: Prebuilding pyjnius for armeabi-v7a
[INFO]: pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]: Applying patches for pyjnius[armeabi-v7a]
[INFO]: pyjnius already patched, skipping
[INFO]: Prebuilding android for armeabi-v7a
[INFO]: android has no prebuild_armeabi_v7a, skipping
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/android-genericndkbuild/armeabi-v7a__ndk_target_21/android
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: # Building recipes
[INFO]: Building hostpython3 for armeabi-v7a
[INFO]: hostpython3 said it is already built, skipping
[INFO]: Building libffi for armeabi-v7a
[INFO]: libffi said it is already built, skipping
[INFO]: -> running cp /home/user/.local/share/python-for-android/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/.libs/libffi...(and 88 more)
[INFO]: Building libzmq for armeabi-v7a
[INFO]: libzmq said it is already built, skipping
[INFO]: -> running cp /home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/src/.libs/li...(and 92 more)
[INFO]: Building openssl for armeabi-v7a
[INFO]: openssl said it is already built, skipping
[INFO]: -> running cp /home/user/.local/share/python-for-android/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/libssl1...(and 214 more)
[INFO]: Building sqlite3 for armeabi-v7a
[INFO]: sqlite3 said it is already built, skipping
[INFO]: Building python3 for armeabi-v7a
[INFO]: python3 said it is already built, skipping
[INFO]: Building genericndkbuild for armeabi-v7a
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/bootstrap_builds/service_only/jni
[INFO]: -> running ndk-build V=1
[INFO]: <- directory context /home/user/Desktop/Testing/Ashish/FLET/flet_network/v01_ZMQ/v02/v02
[INFO]: Building setuptools for armeabi-v7a
[INFO]: Python package already exists in site-packages
[INFO]: setuptools said it is already built, skipping
[INFO]: Building pyzmq for armeabi-v7a
[INFO]: zmq apparently isn't already in site-packages
[INFO]: Cythonizing anything necessary in pyzmq
[INFO]: -> directory context /home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/pyzmq
[INFO]: -> running python3 -c import sys; print(sys.path)
[INFO]: Trying first build of pyzmq to get cython files: this is expected to fail
[INFO]: -> running python3 setup.py build_ext -v --zmq=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__...(and 28 more)
working: please contact that package's maintainers or distributors. Exception in thread background thread for pid 66434:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v --zmq=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/install
STDOUT:
/home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/pyzmq/setup.py:1155: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if V(Cython.__version__) < V(min_cython_version):
/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING: The wheel package is not available.
Traceback (most recent call last):
File "/home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/pyzmq/setup.py", line 1378, in <module>
setup(**setup_args)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 103, in setup
_install_setup_requires(attrs)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 76, in _install_setup_requires
_fetch_build_eggs(dist)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 81, in _fetch_build_eggs
dist.fetch_build_eggs(dist.setup_requires)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/dist.py", line 640, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/__init__.py", line 795, in resolve
if not req_extras.markers_pass(req, extras):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/__init__.py", line 997, in markers_pass
return not req.marker or any(extra_evals)
^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/__init__.py", line 994, in <genexpr>
req.marker.evaluate({'extra': extra})
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py", line 252, in evaluate
return _evaluate_markers(self._markers, current_environment)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py", line 158, in _evaluate_markers
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py", line 116, in _eval_op
return spec.contains(lhs, prereleases=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 568, in contains
normalized_item = _coerce_version(item)
^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 36, in _coerce_version
version = Version(version)
^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/version.py", line 198, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
It is possible a package already installed in your system
contains an version that is invalid according to PEP 440.
You can try `pip install --use-pep517` as a workaround for this problem,
or rely on a new virtual environment.
If the problem refers to a package that is not installed yet,
please contact that package's maintainers or distributors.
STDERR:
[INFO]: pyzmq first build failed (as expected)
[INFO]: Running cython where appropriate
[INFO]: Cythonize examples/cython/cyzmq.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./examples/cython/cyzmq.pyx
[INFO]: Cythonize zmq/backend/cython/_poll.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/_poll.pyx
[INFO]: Cythonize zmq/backend/cython/message.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/message.pyx
[INFO]: Cythonize zmq/backend/cython/socket.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/socket.pyx
[INFO]: Cythonize zmq/backend/cython/context.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/context.pyx
[INFO]: Cythonize zmq/backend/cython/_proxy_steerable.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cyt...(and 24 more)
[INFO]: Cythonize zmq/backend/cython/constants.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/constants.pyx
[INFO]: Cythonize zmq/backend/cython/_device.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/_device.pyx
[INFO]: Cythonize zmq/backend/cython/error.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/error.pyx
[INFO]: Cythonize zmq/backend/cython/_version.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/_version.pyx
[INFO]: Cythonize zmq/backend/cython/rebuffer.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/rebuffer.pyx
[INFO]: Cythonize zmq/backend/cython/utils.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/backend/cython/utils.pyx
[INFO]: Cythonize zmq/tests/cython_ext.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/tests/cython_ext.pyx
[INFO]: Cythonize zmq/devices/monitoredqueue.pyx
[INFO]: -> running python3 -cimport sys; from Cython.Compiler.Main import setuptools_main; sys.exit(setuptools_main()); ./zmq/devices/monitoredqueue.pyx
[INFO]: -> running python3 setup.py build_ext -v --zmq=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__...(and 28 more)
working: please contact that package's maintainers or distributors. Exception in thread background thread for pid 66656:
Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 1641, in wrap
fn(*rgs, **kwargs)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 2569, in background_thread
handle_exit_code(exit_code)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 2269, in fn
return self.command.handle_command_exit_code(exit_code)
File "/home/user/Desktop/Testing/Ashish/FLET/flet_venv/lib/python3.10/site-packages/sh.py", line 869, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:
RAN: /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v --zmq=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/install
STDOUT:
/home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/pyzmq/setup.py:1155: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if V(Cython.__version__) < V(min_cython_version):
/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py:81: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
WARNING: The wheel package is not available.
Traceback (most recent call last):
File "/home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/pyzmq/setup.py", line 1378, in <module>
setup(**setup_args)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 103, in setup
_install_setup_requires(attrs)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 76, in _install_setup_requires
_fetch_build_eggs(dist)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/__init__.py", line 81, in _fetch_build_eggs
dist.fetch_build_eggs(dist.setup_requires)
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/dist.py", line 640, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/__init__.py", line 795, in resolve
if not req_extras.markers_pass(req, extras):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/__init__.py", line 997, in markers_pass
return not req.marker or any(extra_evals)
^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/__init__.py", line 994, in <genexpr>
req.marker.evaluate({'extra': extra})
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py", line 252, in evaluate
return _evaluate_markers(self._markers, current_environment)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py", line 158, in _evaluate_markers
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py", line 116, in _eval_op
return spec.contains(lhs, prereleases=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 568, in contains
normalized_item = _coerce_version(item)
^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 36, in _coerce_version
version = Version(version)
^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/version.py", line 198, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
It is possible a package already installed in your system
contains an version that is invalid according to PEP 440.
You can try `pip install --use-pep517` as a workaround for this problem,
or rely on a new virtual environment.
If the problem refers to a package that is not installed yet,
please contact that package's maintainers or distributors.
STDERR:
[INFO]: STDOUT (last 20 lines of 63):
return spec.contains(lhs, prereleases=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 568, in contains
normalized_item = _coerce_version(item)
^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/specifiers.py", line 36, in _coerce_version
version = Version(version)
^^^^^^^^^^^^^^^^
File "/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/pkg_resources/_vendor/packaging/version.py", line 198, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'cpython'
It is possible a package already installed in your system
contains an version that is invalid according to PEP 440.
You can try `pip install --use-pep517` as a workaround for this problem,
or rely on a new virtual environment.
If the problem refers to a package that is not installed yet,
please contact that package's maintainers or distributors.
[INFO]: STDERR:
[INFO]: ENV:
export HOME='/home/user'
export CFLAGS='-target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -I/home/user/.local/share/python-for-android/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/Include'
export CXXFLAGS='-target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC'
export CPPFLAGS='-DANDROID -I/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/user/.local/share/python-for-android/build/python-installs/mydist/armeabi-v7a/include/python3.1'
export LDFLAGS=' -L/home/user/.local/share/python-for-android/build/libs_collections/mydist/armeabi-v7a -L/home/user/.local/share/python-for-android/build/other_builds/python3/armeabi-v7a__ndk_target_21/python3/android-build -lpython3.11 -L/home/user/.local/share/python-for-android/build/libs_collections/mydist/armeabi-v7a -L/home/user/.local/share/python-for-android/build/libs_collections/mydist -L/home/user/.local/share/python-for-android/build/bootstrap_builds/service_only/obj/local/armeabi-v7a '
export LDLIBS='-lm'
export PATH='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin:/home/user/Android/Sdk/ndk/25.1.8937393:/home/user/Android/Sdk/tools:/home/user/Desktop/Testing/Ashish/FLET/flet_venv/bin:/home/user/.cargo/bin:/usr/bin/flutter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/user/.local/bin'
export CC='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC'
export CXX='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC'
export AR='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar'
export RANLIB='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib'
export STRIP='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip --strip-unneeded'
export READELF='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-readelf'
export OBJCOPY='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-objcopy'
export MAKE='make -j12'
export ARCH='armeabi-v7a'
export NDK_API='android-21'
export LDSHARED='/home/user/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-linux-androideabi21 -fomit-frame-pointer -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb -fPIC -shared'
export BUILDLIB_PATH='/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/lib.linux-x86_64-3.11'
export PYTHONNOUSERSITE='1'
export LANG='en_GB.UTF-8'
export PYTHONPATH='/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib:/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages:/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/scripts-3.11:/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/temp.linux-x86_64-3.11:/home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/build/lib.linux-x86_64-3.11'
export LIBLINK='NOTNONE'
export LIBLINK_PATH='/home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/objects_pyzmq'
[INFO]: COMMAND:
cd /home/user/.local/share/python-for-android/build/other_builds/pyzmq/armeabi-v7a__ndk_target_21/pyzmq && /home/user/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 setup.py build_ext -v --zmq=/home/user/.local/share/python-for-android/build/other_builds/libzmq/armeabi-v7a__ndk_target_21/libzmq/install
// Keep the triple grave accent (a.k.a. backquote/backtick) to have the code formatted
The text was updated successfully, but these errors were encountered:
Checklist
p4a.branch = develop
)Versions
Description
I was building a Flet application with zmq functionalities. So I tried to build the pyzmq library for android as it already had a recipe. But i am getting error . Since its a Flet app, i don't know where the buildozer.spec file is.
p4a command used
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: