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) #16

Closed
adsian opened this issue May 28, 2023 · 3 comments

Comments

@adsian
Copy link

adsian commented May 28, 2023

image

@iskewedI
Copy link

iskewedI commented May 29, 2023

Try:

pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip uninstall opencv-contrib-python-headless

Then:

pip3 install opencv-contrib-python==4.5.5.62

(inside the virtual environment)

@liu-zhy
Copy link
Collaborator

liu-zhy commented May 30, 2023

You can refer to opencv/opencv-python#749.

The most probable reason may be multiple OpenCV instances installed on your system.

You can try the method provided by @iskewedI or refer to https://stackoverflow.com/questions/72706073/attributeerror-partially-initialized-module-cv2-has-no-attribute-gapi-wip-gs.

@adsian
Copy link
Author

adsian commented May 31, 2023

Try:

pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip uninstall opencv-contrib-python-headless

Then:

pip3 install opencv-contrib-python==4.5.5.62

(inside the virtual environment)

tianks, it resovled

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

3 participants