Re: Installation Issue HELP PLS: No module named _caffe

60 views
Skip to first unread message

Kağan İncetan

unread,
Sep 8, 2017, 4:27:59 AM9/8/17
to Caffe Users
Hi Paridhi,

Thank you very much for your reply

I have run
make pycaffe

but I got this error after a while:

/usr/bin/ld: cannot find -lopencv_imgcodecs
collect2: error: ld returned 1 exit status

Do you have any further idea?


7 Eylül 2017 Perşembe 22:16:39 UTC+2 tarihinde Paridhi Srivastava yazdı:
Hey,
I was facing the same issue a bit ago. But for me, the error was some dependencies needed in compiling the python wrapper.  Try running the following:
make pycaffe
make distribute

Pycaffe is the python interpreter for running caffe in Python. But make sure to change the Makefile.config according to the instructions on the caffe site.
Also you'll have to export $CAFFE_ROOT to the path of the caffe directory on your system.

Hope this solves your query.
 

On Thursday, September 7, 2017 at 9:38:17 AM UTC-4, Kağan İncetan wrote:
Hi,
First of all I am quite a newbie so excuses for too simple questions or confusions.

I have followed all the instructions from the caffe website.

I have finally able to accomplish the following:

mkdir build
cd build
cmake ..
make all
make install

without any problem. Now I am doing
make runtest

but some tests are already failed.

Also when I type import caffe in the python terminal I am getting No module named _caffe error. So I believe I could not manage to install caffe properly.

I have done

export PYTHONPATH=/path/caffe/python:$PYTHONPATH

P.S when I type
$ echo $CAFFE_ROOT
it returns me nothing

Thanks in advance

Kağan İncetan

unread,
Sep 8, 2017, 4:33:15 AM9/8/17
to Caffe Users
I find important to let you know that I am using OpenCV 3.2 so I have uncommented the corresponding line in Makefile.config and I was getting the same error when I was running make all after cmake ..
Cmake was showing that the used version of OpenCV is 2.4 which I believe was already installed in the computer (Jetson TX1)
Then I have edited CMakeLists.txt by adding find.package line to define my OpenCV 3.2 Then that error was gone for make all

But now with make pycaffe I am getting the same error.

I hope someone can help.

Thanks in advance.

8 Eylül 2017 Cuma 10:27:59 UTC+2 tarihinde Kağan İncetan yazdı:
Reply all
Reply to author
Forward
0 new messages