problem with python interface with caffe (pycaffe)

232 views
Skip to first unread message

Kayhan Batmanghelich

unread,
May 7, 2015, 1:12:12 PM5/7/15
to caffe...@googlegroups.com
Dear all,

I have some issues with python interface with caffe. The caffe compiles and all tests passes but when I try to import caffe in python I get this error:

```
In [1]: import caffe --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-1cca3aa1f8c5> in <module>() ----> 1 import caffe /home/batmangh/caffe/python/caffe/__init__.py in <module>() ----> 1 from .pycaffe import Net, SGDSolver 2 from ._caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver 3 from .proto.caffe_pb2 import TRAIN, TEST 4 from .classifier import Classifier 5 from .detector import Detector /home/batmangh/caffe/python/caffe/pycaffe.py in <module>() 11 import numpy as np 12 ---> 13 from ._caffe import Net, SGDSolver 14 import caffe.io 15 ImportError: /opt/boost/gnu/lib/libboost_python.so.1.55.0: undefined symbol: PyUnicodeUCS2_FromEncodedObject
```

Any idea how to resolve it?

Thanks,
Kayhan

blaseh...@web.de

unread,
May 8, 2015, 10:24:01 AM5/8/15
to caffe...@googlegroups.com
Did you try to google your error message? For example this question on stackoverflow might help: https://stackoverflow.com/questions/13963071/linking-boost-python-hello-world
Reply all
Reply to author
Forward
0 new messages