Skip to content Skip to sidebar Skip to footer

Import Dlib Importerror Symbol Not Found: _pyclass_type

When I run import dlib in Python 3.6 I get the following error: Traceback (most recent call last): File 'demo.py', line 3, in import dlib File '/usr/local/lib/python

Solution 1:

Check folder /usr/local/opt/boost-python/lib/, there are these files:

/u/l/l/p/site-packages> cd /usr/local/opt/boost-python/lib/
/u/l/C/b/1/lib> ls
libboost_numpy-mt.a       libboost_numpy3-mt.a      libboost_python-mt.a      libboost_python3-mt.a
libboost_numpy-mt.dylib   libboost_numpy3-mt.dylib  libboost_python-mt.dylib  libboost_python3-mt.dylib
libboost_numpy.a          libboost_numpy3.a         libboost_python.a         libboost_python3.a
libboost_numpy.dylib      libboost_numpy3.dylib     libboost_python.dylib     libboost_python3.dylib

Create a folder backup these files, then copy files with number 3 to files without number 3. For example, copy libboost_python3-mt.dylib to libboost_python-mt.dylib, then it will work.

Post a Comment for "Import Dlib Importerror Symbol Not Found: _pyclass_type"