Announcement: dlib should now be on your default Python 2 path

1,321 views
Skip to first unread message

Brandon Amos

unread,
Dec 28, 2015, 12:09:17 PM12/28/15
to CMU-OpenFace
Hi OpenFace users,

In commit ec6aa4 on the master branch, I changed OpenFace to assume
dlib is on Python's default path.
Older versions of our build and setup instructions are not compatible
with this change and will lead to the error: "ImportError: No module named dlib"

To fix this, print your Python 2 path with `python2 -c 'import sys; print(sys.path)'` and
copy dlib.so (probably from ~/src/dlib-18.16/python_examples/build) to somewhere here.

In OSX, I'm using `/usr/local/lib/python2.7/site-packages`.
In Arch Linux, I'm using `/usr/lib/python2.7/site-packages`.
In my Docker Ubuntu 14.04 container, I'm using `/usr/local/lib/python2.7/dist-packages`.

An alternative fix is to install dlib from Pypy at https://pypi.python.org/pypi/dlib
with `pip2 install dlib`.

-Brandon.
Reply all
Reply to author
Forward
0 new messages