Expected behaviour
pip install opencv-python should succeed gracefully on all targets. Works correctly for all versions earlier than 4.3.0.38 (running 4.2.0.32 locally).
Actual behaviour
Running pip install opencv-python fails on both Python 2 and 3 on Windows with the latest version (4.3.0.38).
Result under Python 3.8:
packages (from opencv-python) (1.19.1)
Building wheels for collected packages: opencv-python
Building wheel for opencv-python (PEP 517) ... error
[[[[[ ATTEMPTS TO FIND A C COMPILER ]]]]]
ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
Result under Python 2.7:
(py27) C:\Users\Breakthrough\Documents\VirtualEnvs\py27\Scripts>pip install opencv-python --upgrade
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting opencv-python
Using cached opencv-python-4.3.0.38.tar.gz (88.0 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\Scripts\python.exe' 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\Breakthrough\appdata\local\temp\tmpae1fpf'
cwd: c:\users\Breakthrough\appdata\local\temp\pip-install-oxqgbg\opencv-python
Complete output (22 lines):
Traceback (most recent call last):
File "C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in <module>
main()
File "C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 146, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 127, in _get_build_requires
self.run_setup()
File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 243, in run_setup
self).run_setup(setup_script=setup_script)
File "c:\users\Breakthrough\appdata\local\temp\pip-build-env-alnx4n\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 448, in <module>
main()
File "setup.py", line 99, in main
% {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}
File "C:\Python27\lib\re.py", line 210, in escape
s = list(pattern)
TypeError: 'NoneType' object is not iterable
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\Scripts\python.exe' 'C:\Users\Breakthrough\Documents\VirtualEnvs\py27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\Breakthrough\appdata\local\temp\tmpae1fpf' Check the logs for full command output.
Steps to reproduce
Install 4.3.0.38 via pip on any Windows machine. It fails on both Python 2.7 and 3.x. Linux seems okay for Python 3.x, haven't tested Python 2.7, and not an OSX user.
This seems to be affecting my Travis.CI and ReadTheDocs builds as well, which makes me think this might not be related to the latest changes I pushed to my repo, but rather, the latest release of this package (or one of the releases since version 4.2.0.32).
Expected behaviour
pip install opencv-pythonshould succeed gracefully on all targets. Works correctly for all versions earlier than4.3.0.38(running4.2.0.32locally).Actual behaviour
Running
pip install opencv-pythonfails on both Python 2 and 3 on Windows with the latest version (4.3.0.38).Result under Python 3.8:
Result under Python 2.7:
Steps to reproduce
Install 4.3.0.38 via pip on any Windows machine. It fails on both Python 2.7 and 3.x. Linux seems okay for Python 3.x, haven't tested Python 2.7, and not an OSX user.
This seems to be affecting my Travis.CI and ReadTheDocs builds as well, which makes me think this might not be related to the latest changes I pushed to my repo, but rather, the latest release of this package (or one of the releases since version 4.2.0.32).