I have some code I'm playing around with using dlib, but when i try to import dlib in my python code i get this error:
File "boom.py", line 32, in <module>
from faceSwap import *
File "/home/user/coding/faceSwap.py", line 22, in <module>
import dlib
ImportError: libboost_python-py27.so.1.49.0: cannot open shared object file: No
such file or directory
However when i run it as root - it runs just fine! However I dont want to run a daemon as root - so I'd love to fix this. I've tried to uninstall/reinstall dlib several times via PIP with no success.
When i check for the libary it does seem to be missing from root and user level accounts even though DLIB does in fact run when the python program is run as root:
user:
$ whereis libboost_python-py27.so.1.49.0
libboost_python-py27.so.1.49:
root:
# whereis libboost_python-py27.so.1.49.0
libboost_python-py27.so.1.49:
Both root and user accounts are using the same python
/usr/local/bin/python
The only clue i have is that the user account dlib fails looking for :
/usr/lib/libboost_python-py27.so.1.49.0
but the root one works and seems to be using:
/usr/local/lib/python2.7/dist-packages/dlib.so
Any ideas how I can work around this or fix it?