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

while setting the environment i getting opencv issue #30

Open
sumanttyagi opened this issue May 14, 2024 · 0 comments
Open

while setting the environment i getting opencv issue #30

sumanttyagi opened this issue May 14, 2024 · 0 comments

Comments

@sumanttyagi
Copy link

the error is mentioned as below :

Failed to build srtm4 gdal opencv-contrib-python
ERROR: Could not build wheels for opencv-contrib-python, which is required to install pyproject.toml-based projects

 make[2]: *** No rule to make target '/usr/local/cuda/lib64/libcudart_static.a', needed by 'lib/python3/cv2.abi3.so'.  Stop.
  CMakeFiles/Makefile2:5476: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed
  make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
  Makefile:165: recipe for target 'all' failed
  make: *** [all] Error 2
  Traceback (most recent call last):
    File "/tmp/pip-build-env-yk7b7y8l/overlay/lib/python3.6/site-packages/skbuild/setuptools_wrap.py", line 642, in setup
      cmkr.make(make_args, install_target=cmake_install_target, env=env)
    File "/tmp/pip-build-env-yk7b7y8l/overlay/lib/python3.6/site-packages/skbuild/cmaker.py", line 679, in make
      self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    File "/tmp/pip-build-env-yk7b7y8l/overlay/lib/python3.6/site-packages/skbuild/cmaker.py", line 711, in make_impl
      "An error occurred while building with CMake.\n"

  An error occurred while building with CMake.
    Command:
      /tmp/pip-build-env-yk7b7y8l/overlay/lib/python3.6/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
    Install target:
      install
    Source directory:
      /tmp/pip-install-rvke08cs/opencv-contrib-python_70b8b0e6c7f54793bff51ed5d0dbcec7
    Working directory:
      /tmp/pip-install-rvke08cs/opencv-contrib-python_70b8b0e6c7f54793bff51ed5d0dbcec7/_skbuild/linux-x86_64-3.6/cmake-build
  Please check the install target is valid and see CMake's output for more information.
  ----------------------------------------
  ERROR: Failed building wheel for opencv-contrib-python
  Building wheel for termcolor (setup.py) ... done
  Created wheel for termcolor: filename=termcolor-1.1.0-py3-none-any.whl size=4848 sha256=8794dd859b94e0731c4d9fe06c3249adf5580ba127f73290c2f5b9437ee5d752
  Stored in directory: /home/ubuntu/.cache/pip/wheels/93/2a/eb/e58dbcbc963549ee4f065ff80a59f274cc7210b6eab962acdc
  Building wheel for idna-ssl (setup.py) ... done
  Created wheel for idna-ssl: filename=idna_ssl-1.1.0-py3-none-any.whl size=3178 sha256=4493e2d95103ea5a41286e10273dadf119722831eab7d8fe0418df07675bf0ed
  Stored in directory: /home/ubuntu/.cache/pip/wheels/6a/f5/9c/f8331a854f7a8739cf0e74c13854e4dd7b1af11b04fe1dde13
Successfully built fire plyflatten utm termcolor idna-ssl
Failed to build srtm4 gdal opencv-contrib-python
ERROR: Could not build wheels for opencv-contrib-python, which is required to install pyproject.toml-based projects
Looking in links: https://download.pytorch.org/whl/torch_stable.html

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

1 participant