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 with ffmpeg 6.0_1 #1534

Open
hoangnamgiavn opened this issue Sep 24, 2023 · 0 comments
Open

Doesn't works with ffmpeg 6.0_1 #1534

hoangnamgiavn opened this issue Sep 24, 2023 · 0 comments

Comments

@hoangnamgiavn
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">

This is the list in the ffmpeg folder
ls /usr/local/opt/ffmpeg/lib/
libavcodec.60.3.100.dylib libavutil.58.dylib
libavcodec.60.dylib libavutil.a
libavcodec.a libavutil.dylib
libavcodec.dylib libpostproc.57.1.100.dylib
libavdevice.60.1.100.dylib libpostproc.57.dylib
libavdevice.60.dylib libpostproc.a
libavdevice.a libpostproc.dylib
libavdevice.dylib libswresample.4.10.100.dylib
libavfilter.9.3.100.dylib libswresample.4.dylib
libavfilter.9.dylib libswresample.a
libavfilter.a libswresample.dylib
libavfilter.dylib libswscale.7.1.100.dylib
libavformat.60.3.100.dylib libswscale.7.dylib
libavformat.60.dylib libswscale.a
libavformat.a libswscale.dylib
libavformat.dylib pkgconfig
libavutil.58.2.100.dylib

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