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

fix macos install requirements error #538

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zongwu233
Copy link

When install the project dependencies on MacOS 10.15.7, there is a error for install opencv-contrib-python :

Traceback (most recent call last):
    File "/usr/local/anaconda3/envs/test_env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/usr/local/anaconda3/envs/test_env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/anaconda3/envs/test_env/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 262, in build_wheel
      metadata_directory)
    File "/private/var/folders/s8/3w_b9gw976748lkd03_kgfxw0000gp/T/pip-build-env-l5muahcr/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 231, in build_wheel
      wheel_directory, config_settings)
    File "/private/var/folders/s8/3w_b9gw976748lkd03_kgfxw0000gp/T/pip-build-env-l5muahcr/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "/private/var/folders/s8/3w_b9gw976748lkd03_kgfxw0000gp/T/pip-build-env-l5muahcr/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 268, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/private/var/folders/s8/3w_b9gw976748lkd03_kgfxw0000gp/T/pip-build-env-l5muahcr/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 532, in <module>
      main()
    File "setup.py", line 306, in main
      cmake_source_dir=cmake_source_dir,
    File "/private/var/folders/s8/3w_b9gw976748lkd03_kgfxw0000gp/T/pip-build-env-l5muahcr/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py", line 683, in setup
      cmake_install_dir,
    File "setup.py", line 445, in _classify_installed_files_override
      raise Exception("Not found: '%s'" % relpath_re)
  Exception: Not found: 'python/cv2/py.typed'
  Building wheel for opencv-contrib-python (pyproject.toml) ... error
  ERROR: Failed building wheel for opencv-contrib-python
Failed to build opencv-contrib-python
ERROR: Could not build wheels for opencv-contrib-python, which is required to install pyproject.toml-based projects

the detail can see : opencv/opencv-python#657

and I try opencv/opencv-python#657 (comment) . It works.

@Echo-jyt
Copy link

I also encountered the same issue. My system is Ubuntu 23. Solved this problem with the link, thank you very much

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.

None yet

2 participants