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

AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import) #36

Open
slitheshraj opened this issue Oct 16, 2023 · 1 comment

Comments

@slitheshraj
Copy link

File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\src\Gesture_Controller.py", line 3, in
import cv2
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init_.py", line 175, in bootstrap
if _load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init
.py", line 28, in _load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Program Files\Python38\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2\gapi_init
.py", line 301, in
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

Process finished with exit code 1

@wadewtwt
Copy link

you can try
pip install --upgrade opencv-python

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

2 participants