2 years ago

#3155

test-img

stephenm

Can't run with Face Recognition imported in Python App

When I try to run app.py with Face Recognition imported in Python I get the following error message:

Traceback (most recent call last):
  File "app.py", line 10, in <module>
    import face_recognition as fr
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/face_recognition/__init__.py", line 7, in <module>
    from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/face_recognition/api.py", line 4, in <module>
    import dlib
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/dlib/__init__.py", line 19, in <module>
    from _dlib_pybind11 import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_dlib_pybind11.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'

The app will run with the import line commented out. I have CMake, dlib and pip installed. Also trie uninstalling and installing again.

python

face-recognition

dlib

0 Answers

Your Answer

Accepted video resources