AttributeError: partially initialized module 'cv2' has no attribute '_registerMatType' (most likely due to a circular import) #869
-
when I try to run monai label ,get the following error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This might help. Most likely some issue with the opencv version |
Beta Was this translation helpful? Give feedback.
-
using cv2 on vscode i was having this problem but nothing worked. Turns out that i named my file as "cv2.py" so it was importing itself "Generally, the Python Circular Import problem occurs when you accidentally name your working file the same as the module name and those modules depend on each other. This way the python opens the same file which causes a circular loop and eventually throws an error." |
Beta Was this translation helpful? Give feedback.
opencv/opencv-python#591
This might help. Most likely some issue with the opencv version