Skip to content

ERROR Backend 'setuptools.build_meta:__legacy__' is not available. #3300

Closed

Description

@SNEHASISHROY-125

p4a.branch = develop

[INFO]:    materialyoucolor apparently isn't already in site-packages
[DEBUG]:   -> running pip3 install materialyoucolor==2.0.10 --ignore-installed --disable-pip-version-check --python-version 3.14.2 --only-binary=:all: --no-deps --platform=android_24_arm64_v8a --platform=android_24_aarch64 --dry-run -q
[DEBUG]:        ERROR: Could not find a version that satisfies the requirement materialyoucolor==2.0.10 (from versions: 1.0, 1.1, 1.2.0, 3.0.1)
[DEBUG]:        ERROR: No matching distribution found for materialyoucolor==2.0.10
[DEBUG]:   
Exception in thread background thread for pid 377:
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 1642, in wrap
    fn(*rgs, **kwargs)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 2647, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 2338, in fn
    return self.command.handle_command_exit_code(exit_code)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 823, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/bin/pip3 install materialyoucolor==2.0.10 --ignore-installed --disable-pip-version-check --python-version 3.14.2 --only-binary=:all: --no-deps --platform=android_24_arm64_v8a --platform=android_24_aarch64 --dry-run -q

  STDOUT:
ERROR: Could not find a version that satisfies the requirement materialyoucolor==2.0.10 (from versions: 1.0, 1.1, 1.2.0, 3.0.1)
ERROR: No matching distribution found for materialyoucolor==2.0.10


  STDERR:

