rbgirshick / py-faster-rcnn

Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
Other
8.14k stars 4.11k forks source link

from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ ImportError: libboost_system.so.1.61.0: cannot open shared object file: No such file or directory #493

Open PapaMadeleine2022 opened 7 years ago

PapaMadeleine2022 commented 7 years ago

hello, when I run ./tool/demo.py, it shows error: ` Traceback (most recent call last): File "./tools/demo.py", line 18, in from fast_rcnn.test import im_detect File "/media/xxx/object-detection/py-faster-rcnn/tools/../lib/fast_rcnn/test.py", line 16, in import caffe File "/media/xxx/object-detection/py-faster-rcnn/tools/../caffe-fast-rcnn/python/caffe/init.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver File "/media/xxx/object-detection/py-faster-rcnn/tools/../caffe-fast-rcnn/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \ ImportError: libboost_system.so.1.61.0: cannot open shared object file: No such file or directory

` but I have installed libboost through 'apt-get install libboost-dev'.

How solve this problem? THANK you in advance!

onkarganjewar commented 7 years ago

I ran into a similar issue and resolved it by recompiling the caffe, pycaffe modules. To be specific, I ran the steps 3 & 4 from installation instructions again. Hope this helps!

PapaMadeleine2022 commented 7 years ago

@onkarganjewar it seems to be the cause of boost

onkarganjewar commented 7 years ago

@IvyGongoogle My bad. Maybe this issue can help you. Again, I'm not sure.

Btw, I ran this command for boost installation


sudo apt-get install --no-install-recommends libboost-all-dev
PapaMadeleine2022 commented 7 years ago

@onkarganjewar I think sudo apt-get install --no-install-recommends libboost-all-dev is right. Thank you!

artificial-mind commented 7 years ago

" ImportError: libboost_system.so.1.61.0: cannot open shared object file: No such file or directory" @IvyGongoogle try to run following commands your issue might get solved.

try to check which libboost_system is present in your system using following commands: locate libboost_system.so You will get the location and version.

Go to that directory: Link your version with the lib system wants using follwoing:

sudo ln -s libboost_system.so libboost_system.so.1.61.0

It will solve this error. happy coding

SayantiBardhan commented 6 years ago

Hi,

I am running a code on AWS Deep Learning AMI. After doing

cmake all caffe-rsdnet
Downloading the data and trained model. Setting caffe_root = '/home/ubuntu/rsdnet/caffe-rsdnet/'
On running the command, bash test_rsdnet.sh.
I get the following error:

rsdnet

I tried multiple time to resolve the issue and I also deleted files and re-imported the file and still get same issues. Assistance would be greatly appreciated.