I'm attempting to do model inspection and classification on ImageNet using the classification notebook in iPython running in a Python 3.4 virtual env.
When running the first cell, I get an import error on the line for
import caffe
the error is:
ImportError: ../python/caffe/_caffe.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE
The rest of caffe seems to be installed correctly (I successfully trained a model).
The problem seems to be with boost.python. Running the following command:
ldd ./python/caffe/_caffe.so | grep boost
yields:
libboost_python-py27.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0
In the same directory I also have:
/usr/lib/x86_64-linux-gnu/libboost_python-py34.so.1.54.0
My question is:
How do I get caffe to use the 3.4 boost library instead of 2.7?
I see some work was done on this in
this commit (it's also where the installation instructions were changed to say "Python 3.3+ should work out of the box")