[DEBUG]:   -> running pip3 install build[virtualenv] pip setuptools patchelf setuptools --target /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/ --python-version 3.14.2 --only-binary=:all: --upgrade
[DEBUG]:        Collecting pip
[DEBUG]:          Downloading pip-26.0.1-py3-none-any.whl.metadata (4.7 kB)
[DEBUG]:        Collecting setuptools
[DEBUG]:          Using cached setuptools-82.0.1-py3-none-any.whl.metadata (6.5 kB)
[DEBUG]:        Collecting patchelf
[DEBUG]:          Downloading patchelf-0.17.2.4-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.musllinux_1_1_x86_64.whl.metadata (3.7 kB)
[DEBUG]:        Collecting build[virtualenv]
[DEBUG]:          Using cached build-1.4.3-py3-none-any.whl.metadata (5.8 kB)
[DEBUG]:        Collecting packaging>=24.0 (from build[virtualenv])
[DEBUG]:          Downloading packaging-26.1-py3-none-any.whl.metadata (3.5 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.31 (from build[virtualenv])
[DEBUG]:          Downloading virtualenv-21.2.4-py3-none-any.whl.metadata (3.5 kB)
[DEBUG]:        Collecting distlib<1,>=0.3.7 (from virtualenv>=20.31->build[virtualenv])
[DEBUG]:          Downloading distlib-0.4.0-py2.py3-none-any.whl.metadata (5.2 kB)
[DEBUG]:        Collecting filelock<4,>=3.24.2 (from virtualenv>=20.31->build[virtualenv])
[DEBUG]:          Downloading filelock-3.28.0-py3-none-any.whl.metadata (2.0 kB)
[DEBUG]:        Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.31->build[virtualenv])
[DEBUG]:          Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB)
[DEBUG]:        Collecting python-discovery>=1.2.2 (from virtualenv>=20.31->build[virtualenv])
[DEBUG]:          Downloading python_discovery-1.2.2-py3-none-any.whl.metadata (5.4 kB)
[DEBUG]:        Using cached build-1.4.3-py3-none-any.whl (26 kB)
[DEBUG]:        Downloading pip-26.0.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 1.9 MB/s  0:00:01
[DEBUG]:        Using cached setuptools-82.0.1-py3-none-any.whl (1.0 MB)
[DEBUG]:        Downloading patchelf-0.17.2.4-py3-none-manylinux1_x86_64.manylinux_2_5_x86_64.musllinux_1_1_x86_64.whl (482 kB)
[DEBUG]:        Downloading packaging-26.1-py3-none-any.whl (95 kB)
[DEBUG]:        Downloading virtualenv-21.2.4-py3-none-any.whl (5.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 988.9 kB/s  0:00:05
[DEBUG]:        Downloading distlib-0.4.0-py2.py3-none-any.whl (469 kB)
[DEBUG]:        Downloading filelock-3.28.0-py3-none-any.whl (39 kB)
[DEBUG]:        Downloading platformdirs-4.9.6-py3-none-any.whl (21 kB)
[DEBUG]:        Downloading python_discovery-1.2.2-py3-none-any.whl (31 kB)
[DEBUG]:        Using cached pyproject_hooks-1.2.0-py3-none-any.whl (10 kB)
[DEBUG]:        Installing collected packages: distlib, setuptools, pyproject_hooks, platformdirs, pip, patchelf, packaging, filelock, python-discovery, build, virtualenv
Successfully installed build-1.4.3 distlib-0.4.0 filelock-3.28.0 packaging-26.1 patchelf-0.17.2.4 pip-26.0.1 platformdirs-4.9.6 pyproject_hooks-1.2.0 python-discovery-1.2.2 setuptools-82.0.1 virtualenv-21.2.4
[DEBUG]:   
[DEBUG]:        [notice] A new release of pip is available: 25.3 -> 26.0.1
[DEBUG]:        [notice] To update, run: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -m pip install --upgrade pip
[INFO]:    Fixing shebang for '/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/bin/pip3'
[INFO]:    Fixing shebang for '/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/bin/pip'
[INFO]:    Fixing shebang for '/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/bin/virtualenv'
[INFO]:    Fixing shebang for '/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/bin/pip3.14'
[INFO]:    Fixing shebang for '/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/bin/pyproject-build'
[DEBUG]:   Create directory /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/materialyoucolor/arm64-v8a__ndk_target_24/materialyoucolor/p4a_android_build
[DEBUG]:   -> running cp /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/python3
[INFO]:    -> directory context /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/materialyoucolor/arm64-v8a__ndk_target_24/materialyoucolor
[DEBUG]:   -> running python3 -m build --wheel --config-setting builddir=/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/materialyoucolor/arm64-v8a__ndk_target_24/materialyoucolor/p4a_android_build
[DEBUG]:        * Creating isolated environment: venv+pip...
[DEBUG]:        * Installing packages in isolated environment:
[DEBUG]:          - setuptools >= 40.8.0
[DEBUG]:        * Getting build dependencies for wheel...
[DEBUG]:   
[DEBUG]:        Traceback (most recent call last):
[DEBUG]:          File "/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
[DEBUG]:            raise BackendUnavailable(
[DEBUG]:            ...<4 lines>...
[DEBUG]:            )
[DEBUG]:        pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'
[DEBUG]:   
[DEBUG]:        ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
Exception in thread background thread for pid 405:
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 1642, in wrap
    fn(*rgs, **kwargs)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 2647, in background_thread
    handle_exit_code(exit_code)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 2338, in fn
    return self.command.handle_command_exit_code(exit_code)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 823, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/python3 -m build --wheel --config-setting builddir=/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/materialyoucolor/arm64-v8a__ndk_target_24/materialyoucolor/p4a_android_build

  STDOUT:
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - setuptools >= 40.8.0
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
    ...<4 lines>...
    )
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.


  STDERR:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1290, in <module>
    main()
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 721, in __init__
    getattr(self, command)(args)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx,
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 530, in build_recipes
    recipe.build_arch(arch)
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 1413, in build_arch
    shprint(
  File "/home/user/hostcwd/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
    for line in output:
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 879, in __next__
    self.wait()
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 796, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/user/.venv/lib/python3.12/site-packages/sh.py", line 823, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_24/python3/android-build/python3 -m build --wheel --config-setting builddir=/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/materialyoucolor/arm64-v8a__ndk_target_24/materialyoucolor/p4a_android_build

  STDOUT:
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
  - setuptools >= 40.8.0
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/home/user/hostcwd/.buildozer/android/platform/build-arm64-v8a/build/other_builds/hostpython3/desktop/hostpython3/native-build/root/usr/local/lib/python3.14/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
    ...<4 lines>...
    )
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta:__legacy__' is not available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions