-
Notifications
You must be signed in to change notification settings - Fork 868
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
module 'cv2.dnn' has no attribute 'DictValue' #884
Comments
DictValue class type is defined in
Tested with Ubuntu, python 3.8 and opencv-python 4.8.0.76 from pip. |
Can't reproduce
|
Can confirm that this issue happens in the latest release by simply running The previous version Maybe it has something to do with the way import work? |
Can you confirm that you observe an issue in a clean virtual environment? python3 -m venv venv
source venv/bin/activate
pip install opencv-python==4.8.0.76
python
>>> import platform
>>> platform.platform()
'macOS-12.6.3-x86_64-i386-64bit'
>>> import cv2
>>> cv2.__version__
'4.8.0' |
OK yeah installing from the clean virtual env solves the problem. I think the issue has something to do with After searching and removing all previous installed versions of |
Thank you! That should solve the problem |
I faced this issue while using YOLOV8. For my case, the docker container had |
For mac |
|
opencv-python==4.8.0.76 版本有问题,会报错 ```text AttributeError: module 'cv2.dnn' has no attribute 'DictValue' ``` opencv/opencv-python#884 (comment)
I was having this issue as well.
How to Fix Stale
|
The above processing process was made into a small tool, thanks @stillgreyfox # download the autofix tool
pip install opencv-fixer==0.2.5
# execute and wait is done
python -c "from opencv_fixer import AutoFix; AutoFix()" |
Hi! I've come to an issue with the latest opencv (4.8.0.76)
I think you've changed functionality which is now not backward compatible
Full traceback:
The text was updated successfully, but these errors were encountered: