question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run Face Recognition on Apple Silicon M1

See original GitHub issue
  • face_recognition version: 1.3.0
  • Python version: 3.8.10
  • Operating System: macOS 12.1

Description

Can’t run Face Recognition on Apple Silicon based Mac

What I Did

After installing face recognition using pip3 and running face_recognition I get the following error message

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/face_recognition", line 5, in <module>
    from face_recognition.face_recognition_cli import main
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/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.8/lib/python3.8/site-packages/face_recognition/api.py", line 4, in <module>
    import dlib
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/dlib/__init__.py", line 19, in <module>
    from _dlib_pybind11 import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_dlib_pybind11.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
Dhruvddcommented, Aug 16, 2022

@M4Marvin try installing python 3.8, then it will work fine, you just have to degrade the python version because of which you are getting error.

0reactions
M4Marvincommented, Aug 15, 2022

The issue is not with the apple m1, but in puthon some libraries overlap so thats why jt is fiving that error. For it you can use conda and inside that make virtual env and then download all the libraries need for you project. It worked well with me.

This method did not work for me, I tried setting up a Conda environment with Python 3.10.4. It is showing me the same error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If Face ID isn't working on your iPhone or iPad Pro
Check your Face ID settings. To check your Face ID settings, go to Settings, then tap Face ID & Passcode. Make sure that...
Read more >
Technology to Embed Face ID into MacBook Displays 'Doesn't ...
Apple's first Mac with Face ID is unlikely to be a MacBook because the technology ... Face ID was in the cards for...
Read more >
MacBook Pro Face ID missing from the notch for a good reason
Microsoft's facial recognition tech fits into laptop lids, doesn't it? Well, yes. And no. It does fit into some laptop lids. But if...
Read more >
Can't able to install RHEL 8.3 ARM 64 on MAC with Apple ...
Can't able to install RHEL 8.3 ARM 64 on MAC with Apple Silicon (M1) Processor Based on one of the other forum discussions,...
Read more >
Premiere Pro for Apple Silicon, and Big Sur | macOS 11
Premiere Pro now runs natively on Apple computers with the Apple silicon M1 chip with average speed gains around 80% compared with similarly ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found