-
Notifications
You must be signed in to change notification settings - Fork 544
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: module 'cv2.dnn' has no attribute 'DictValue' #40
Comments
@Scikud This seems to be an issue with latest version of opencv ( Downgrading the package to |
@Scikud I was able to fix it by removing line 169 from "/Users/apple/anaconda3/lib/python3.11/site-packages/cv2/typing/init.py" file, it seems to be the problem comment out line 169 like so |
@hbbolaji Thanks, it worked for me |
try # 1. download the autofix tool
pip install opencv-fixer==0.2.5
# 2. execute
python -c "from opencv_fixer import AutoFix; AutoFix()" |
I was searching for long time and try each and everything but just this way worked with one difference I changed line 168. |
It's now working after upgrading to the latest version pip install opencv-python --upgrade |
In linux the corresponding file was in Made the change and it's working now. |
How is this issue closed? I still get the same error with the most up to date packages. |
Just choose any of the solutions above, whether it's reinstalling or using the repair tool I wrote. I saw some of my previous comments were downvoted, and some of them were incomprehensible, so I took them casually, and those who downvoted them were just happy. hhh This is from an ordinary user, a developer not related to this repository. |
Hey, thanks for your response! I used |
Maybe it's because this module has been upgraded? https://github.com/soulteary/opencv-fixer/blob/main/opencv_fixer/autofix.py Here are the complete steps for my repair, you can see if it is of reference value |
You sir are a beauty. |
When trying to run the cli on any pdf I run into the the error above. Here's the stacktrace.
The text was updated successfully, but these errors were encountered: