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

Error after installing OpenCV on M1 MacBook #115

Open
indrayudd opened this issue Apr 7, 2024 · 1 comment
Open

Error after installing OpenCV on M1 MacBook #115

indrayudd opened this issue Apr 7, 2024 · 1 comment

Comments

@indrayudd
Copy link

Hi,
Although conda install -c conda-forge opencv===4.5.3 seems to run, on testing the package by importing, the following error is thrown:

(dlai) Indrayudds-MacBook-Air:~ indro$ python -c "import cv2; print(cv2.version)"
Traceback (most recent call last):
File "", line 1, in
ImportError: dlopen(/opt/anaconda3/envs/dlai/lib/python3.8/site-packages/cv2.cpython-38-darwin.so, 0x0002): Library not loaded: @rpath/liblapack.3.dylib
Referenced from: /opt/anaconda3/envs/DLAI/lib/libopencv_core.4.5.3.dylib
Reason: tried: '/opt/anaconda3/envs/DLAI/lib/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/python3.8/site-packages/../../liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/python3.8/site-packages/../../liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/bin/../lib/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/bin/../lib/liblapack.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/python3.8/site-packages/../../liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/lib/python3.8/site-packages/../../liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/bin/../lib/liblapack.3.dylib' (no such file), '/opt/anaconda3/envs/DLAI/bin/../lib/liblapack.3.dylib' (no such file), '/usr/local/lib/liblapack.3.dylib' (no such file), '/usr/lib/liblapack.3.dylib' (no such file, not in dyld cache)

My environment lib folder does have this liblapack.3.dylib file too. Help would be appreciated!

@mrbestnaija
Copy link

The CvLib library is poorly maintained. It has to been replaced with a better mainatained libraries like OpenCV or scikit-image for computer vision tasks.

The dependencies in the requirements.txt needs to be updated.

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