Caffe Import Error: ../ caffe/_caffe.so: undefined symbol: _ZN5caffe10PyErrFatalEv
I'am facing an caffe import error problem similar to "ImportError:caffe.so: undefined symbol: _ZN5caffe4mtx_E #3834" (https://github.com/BVLC/caffe/issues/3834) i.e Caffe Import Error: ../ caffe/_caffe.so: undefined symbol: _ZN5caffe10PyErrFatalEv
I have tried Uncommenting the line: WITH_PYTHON_LAYER := 1 and recompiled everything.. Still the problem persists.
Using CUDA 8,,NVIDIA Caffe 0.16,OpenBLAS,Ubuntu 16.04,Python 2.7 Everything worked correctly; prior to this step..
I could not understand what this refers to ' _ZN5caffe10PyErrFatalEv'
Installation reference: https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-Guide
Hi @anilsathyan7 please paste here what commands do you run when you rebuild everything and what output they produce. Thank you.
As mentioned earlier, i have followed the github link for installation reference and after changing the WITH_PYTHON_LAYER := 1 , i ran
make all make test make runtest make pycaffe -should be finished already, so you can omit this one make distribute (as in instructions...)
Output in python ...
$import caffe
Traceback (most recent call last):
File "
File "/home/anilsathyan7/caffe-caffe-0.16/distribute/python/caffe/pycaffe.py", line 13, in
ImportError: /home/anilsathyan7/caffe-caffe-0.16/distribute/python/caffe/_caffe.so: undefined symbol: _ZN5caffe10PyErrFatalEv
(I have tried ../caffe-caffe-0.16/python/caffe also for python path..but same error occurs..) I'am getting same error upon starting NVIDIA Digits!!!
Anyway, i'am able to run the whole thing using docker(caffe with 0.15) But i would be more happy if i could figure the problem and make it work...
Thank you @anilsathyan7 Let me keep it open so far. Also, as a first step, please run
make superclean
Sometimes it helps.
It did not work.Problem still persists ...
Hi @anilsathyan7 reproduced and fixed. So far the fix is in my staging branch: https://github.com/drnikolaev/caffe/tree/caffe-0.16 You are welcome to verify it.
@drnikolaev hi,I meet the same problems as @anilsathyan7 ,and I still don't understand how to solve it ,can you help me ?thank you.
Hi @anilsathyan7 @zxx001
It's reproduced and fixed, new release is coming soon. You are welcome to try it here:
https://github.com/drnikolaev/caffe/tree/caffe-0.16
@zxx001 hi, an easy way is to use docker images..Instead!! https://hub.docker.com/r/nvidia/caffe/ https://hub.docker.com/r/bvlc/caffe/ https://hub.docker.com/r/nvidia/digits/
I had actually spent couple of weeks for installation (previously.. due to compatibility and dependency issues) and configuration during my initial trial..
If you just want to get things done..docker is the easiest way out. I've yet to try out the fix suggested by @drnikolaev
@anilsathyan7 Hi, I meet the same problems. Besides does with docker images, is there any other solution to solve the problem?
Please check v0.16.5 and reopen the issue if the problem still exists.
Confirmed working!!! There seems to be no errors, now. I'am able to import caffe-v0.16.5 in python 2.7 .. Also digits is working fine with this latest version !!! Thanks ...
@anilsathyan7 thanks for confirming