You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Description
face_recognition require libavdevice.59.dylib but on my mac is libavdevice.60.dylib
What I Did
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
The text was updated successfully, but these errors were encountered: