Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2022-04-11 11:29:27

  bakao - Zbanowany

bakao
Zbanowany
Zarejestrowany: 2020-11-15

Problem z instalacją opencv-python

Kod:

[100%] Generate files for Python bindings and documentation
  Note: Class Feature2D has more than 1 base class (not supported by Python C extensions)
        Bases:  cv::Algorithm, cv::class, cv::Feature2D, cv::Algorithm
        Only the first base class will be used
  Note: Class detail_GraphCutSeamFinder has more than 1 base class (not supported by Python C extensions)
        Bases:  cv::detail::GraphCutSeamFinderBase, cv::detail::SeamFinder
        Only the first base class will be used
  [100%] Built target gen_opencv_python_source
  [100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
  In file included from /tmp/pip-install-uuuwdtz3/opencv-python/opencv/modules/python/src2/cv2.hpp:36,
                   from /tmp/pip-install-uuuwdtz3/opencv-python/opencv/modules/python/src2/cv2.cpp:5:
  /tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
  /tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
       if (PyTuple_GET_SIZE(value) != 3) {
           ^~~~~~~~~~~~~~~~
  /tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: note: suggested alternative: ‘PyTuple_GetSlice’
       if (PyTuple_GET_SIZE(value) != 3) {
           ^~~~~~~~~~~~~~~~
           PyTuple_GetSlice
  /tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
       title = PyTuple_GET_ITEM(value, 2);
               ^~~~~~~~~~~~~~~~
  /tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: note: suggested alternative: ‘PyArray_GETITEM’
       title = PyTuple_GET_ITEM(value, 2);
               ^~~~~~~~~~~~~~~~
               PyArray_GETITEM
  make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:76: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1
  make[1]: *** [CMakeFiles/Makefile2:2221: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
  make: *** [Makefile:166: all] Error 2
  Traceback (most recent call last):
    File "/tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 645, in setup
      cmkr.make(make_args, install_target=cmake_install_target, env=env)
    File "/tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/skbuild/cmaker.py", line 660, in make
      self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    File "/tmp/pip-build-env-7e3do57w/lib/python3.7/site-packages/skbuild/cmaker.py", line 699, in make_impl
      os.path.abspath(CMAKE_BUILD_DIR()),
  
  An error occurred while building with CMake.
    Command:
      cmake --build . --target install --config Release --
    Install target:
      install
    Source directory:
      /tmp/pip-install-uuuwdtz3/opencv-python
    Working directory:
      /tmp/pip-install-uuuwdtz3/opencv-python/_skbuild/linux-x86_64-3.7/cmake-build
  Please check the install target is valid and see CMake's output for more information.
  
  ----------------------------------------
  Failed building wheel for opencv-python

O co tu chodzi?

Offline

 

#2  2022-04-12 14:06:49

  mati75 - Psuj

mati75
Psuj
Skąd: masz ten towar?
Zarejestrowany: 2010-03-14

Re: Problem z instalacją opencv-python


https://l0calh0st.pl/obrazki/userbar.png

Offline

 

#3  2022-04-12 14:39:07

  bakao - Zbanowany

bakao
Zbanowany
Zarejestrowany: 2020-11-15

Re: Problem z instalacją opencv-python

Jak ręką odjął, numphy to była odpowiedź!

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)