Caffe import error in Python. Boost reason?

278 views
Skip to first unread message

Муртузаалиев Хабиб

unread,
Jun 11, 2015, 6:43:29 PM6/11/15
to caffe...@googlegroups.com
Hi, When I trying import caffe to Python interpreter  I get this

ImportError                               Traceback (most recent call last)
<ipython-input-1-1cca3aa1f8c5> in <module>()
----> 1 import caffe


/home/skeeph/code/fast-rcnn/caffe-fast-rcnn/distribute/python/caffe/__init__.py in <module>()
----> 1 from .pycaffe import Net, SGDSolver
     
2 from ._caffe import set_mode_cpu, set_mode_gpu, set_random_seed, set_device, \
     
3                     Layer, get_solver
     
4 from .proto.caffe_pb2 import TRAIN, TEST
     
5 from .classifier import Classifier


/home/skeeph/code/fast-rcnn/caffe-fast-rcnn/distribute/python/caffe/pycaffe.py in <module>()
     
11 import numpy as np
     
12
---> 13 from ._caffe import Net, SGDSolver
     
14 import caffe.io
     
15


ImportError: /home/skeeph/code/fast-rcnn/caffe-fast-rcnn/distribute/python/caffe/_caffe.so: undefined symbol: _ZN5caffe9SGDSolverIfE18ComputeUpdateValueEv

I am using Python 2.7

林子達

unread,
Jun 16, 2015, 12:55:05 AM6/16/15
to caffe...@googlegroups.com
I encounter the same error. Do you solve it already?


Муртузаалиев Хабиб於 2015年6月12日星期五 UTC+8上午6時43分29秒寫道:

Муртузаалиев Хабиб

unread,
Jun 16, 2015, 1:28:19 AM6/16/15
to caffe...@googlegroups.com
No, I just restore working version from backup. I can't understand reason of this error

林子達

unread,
Jun 16, 2015, 4:40:10 AM6/16/15
to caffe...@googlegroups.com
Hi 
 There are two ways that I fixed my issue when importing caffe.
1. $ make clean
2. Remove the caffe dir, and sync and build it again.

Reply all
Reply to author
Forward
0 new messages