Skip to content

PyJnius 1.7.0 build fails from p4a develop branch #3215

@sdas92

Description

@sdas92

Error

Throws: error: error in /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_28/pyjnius/build-opts.cfg: command 'bdist_wheel' has no such option 'plat-name'

[INFO]:    <- directory context /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/python-for-android
[INFO]:    Building pyjnius for arm64-v8a
[INFO]:    jnius apparently isn't already in site-packages
[DEBUG]:   -> running pip install build[virtualenv] pip Cython<3.2 --target /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages --python-version 3.11.5 --only-binary=:all: --upgrade
[DEBUG]:        Collecting pip
[DEBUG]:          Using cached pip-25.2-py3-none-any.whl.metadata (4.7 kB)
[DEBUG]:        Collecting Cython<3.2
[DEBUG]:          Using cached cython-3.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (5.0 kB)
[DEBUG]:        Collecting build[virtualenv]
[DEBUG]:          Using cached build-1.3.0-py3-none-any.whl.metadata (5.6 kB)
[DEBUG]:        Collecting packaging>=19.1 (from build[virtualenv])
[DEBUG]:          Using cached packaging-25.0-py3-none-any.whl.metadata (3.3 kB)
[DEBUG]:        Collecting pyproject_hooks (from build[virtualenv])
[DEBUG]:          Using cached pyproject_hooks-1.2.0-py3-none-any.whl.metadata (1.3 kB)
[DEBUG]:        Collecting virtualenv>=20.17 (from build[virtualenv])
[DEBUG]:          Using cached virtualenv-20.34.0-py3-none-any.whl.metadata (4.6 kB)
[DEBUG]:        Collecting distlib<1,>=0.3.7 (from virtualenv>=20.17->build[virtualenv])
[DEBUG]:          Using cached distlib-0.4.0-py2.py3-none-any.whl.metadata (5.2 kB)
[DEBUG]:        Collecting filelock<4,>=3.12.2 (from virtualenv>=20.17->build[virtualenv])
[DEBUG]:          Using cached filelock-3.19.1-py3-none-any.whl.metadata (2.1 kB)
[DEBUG]:        Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.17->build[virtualenv])
[DEBUG]:          Using cached platformdirs-4.4.0-py3-none-any.whl.metadata (12 kB)
[DEBUG]:        Using cached cython-3.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.3 MB)
[DEBUG]:        Using cached build-1.3.0-py3-none-any.whl (23 kB)
[DEBUG]:        Using cached pip-25.2-py3-none-any.whl (1.8 MB)
[DEBUG]:        Using cached packaging-25.0-py3-none-any.whl (66 kB)
[DEBUG]:        Using cached virtualenv-20.34.0-py3-none-any.whl (6.0 MB)
[DEBUG]:        Using cached distlib-0.4.0-py2.py3-none-any.whl (469 kB)
[DEBUG]:        Using cached filelock-3.19.1-py3-none-any.whl (15 kB)
[DEBUG]:        Using cached platformdirs-4.4.0-py3-none-any.whl (18 kB)
[DEBUG]:        Using cached pyproject_hooks-1.2.0-py3-none-any.whl (10 kB)
[DEBUG]:        Installing collected packages: distlib, pyproject_hooks, platformdirs, pip, packaging, filelock, Cython, virtualenv, build
Successfully installed Cython-3.1.4 build-1.3.0 distlib-0.4.0 filelock-3.19.1 packaging-25.0 pip-25.2 platformdirs-4.4.0 pyproject_hooks-1.2.0 virtualenv-20.34.0
[DEBUG]:   Create directory /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_28/pyjnius/p4a_android_build
[DEBUG]:   -> running cp /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_28/python3/android-build/python3
[INFO]:    -> directory context /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_28/pyjnius
[DEBUG]:   -> running python3 -m build --wheel --config-setting builddir=/home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_28/pyjnius/p4a_android_build
[DEBUG]:        * Creating isolated environment: venv+pip...
[DEBUG]:        * Installing packages in isolated environment:
[DEBUG]:          - Cython~=3.1.2
[DEBUG]:          - setuptools>=58.0.0
[DEBUG]:          - wheel
[DEBUG]:        * Getting build dependencies for wheel...
[DEBUG]:        Ignoring "sys._home = value" override
[DEBUG]:        warning: [options] bootstrap class path not set in conjunction with -source 8
[DEBUG]:        1 warning
[DEBUG]:        /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[DEBUG]:        !!
[DEBUG]:   
[DEBUG]:                ********************************************************************************
[DEBUG]:                Please consider removing the following classifiers in favor of a SPDX license expression:
[DEBUG]:   
[DEBUG]:                License :: OSI Approved :: MIT License
[DEBUG]:   
[DEBUG]:                See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[DEBUG]:                ********************************************************************************
[DEBUG]:   
[DEBUG]:        !!
[DEBUG]:          self._finalize_license_expression()
[DEBUG]:        running egg_info
[DEBUG]:        creating pyjnius.egg-info
[DEBUG]:        writing pyjnius.egg-info/PKG-INFO
[DEBUG]:        writing dependency_links to pyjnius.egg-info/dependency_links.txt
[DEBUG]:        writing requirements to pyjnius.egg-info/requires.txt
[DEBUG]:        writing top-level names to pyjnius.egg-info/top_level.txt
[DEBUG]:        writing manifest file 'pyjnius.egg-info/SOURCES.txt'
[DEBUG]:        reading manifest file 'pyjnius.egg-info/SOURCES.txt'
[DEBUG]:        reading manifest template 'MANIFEST.in'
[DEBUG]:        adding license file 'LICENSE'
[DEBUG]:        writing manifest file 'pyjnius.egg-info/SOURCES.txt'
[DEBUG]:        * Building wheel...
[DEBUG]:        Ignoring "sys._home = value" override
[DEBUG]:        warning: [options] bootstrap class path not set in conjunction with -source 8
[DEBUG]:        1 warning
[DEBUG]:        /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
[DEBUG]:        !!
[DEBUG]:   
[DEBUG]:                ********************************************************************************
[DEBUG]:                Please consider removing the following classifiers in favor of a SPDX license expression:
[DEBUG]:   
[DEBUG]:                License :: OSI Approved :: MIT License
[DEBUG]:   
[DEBUG]:                See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[DEBUG]:                ********************************************************************************
[DEBUG]:   
[DEBUG]:        !!
[DEBUG]:          self._finalize_license_expression()
[DEBUG]:        running bdist_wheel
[DEBUG]:        error: error in /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_28/pyjnius/build-opts.cfg: command 'bdist_wheel' has no such option 'plat-name'
[DEBUG]:   
[DEBUG]:        ERROR Backend subprocess exited when trying to invoke build_wheel
Exception in thread background thread for pid 186540:
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/home/somnath/codes/git/my-org/vision-ai/onnx/.env/lib/python3.11/site-packages/sh.py", line 1642, in wrap
    fn(*rgs, **kwargs)
  File "/home/somnath/codes/git/my-org/vision-ai/onnx/.env/lib/python3.11/site-packages/sh.py", line 2647, in background_thread
    handle_exit_code(exit_code)
  File "/home/somnath/codes/git/my-org/vision-ai/onnx/.env/lib/python3.11/site-packages/sh.py", line 2338, in fn
    return self.command.handle_command_exit_code(exit_code)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/somnath/codes/git/my-org/vision-ai/onnx/.env/lib/python3.11/site-packages/sh.py", line 823, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_28/python3/android-build/python3 -m build --wheel --config-setting builddir=/home/somnath/codes/git/my-org/vision-ai/onnx/.buildozer/android/platform/build-arm64-v8a/build/other_builds/pyjnius-sdl2/arm64-v8a__ndk_target_28/pyjnius/p4a_android_build

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions