Skip to content

Conversation

@akladiev
Copy link
Contributor

@akladiev akladiev commented Dec 11, 2025

We use this requirement file in OpenVINO pre-commits for pip-conflicts check that is tested with Python 3.11.
After #4029 was merged without waiting for CI, pre-commits in OV repo became broken:

[2025-12-11T14:12:54.340Z]   Using cached opencv-python-4.5.4.60.tar.gz (89.8 MB)
[2025-12-11T14:12:54.340Z]   Installing build dependencies: started
[2025-12-11T14:12:54.340Z]   Installing build dependencies: finished with status 'error'
[2025-12-11T14:12:54.340Z]   error: subprocess-exited-with-error
[2025-12-11T14:12:54.340Z]   
[2025-12-11T14:12:54.340Z]   × installing build dependencies for opencv-python did not run successfully.
[2025-12-11T14:12:54.340Z]   │ exit code: 1
[2025-12-11T14:12:54.340Z]   ╰─> [20 lines of output]
[2025-12-11T14:12:54.341Z]       Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cpu, https://download.pytorch.org/whl/cpu, https://download.pytorch.org/whl/cpu
[2025-12-11T14:12:54.341Z]       Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
[2025-12-11T14:12:54.341Z]       Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
[2025-12-11T14:12:54.341Z]       Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
[2025-12-11T14:12:54.341Z]       Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
[2025-12-11T14:12:54.341Z]       Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
[2025-12-11T14:12:54.341Z]       Ignoring numpy: markers 'python_version == "3.9" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
[2025-12-11T14:12:54.341Z]       Collecting setuptools
[2025-12-11T14:12:54.341Z]         Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB)
[2025-12-11T14:12:54.341Z]       Collecting wheel
[2025-12-11T14:12:54.341Z]         Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
[2025-12-11T14:12:54.341Z]       Collecting scikit-build
[2025-12-11T14:12:54.341Z]         Using cached scikit_build-0.18.1-py3-none-any.whl.metadata (18 kB)
[2025-12-11T14:12:54.341Z]       Collecting cmake
[2025-12-11T14:12:54.341Z]         Using cached cmake-4.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (6.5 kB)
[2025-12-11T14:12:54.341Z]       Collecting pip
[2025-12-11T14:12:54.341Z]         Using cached pip-25.3-py3-none-any.whl.metadata (4.7 kB)
[2025-12-11T14:12:54.341Z]       ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
[2025-12-11T14:12:54.341Z]       ERROR: Could not find a version that satisfies the requirement numpy==1.21.2 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0, 1.25.1, 1.25.2, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.4.0rc1)
[2025-12-11T14:12:54.342Z]       ERROR: No matching distribution found for numpy==1.21.2
[2025-12-11T14:12:54.342Z]       [end of output]
[2025-12-11T14:12:54.342Z]   
[2025-12-11T14:12:54.342Z]   note: This error originates from a subprocess, and is likely not a problem with pip.
[2025-12-11T14:12:54.342Z] ERROR: Failed to build 'opencv-python' when installing build dependencies for opencv-python

4.5.4.60 version cannot be installed to Python 3.11 (also confirmed locally).
Failure is also seen in the post-commit for 8e996db

@akladiev akladiev merged commit ba58378 into openvinotoolkit:master Dec 12, 2025
9 of 21 checks passed
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

Successfully merging this pull request may close these issues.

1 participant