Comments (9)
The actual issue is that it can't find libpng:
Library not loaded: @rpath/libpng16.16.dylib
I'm guessing you installed it with homebrew but it's not in your library path. Assuming you are using homebrew, can you try:
brew link libpng
If that doesn't work, make sure libpng is actually installed:
brew update && brew upgrade
brew install libpng
brew link libpng
If that still doesn't work, maybe reinstall libpng:
brew uninstall libpng
brew prune
brew install libpng
from face_recognition.
Thanks a lot - unfortunately I ran into another library error. I'll update the thread if I find a solution
>>> import dlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dlib-19.4.99-py3.6-macosx-10.6-intel.egg/dlib/__init__.py", line 1, in <module>
from .dlib import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dlib-19.4.99-py3.6-macosx-10.6-intel.egg/dlib/dlib.so, 2): **Library not loaded: @rpath/libmkl_rt.dylib**
Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dlib-19.4.99-py3.6-macosx-10.6-intel.egg/dlib/dlib.so
Reason: image not found
from face_recognition.
@mikkeld After you installed dlib
were you able to successfully import the library?
from face_recognition.
That seems to be it - I get the following error as well then I run python3 followed by dlib. Any clues on what's causing this?
>>> import dlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dlib-19.4.99-py3.6-macosx-10.6-intel.egg/dlib/__init__.py", line 1, in <module>
from .dlib import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dlib-19.4.99-py3.6-macosx-10.6-intel.egg/dlib/dlib.so, 2): Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/dlib-19.4.99-py3.6-macosx-10.6-intel.egg/dlib/dlib.so
Reason: image not found
from face_recognition.
I'm guessing this is very similar to the earlier issue where it can't find a library, libmkl
to be specific.
Library not loaded: @rpath/libmkl_rt.dylib
You'll need to make sure it is installed
from face_recognition.
I tried reinstalling libpng and still did not work. :(
from face_recognition.
@mdmedley @mohitpali Just ran into this issue - did you or anyone else succeed in installing mkl?
from face_recognition.
Actually, see #140
from face_recognition.
brew doctor
brew prune
which python3
``` will show you where your python is. Delete anaconda directory if u have any which has your python. Then reinstall python using brew. I dint have to reinstall anything, i just had too many python versions on my mac. python3.6 is the one i prefer.
Following link helped
[link1](https://mattbanderson.com/so-you-hosed-your-mac-os-python-install/)
I ran into this error coz i was learning to set up virtual env. if u need help with that, check following link
[link2] (https://www.youtube.com/watch?v=N5vscPTWKOk&t=172s)
from face_recognition.
Related Issues (20)
- Jetson Nano 4GB: Segmentation fault (core dumped) - dlib and face_recognition HOT 1
- Doesn't works with ffmpeg 6.0_1
- Doesn't works
- Not working HOT 3
- Not accurate HOT 1
- Problem "ValueError: operands could not be broadcast together with shapes ( , ) (128, )" Solution
- fcaial recognition wrong person
- I want to detect whether the faces in the pictures are complete HOT 1
- Face similiarity for multiple images
- Fr
- test HOT 1
- Windows installation HOT 6
- Windows face_recognition run time error HOT 1
- Facial
- Shared My Dockerfile
- Face recognition in the Voynich manuscript
- face_recognition only works with obama. HOT 3
- kindly integrate face alignment step
- Import gets stuck while using it inside a myfunctions module
- Attribute error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from face_recognition.