Skip to content
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

3.29.x Installation on RPi Bullseye for Python 3.9 fails #494

Open
AlvinSchiller opened this issue Apr 20, 2024 · 4 comments
Open

3.29.x Installation on RPi Bullseye for Python 3.9 fails #494

AlvinSchiller opened this issue Apr 20, 2024 · 4 comments

Comments

@AlvinSchiller
Copy link

AlvinSchiller commented Apr 20, 2024

Running a pip installation on a Raspyberry Pi with Pi OS Bullseye for cmake 3.29.x does not work as there seems to be no wheels available for Python 3.9 and ARM.
For Bookworm with Python 3.11, or using cmake 3.28.x the installation succeeds
https://www.piwheels.org/project/cmake/json/

(.venv) pi@phoniebox:~/RPi-Jukebox-RFID $ pip install --no-cache-dir cmake

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting cmake
  Downloading cmake-3.29.2.tar.gz (30 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install backend dependencies did not run successfully.
  │ exit code: 2
  ╰─> [54 lines of output]
      Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
      Collecting ninja>=1.5
        Using cached https://www.piwheels.org/simple/ninja/ninja-1.11.1.1-cp39-cp39-linux_armv7l.whl (132 kB)
      Collecting cmake
        Using cached cmake-3.29.2.tar.gz (30 kB)
      ERROR: Exception:
      Traceback (most recent call last):
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
          status = run_func(*args)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
          return func(self, options, args)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 377, in run
          requirement_set = resolver.resolve(
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
          result = self._result = resolver.resolve(
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
          state = resolution.resolve(requirements, max_rounds=max_rounds)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
          self._add_to_criteria(self.state.criteria, r, parent=None)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
          if not criterion.candidates:
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
          return bool(self._sequence)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
          return any(self)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
          return (c for c in iterator if id(c) not in self._incompatible_ids)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
          candidate = func()
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 182, in _make_candidate_from_link
          base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 228, in _make_base_candidate_from_link
          self._link_candidate_cache[link] = LinkCandidate(
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 290, in __init__
          super().__init__(
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
          self.dist = self._prepare()
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
          dist = self._prepare_distribution()
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 301, in _prepare_distribution
          return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement
          return self._prepare_linked_requirement(req, parallel_builds)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 640, in _prepare_linked_requirement
          dist = _get_prepared_distribution(
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 70, in _get_prepared_distribution
          with build_tracker.track(req, tracker_id):
        File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
          return next(self.gen)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/build_tracker.py", line 137, in track
          self.add(req, tracker_id)
        File "/home/pi/RPi-Jukebox-RFID/.venv/lib/python3.9/site-packages/pip/_internal/operations/build/build_tracker.py", line 103, in add
          raise LookupError(message)
      LookupError: https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz (from https://pypi.org/simple/cmake/) (requires-python:>=3.7) is already being built: cmake from https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install backend dependencies did not run successfully.
│ exit code: 2
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


@nicolargo
Copy link

Also reproduced on my pipelines.

On ARM/v6:

#86 425.6 Collecting annotated-types>=0.4.0 (from pydantic->-r requirements.txt (line 6))
#86 425.7   Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
#86 ...

#79 [linux/arm/v6 buildfull 1/1] RUN /venv-build/bin/python3.11 -m pip install --target="/venv/lib/python3.11/site-packages"     -r optional-requirements.txt
#79 447.7   Installing backend dependencies: still running...
#79 449.0   Installing backend dependencies: finished with status 'error'
#79 449.2   error: subprocess-exited-with-error
#79 449.2   
#79 449.2   × pip subprocess to install backend dependencies did not run successfully.
#79 449.2   │ exit code: 1
#79 449.2   ╰─> [100 lines of output]
#79 449.2       Collecting cmake>=3.14
#79 449.2         Downloading cmake-3.29.2.tar.gz (30 kB)
#79 449.2         Installing build dependencies: started
#79 449.2         Installing build dependencies: finished with status 'done'
#79 449.2         Getting requirements to build wheel: started
#79 449.2         Getting requirements to build wheel: finished with status 'done'
#79 449.2         Installing backend dependencies: started
#79 449.2         Installing backend dependencies: finished with status 'error'
#79 449.2         error: subprocess-exited-with-error
#79 449.2       
#79 449.2         × pip subprocess to install backend dependencies did not run successfully.
#79 449.2         │ exit code: 2
#79 449.2         ╰─> [77 lines of output]
#79 449.2             Collecting ninja>=1.5
#79 449.2               Downloading ninja-1.11.1.1.tar.gz (132 kB)
#79 449.2                  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.4/132.4 kB 1.9 MB/s eta 0:00:00
#79 449.2               Installing build dependencies: started
#79 449.2               Installing build dependencies: finished with status 'done'
#79 449.2               Getting requirements to build wheel: started
#79 449.2               Getting requirements to build wheel: finished with status 'done'
#79 449.2               Preparing metadata (pyproject.toml): started
#79 449.2               Preparing metadata (pyproject.toml): finished with status 'done'
#79 449.2             Collecting cmake
#79 449.2               Using cached cmake-3.29.2.tar.gz (30 kB)
#79 449.2             ERROR: Exception:
#79 449.2             Traceback (most recent call last):
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
#79 449.2                 status = run_func(*args)
#79 449.2                          ^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
#79 449.2                 return func(self, options, args)
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run
#79 449.2                 requirement_set = resolver.resolve(
#79 449.2                                   ^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
#79 449.2                 result = self._result = resolver.resolve(
#79 449.2                                         ^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
#79 449.2                 state = resolution.resolve(requirements, max_rounds=max_rounds)
#79 449.2                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
#79 449.2                 self._add_to_criteria(self.state.criteria, r, parent=None)
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
#79 449.2                 if not criterion.candidates:
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
#79 449.2                 return bool(self._sequence)
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
#79 449.2                 return any(self)
#79 449.2                        ^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
#79 449.2                 return (c for c in iterator if id(c) not in self._incompatible_ids)
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
#79 449.2                 candidate = func()
#79 449.2                             ^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 182, in _make_candidate_from_link
#79 449.2                 base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
#79 449.2                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 228, in _make_base_candidate_from_link
#79 449.2                 self._link_candidate_cache[link] = LinkCandidate(
#79 449.2                                                    ^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 290, in __init__
#79 449.2                 super().__init__(
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
#79 449.2                 self.dist = self._prepare()
#79 449.2                             ^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
#79 449.2                 dist = self._prepare_distribution()
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 301, in _prepare_distribution
#79 449.2                 return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement
#79 449.2                 return self._prepare_linked_requirement(req, parallel_builds)
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 640, in _prepare_linked_requirement
#79 449.2                 dist = _get_prepared_distribution(
#79 449.2                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 70, in _get_prepared_distribution
#79 449.2                 with build_tracker.track(req, tracker_id):
#79 449.2               File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
#79 449.2                 return next(self.gen)
#79 449.2                        ^^^^^^^^^^^^^^
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/build/build_tracker.py", line 137, in track
#79 449.2                 self.add(req, tracker_id)
#79 449.2               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/build/build_tracker.py", line 103, in add
#79 449.2                 raise LookupError(message)
#79 449.2             LookupError: https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz (from https://pypi.org/simple/cmake/) (requires-python:>=3.7) is already being built: cmake>=3.14 from https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz
#79 449.2             [end of output]
#79 449.2       
#79 449.2         note: This error originates from a subprocess, and is likely not a problem with pip.
#79 449.2       error: subprocess-exited-with-error
#79 449.2       
#79 449.2       × pip subprocess to install backend dependencies did not run successfully.
#79 449.2       │ exit code: 2
#79 449.2       ╰─> See above for output.
#79 449.2       
#79 449.2       note: This error originates from a subprocess, and is likely not a problem with pip.
#79 449.2       [end of output]
#79 449.2   
#79 449.2   note: This error originates from a subprocess, and is likely not a problem with pip.
#79 449.3 error: subprocess-exited-with-error
#79 449.3 
#79 449.3 × pip subprocess to install backend dependencies did not run successfully.
#79 449.3 │ exit code: 1
#79 449.3 ╰─> See above for output.
#79 449.3 
#79 449.3 note: This error originates from a subprocess, and is likely not a problem with pip.
#79 ERROR: process "/bin/sh -c /venv-build/bin/python${PYTHON_VERSION} -m pip install --target=\"/venv/lib/python${PYTHON_VERSION}/site-packages\"     -r optional-requirements.txt" did not complete successfully: exit code: 1

and ARM/v7:

#66 [linux/arm/v7 buildfull 1/1] RUN /venv-build/bin/python3.11 -m pip install --target="/venv/lib/python3.11/site-packages"     -r optional-requirements.txt
#66 364.1   Installing backend dependencies: finished with status 'error'
#66 364.4   error: subprocess-exited-with-error
#66 364.4   
#66 364.4   × pip subprocess to install backend dependencies did not run successfully.
#66 364.4   │ exit code: 1
#66 364.4   ╰─> [100 lines of output]
#66 364.4       Collecting cmake>=3.14
#66 364.4         Downloading cmake-3.29.2.tar.gz (30 kB)
#66 364.4         Installing build dependencies: started
#66 364.4         Installing build dependencies: finished with status 'done'
#66 364.4         Getting requirements to build wheel: started
#66 364.4         Getting requirements to build wheel: finished with status 'done'
#66 364.4         Installing backend dependencies: started
#66 364.4         Installing backend dependencies: finished with status 'error'
#66 364.4         error: subprocess-exited-with-error
#66 364.4       
#66 364.4         × pip subprocess to install backend dependencies did not run successfully.
#66 364.4         │ exit code: 2
#66 364.4         ╰─> [77 lines of output]
#66 364.4             Collecting ninja>=1.5
#66 364.4               Downloading ninja-1.11.1.1.tar.gz (132 kB)
#66 364.4                  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.4/132.4 kB 2.2 MB/s eta 0:00:00
#66 364.4               Installing build dependencies: started
#66 364.4               Installing build dependencies: finished with status 'done'
#66 364.4               Getting requirements to build wheel: started
#66 364.4               Getting requirements to build wheel: finished with status 'done'
#66 364.4               Preparing metadata (pyproject.toml): started
#66 364.4               Preparing metadata (pyproject.toml): finished with status 'done'
#66 364.4             Collecting cmake
#66 364.4               Using cached cmake-3.29.2.tar.gz (30 kB)
#66 364.4             ERROR: Exception:
#66 364.4             Traceback (most recent call last):
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
#66 364.4                 status = run_func(*args)
#66 364.4                          ^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
#66 364.4                 return func(self, options, args)
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run
#66 364.4                 requirement_set = resolver.resolve(
#66 364.4                                   ^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
#66 364.4                 result = self._result = resolver.resolve(
#66 364.4                                         ^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
#66 364.4                 state = resolution.resolve(requirements, max_rounds=max_rounds)
#66 364.4                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
#66 364.4                 self._add_to_criteria(self.state.criteria, r, parent=None)
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
#66 364.4                 if not criterion.candidates:
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
#66 364.4                 return bool(self._sequence)
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
#66 364.4                 return any(self)
#66 364.4                        ^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
#66 364.4                 return (c for c in iterator if id(c) not in self._incompatible_ids)
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
#66 364.4                 candidate = func()
#66 364.4                             ^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 182, in _make_candidate_from_link
#66 364.4                 base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
#66 364.4                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 228, in _make_base_candidate_from_link
#66 364.4                 self._link_candidate_cache[link] = LinkCandidate(
#66 364.4                                                    ^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 290, in __init__
#66 364.4                 super().__init__(
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
#66 364.4                 self.dist = self._prepare()
#66 364.4                             ^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
#66 364.4                 dist = self._prepare_distribution()
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 301, in _prepare_distribution
#66 364.4                 return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement
#66 364.4                 return self._prepare_linked_requirement(req, parallel_builds)
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 640, in _prepare_linked_requirement
#66 364.4                 dist = _get_prepared_distribution(
#66 364.4                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 70, in _get_prepared_distribution
#66 364.4                 with build_tracker.track(req, tracker_id):
#66 364.4               File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
#66 364.4                 return next(self.gen)
#66 364.4                        ^^^^^^^^^^^^^^
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/build/build_tracker.py", line 137, in track
#66 364.4                 self.add(req, tracker_id)
#66 364.4               File "/venv-build/lib/python3.11/site-packages/pip/_internal/operations/build/build_tracker.py", line 103, in add
#66 364.4                 raise LookupError(message)
#66 364.4             LookupError: https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz (from https://pypi.org/simple/cmake/) (requires-python:>=3.7) is already being built: cmake>=3.14 from https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz
#66 364.4             [end of output]
#66 364.4       
#66 364.4         note: This error originates from a subprocess, and is likely not a problem with pip.
#66 364.4       error: subprocess-exited-with-error
#66 364.4       
#66 364.4       × pip subprocess to install backend dependencies did not run successfully.
#66 364.4       │ exit code: 2
#66 364.4       ╰─> See above for output.
#66 364.4       
#66 364.4       note: This error originates from a subprocess, and is likely not a problem with pip.
#66 364.4       [end of output]
#66 364.4   
#66 364.4   note: This error originates from a subprocess, and is likely not a problem with pip.
#66 364.4 error: subprocess-exited-with-error
#66 364.4 
#66 364.4 × pip subprocess to install backend dependencies did not run successfully.
#66 364.4 │ exit code: 1
#66 364.4 ╰─> See above for output.
#66 364.4 
#66 364.4 note: This error originates from a subprocess, and is likely not a problem with pip.
#66 ERROR: process "/bin/sh -c /venv-build/bin/python${PYTHON_VERSION} -m pip install --target=\"/venv/lib/python${PYTHON_VERSION}/site-packages\"     -r optional-requirements.txt" did not complete successfully: exit code: 1

@abedStatic
Copy link

Facing the same issue on ARM/V7 while building opencv where cmake is a build requirement.

Python Version 3.7.9 with official docker image python:3.7.9-slim

Logs

# pip install opencv-python-4.5.5.64.tar.gz
Processing /opencv-python-4.5.5.64.tar.gz
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [95 lines of output]
      Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version >= "3.10"' don't match your environment
      Collecting setuptools
        Using cached setuptools-68.0.0-py3-none-any.whl.metadata (6.4 kB)
      Collecting wheel
        Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
      Collecting scikit-build
        Using cached scikit_build-0.17.6-py3-none-any.whl.metadata (14 kB)
      Collecting cmake
        Using cached cmake-3.29.2.tar.gz (30 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'error'
        error: subprocess-exited-with-error

        × pip subprocess to install backend dependencies did not run successfully.
        │ exit code: 2
        ╰─> [60 lines of output]
            Collecting ninja>=1.5
              Downloading ninja-1.11.1.1.tar.gz (132 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.4/132.4 kB 2.2 MB/s eta 0:00:00
              Installing build dependencies: started
              Installing build dependencies: finished with status 'done'
              Getting requirements to build wheel: started
              Getting requirements to build wheel: finished with status 'done'
              Preparing metadata (pyproject.toml): started
              Preparing metadata (pyproject.toml): finished with status 'done'
            Collecting cmake
              Using cached cmake-3.29.2.tar.gz (30 kB)
            ERROR: Exception:
            Traceback (most recent call last):
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
                status = run_func(*args)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
                return func(self, options, args)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 378, in run
                reqs, check_supported_wheels=not options.target_dir
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 96, in resolve
                collected.requirements, max_rounds=limit_how_complex_resolution_can_be
              File "/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
                state = resolution.resolve(requirements, max_rounds=max_rounds)
              File "/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
                self._add_to_criteria(self.state.criteria, r, parent=None)
              File "/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
                if not criterion.candidates:
              File "/usr/local/lib/python3.7/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
                return bool(self._sequence)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
                return any(self)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
                return (c for c in iterator if id(c) not in self._incompatible_ids)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
                candidate = func()
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 183, in _make_candidate_from_link
                link, template, name, version
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 233, in _make_base_candidate_from_link
                version=version,
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 296, in __init__
                version=version,
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
                self.dist = self._prepare()
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
                dist = self._prepare_distribution()
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 301, in _prepare_distribution
                return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 525, in prepare_linked_requirement
                return self._prepare_linked_requirement(req, parallel_builds)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 645, in _prepare_linked_requirement
                self.check_build_deps,
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 70, in _get_prepared_distribution
                with build_tracker.track(req, tracker_id):
              File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
                return next(self.gen)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/operations/build/build_tracker.py", line 137, in track
                self.add(req, tracker_id)
              File "/usr/local/lib/python3.7/site-packages/pip/_internal/operations/build/build_tracker.py", line 103, in add
                raise LookupError(message)
            LookupError: https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz (from https://pypi.org/simple/cmake/) (requires-python:>=3.7) is already being built: cmake from https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error

      × pip subprocess to install backend dependencies did not run successfully.
      │ exit code: 2
      ╰─> See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@novak-99
Copy link

My log for ARM/v7 and Python 3.10.4:

Collecting opencv-python>=4.6.0
  Downloading opencv-python-4.9.0.80.tar.gz (92.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.9/92.9 MB 1.2 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: still running...
  Installing build dependencies: finished with status 'error'
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [80 lines of output]
      Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Darwin"' don't match your environment
      Ignoring numpy: markers 'python_version >= "3.11"' don't match your environment
      Collecting cmake>=3.1
        Downloading cmake-3.29.2.tar.gz (30 kB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Installing backend dependencies: started
        Installing backend dependencies: finished with status 'error'
        error: subprocess-exited-with-error
      
        × pip subprocess to install backend dependencies did not run successfully.
        │ exit code: 2
        ╰─> [49 lines of output]
            Collecting cmake
              Using cached cmake-3.29.2.tar.gz (30 kB)
            ERROR: Exception:
            Traceback (most recent call last):
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/cli/base_command.py", line 165, in exc_logging_wrapper
                status = run_func(*args)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/cli/req_command.py", line 205, in wrapper
                return func(self, options, args)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/commands/install.py", line 339, in run
                requirement_set = resolver.resolve(
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
                result = self._result = resolver.resolve(
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
                state = resolution.resolve(requirements, max_rounds=max_rounds)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
                self._add_to_criteria(self.state.criteria, r, parent=None)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
                if not criterion.candidates:
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_vendor/resolvelib/structs.py", line 151, in __bool__
                return bool(self._sequence)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
                return any(self)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
                return (c for c in iterator if id(c) not in self._incompatible_ids)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
                candidate = func()
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/factory.py", line 215, in _make_candidate_from_link
                self._link_candidate_cache[link] = LinkCandidate(
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 288, in __init__
                super().__init__(
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 158, in __init__
                self.dist = self._prepare()
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 227, in _prepare
                dist = self._prepare_distribution()
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 299, in _prepare_distribution
                return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/operations/prepare.py", line 487, in prepare_linked_requirement
                return self._prepare_linked_requirement(req, parallel_builds)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/operations/prepare.py", line 556, in _prepare_linked_requirement
                dist = _get_prepared_distribution(
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/operations/prepare.py", line 57, in _get_prepared_distribution
                with req_tracker.track(req):
              File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
                return next(self.gen)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/req/req_tracker.py", line 122, in track
                self.add(req)
              File "/tmp/pip-standalone-pip-47s7o262/__env_pip__.zip/pip/_internal/req/req_tracker.py", line 92, in add
                raise LookupError(message)
            LookupError: https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz#sha256=6a4c1185cb2eca7263190a5754d0c9edf738d9e50bff464f78f48d0c05318e7c (from https://pypi.org/simple/cmake/) (requires-python:>=3.7) is already being built: cmake>=3.1 from https://files.pythonhosted.org/packages/80/bf/4f9a9f754507992be28b985d1e9b17f93a2271106b5916a212efe1d65205/cmake-3.29.2.tar.gz#sha256=6a4c1185cb2eca7263190a5754d0c9edf738d9e50bff464f78f48d0c05318e7c
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error
      
      × pip subprocess to install backend dependencies did not run successfully.
      │ exit code: 2
      ╰─> See above for output.
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip

@henryiii
Copy link
Contributor

I think this is requesting ninja, which in turn is requesting cmake. Can you try installing a system ninja package before building?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants