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

Doesn't works #1536

Open
fathi-riham-mn opened this issue Oct 11, 2023 · 0 comments
Open

Doesn't works #1536

fathi-riham-mn opened this issue Oct 11, 2023 · 0 comments

Comments

@fathi-riham-mn
Copy link

  • face_recognition version:
  • Python version:3.11
  • Operating System: Mac OS 12.6.9 Monterey

Description

face_recognition require libavdevice.59.dylib but on my mac is libavdevice.60.dylib

What I Did

I installed face_recognition with this command
python3 -m pip install face_recognition
and the installation was a success.

When I run python code, the error happens

Exception has occurred: ImportError
dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_dlib_pybind11.cpython-311-darwin.so, 0x0002): Library not loaded: '/usr/local/opt/ffmpeg/lib/libavdevice.59.dylib'
  Referenced from: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_dlib_pybind11.cpython-311-darwin.so'
  Reason: tried: '/usr/local/opt/ffmpeg/lib/libavdevice.59.dylib' (no such file), '/usr/lib/libavdevice.59.dylib' (no such file), '/usr/local/Cellar/ffmpeg/6.0_1/lib/libavdevice.59.dylib' (no such file), '/usr/lib/libavdevice.59.dylib' (no such file)
  File "/Users/nthoang/git/python/e-camera/esp32_camera.py", line 1, in <module>
    import face_recognition
  File "/Users/nthoang/git/python/e-camera/e-camera.py", line 10, in <module>
    from esp32_camera import EEsp32Camera
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/_dlib_pybind11.cpython-311-darwin.so, 0x0002): Library not loaded: '/usr/local/opt/ffmpeg/lib/libavdevice.59.dylib'
  Referenced from: 
<img width="937" alt="Screen Shot 2023-09-24 at 12 14 16" src="https://github.com/ageitgey/face_recognition/assets/99200180/a303abcf-a6ce-418c-9091-b7c1cfbdd27d">

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

1 participant