InternGPT icon indicating copy to clipboard operation
InternGPT copied to clipboard

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

Open adsian opened this issue 2 years ago • 2 comments

image

adsian avatar May 28 '23 11:05 adsian

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)

iskewedI avatar May 29 '23 16:05 iskewedI

You can refer to https://github.com/opencv/opencv-python/issues/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.

liu-zhy avatar May 30 '23 04:05 liu-zhy

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

adsian avatar May 31 '23 12:05 adsian