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

Failed to build wheel when installing with pip --no-binary. Got TypeError in setup.py #649

Closed
ThankPan opened this issue Apr 6, 2022 · 3 comments

Comments

@ThankPan
Copy link

ThankPan commented Apr 6, 2022

Actual behaviour

I'm trying to install with pip --no-binary following the instruction mentioned here https://stackoverflow.com/a/63839383/9982130 to solve another problem that I encountered. During the building wheel process, I got:
TypeError: _classify_installed_files() got an unexpected keyword argument 'cmake_install_dir'.

Traceback (most recent call last):
File "/home/reinht/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in
main()
File "/home/reinht/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/reinht/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 248, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-h4n0_raq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 244, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-h4n0_raq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 229, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-h4n0_raq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-h4n0_raq/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 503, in
main()
File "setup.py", line 240, in main
skbuild.setup(
File "/tmp/pip-build-env-h4n0_raq/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 676, in setup
_classify_installed_files(
File "setup.py", line 443, in _classify_installed_files_override
return (cls.wraps._classify_installed_files)(

I could not understand what caused it.

Steps to reproduce

  • Ubuntu 20.04
  • architecture: x86
  • -python version: 3.9.7
@skvark
Copy link
Member

skvark commented Apr 6, 2022

Duplicate of #648

@skvark skvark marked this as a duplicate of #648 Apr 6, 2022
@asmorkalov
Copy link
Collaborator

#637

@asenyaev
Copy link
Contributor

asenyaev commented Apr 7, 2022

#637 is merged into master, should fix this problem. Please, update your local opencv-python repository.

@asenyaev asenyaev closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants