Skip to content

Instantly share code, notes, and snippets.

@berak
Created May 26, 2022 06:10
Show Gist options
  • Save berak/f06a89690a6794075b4339111acc1198 to your computer and use it in GitHub Desktop.
Save berak/f06a89690a6794075b4339111acc1198 to your computer and use it in GitHub Desktop.
import cv2 error
> make install
...
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/__init__.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/load_config_py2.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/load_config_py3.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/config.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/misc/__init__.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/misc/version.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/mat_wrapper/__init__.py
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/utils/__init__.py
-- Installing: C:/prog/Python37/Lib/site-packages/cv2/gapi/__init__.py
-- Installing: C:/prog/Python37/Lib/site-packages/cv2/python-3.7/cv2.pyd
-- Up-to-date: C:/prog/Python37/Lib/site-packages/cv2/config-3.7.py
...
c:\p\opencv\build>pycv
c:\p\opencv\build>python -i -c "import cv2, numpy as np"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\prog\Python37\lib\site-packages\cv2\__init__.py", line 181, in <module>
bootstrap()
File "C:\prog\Python37\lib\site-packages\cv2\__init__.py", line 175, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\prog\Python37\lib\site-packages\cv2\__init__.py", line 28, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\prog\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\prog\Python37\lib\site-packages\cv2\gapi\__init__.py", line 290, in <module>
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline'
>>> quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment