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

Closed
1 task done
aruiplex opened this issue Nov 29, 2022 · 2 comments
Assignees

Comments

@aruiplex
Copy link

aruiplex commented Nov 29, 2022

Expected behaviour

cv2 could be successfully imported.

Actual behaviour

After I install the opencv-python or opencv-python-headless, I import cv2, it will raise a exception:

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

Steps to reproduce

OS: ubuntu22.04 in docker.
opencv-version: 4.6.0.66

Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)

P.S.: I can solve this issue using the answer. I use the version 4.5.5.62, everything will be ok. However, that is the problem, I do not know why the new version will cause the error.

Thank you.

@asmorkalov
Copy link
Collaborator

Most probably you faced the same issue as here: opencv/opencv#23177
The most probable reason: multiple OpenCV instances installed on your system.

@asmorkalov asmorkalov self-assigned this Feb 21, 2023
@asmorkalov
Copy link
Collaborator

Closed as related OpenCV ticket has been resolved.

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