-
Notifications
You must be signed in to change notification settings - Fork 853
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
running open cv on a Mac M1 machine with python 3.9 natively #550
Comments
@mv96, I've tested the latest version of opencv-python on Mac Mini with M1 and did not have any issues. I've tried to reproduce it using following commands:
And one more short test getting the build information in a self-created
Running this command:
Could you share more details? I would try to reproduce and solve your issue. |
@asenyaev I tried your steps and got the same error. $ arch -arm64 python3.9 -m pip install --user --no-cache --force-reinstall opencv-python $ arch -arm64 python3.9 modules/python/test/test.py -v --repo . |
@yongce, yes, I've found the source of the problem - no libs inside a package. It was built using libs in a local environment and wasn't linked to a package. I'm working on it, fix will be added as soon as possible. |
pip command used to install - pip install opencv-python
----> 9 import cv2
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/init.py in
----> 5 from .cv2 import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.cpython-39-darwin.so, 2): Library not loaded: /opt/homebrew/opt/ffmpeg/lib/libavcodec.58.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.cpython-39-darwin.so
Reason: image not found
Any help would be appreciated ?
The text was updated successfully, but these errors were encountered: