Python Error Importing Caffe

111 views
Skip to first unread message

john....@gmail.com

unread,
Sep 28, 2015, 1:55:13 PM9/28/15
to Caffe Users
I have caffe build and pycaffe built, but when I try to import caffe, I get the following error:

Python 2.7.8 (default, Dec  8 2014, 16:10:59) 
[GCC 4.9.1 20140716 (Cray Inc.)]
>>> import caffe
/caffe/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/caffe/python/caffe/pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: /boost/1.54.0/lib/libboost_python.so.1.54.0: undefined symbol: PyUnicodeUCS4_FromEncodedObject


It looks like a problem with boost.python, but I have no idea how to resolve this. Anyone encounter this before or have any ideas on how to fix it?
Thanks
Reply all
Reply to author
Forward
0 new messages