Code Monkey home page Code Monkey logo

Comments (9)

ageitgey avatar ageitgey commented on May 5, 2024 1

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.

mikkeld avatar mikkeld commented on May 5, 2024 1

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.

mdmedley avatar mdmedley commented on May 5, 2024

@mikkeld After you installed dlib were you able to successfully import the library?

from face_recognition.

mikkeld avatar mikkeld commented on May 5, 2024

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.

mdmedley avatar mdmedley commented on May 5, 2024

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.

mohitpali avatar mohitpali commented on May 5, 2024

I tried reinstalling libpng and still did not work. :(

from face_recognition.

jtlz2 avatar jtlz2 commented on May 5, 2024

@mdmedley @mohitpali Just ran into this issue - did you or anyone else succeed in installing mkl?

from face_recognition.

jtlz2 avatar jtlz2 commented on May 5, 2024

Actually, see #140

from face_recognition.

aseem-hegshetye avatar aseem-hegshetye commented on May 5, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.