Py-faster-rcnn: The .so file cannot import: "failed to map segment from shared object"

Created on 29 Apr 2016  路  2Comments  路  Source: rbgirshick/py-faster-rcnn

Hi, I followed the protocol provided and when I run 'python tools/demo.py' I got this problem. I am using anaconda python on ubuntu 14.04. Could somebody kindly tell me how to deal with this problem?

Traceback (most recent call last):
File "tools/demo.py", line 18, in
from fast_rcnn.test import im_detect
File "/media/research/py-faster-rcnn/tools/../lib/fast_rcnn/test.py", line 17, in
from fast_rcnn.nms_wrapper import nms
File "/media/research/py-faster-rcnn/tools/../lib/fast_rcnn/nms_wrapper.py", line 9, in
from nms.gpu_nms import gpu_nms
ImportError: /media/research/py-faster-rcnn/tools/../lib/nms/gpu_nms.so: failed to map segment from shared object

Most helpful comment

The reason you are getting that message is probably that the drive you have mounted, i.e. /media/research/ does not have executable permission. Remount the partition with executable permission as explained in: https://askubuntu.com/questions/311438/how-to-make-tmp-executable.

If you mount the drive with fstab, see: https://askubuntu.com/questions/678857/fstab-doesnt-mount-with-exec.

All 2 comments

hi, @Paralysis have you solved the problem? Seems like we have similar problem.

The reason you are getting that message is probably that the drive you have mounted, i.e. /media/research/ does not have executable permission. Remount the partition with executable permission as explained in: https://askubuntu.com/questions/311438/how-to-make-tmp-executable.

If you mount the drive with fstab, see: https://askubuntu.com/questions/678857/fstab-doesnt-mount-with-exec.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbuckler picture mbuckler  路  3Comments

alantrrs picture alantrrs  路  4Comments

forcecore picture forcecore  路  5Comments

ghost picture ghost  路  3Comments

limorbagizada picture limorbagizada  路  5Comments