strawlab / python-pcl

Python bindings to the pointcloud library (pcl)
http://strawlab.github.com/python-pcl/
Other
2k stars 701 forks source link

ImportError: libDummyDevice.so.0: cannot open shared object file: No such file or directory #70

Open wd15 opened 9 years ago

wd15 commented 9 years ago

When importing the pcl Python library the following happens

 >>> import pcl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dwheeler/anaconda/lib/python2.7/site-packages/pcl/__init__.py", line 2, in <module>
    from ._pcl import * 
ImportError: libDummyDevice.so.0: cannot open shared object file: No such file or directory

The OS is Ubuntu 14.04. PCL was installed using the instructions in http://pointclouds.org/downloads/linux.html. pcl-python was installed from f17c686b63fe. Some more information,

 $ ldd _pcl.so
 linux-vdso.so.1 =>  (0x00007ffcc290b000)
 libpcl_io.so.1.7 => /usr/lib/libpcl_io.so.1.7 (0x00007fd39dede000)
 libOpenNI.so.0 => /usr/lib/libOpenNI.so.0 (0x00007fd39dc65000)
 libOpenNI2.so.0 => /usr/lib/libOpenNI2.so.0 (0x00007fd39da0a000)
 libDummyDevice.so.0 => not found
 libOniFile.so.0 => not found
 libPS1080.so.0 => not found
 ...
 ...
wd15 commented 9 years ago

Follow up comment: setting

$ export LD_LIBRARY_PATH=/usr/lib/OpenNI2/Drivers/

allows the import pcl to work and the examples work.

tesparrow commented 9 years ago

I have the same problem, but the above does not work

ldd _pcl.so gives the libDummyDevice.so.0 is found, after running

export LD_LIBRARY_PATH=/usr/lib/OpenNI2/Drivers/

but within with python I still get

ImportError: libDummyDevice.so.0: cannot open shared object file: No such file or directory.

Any ideas why?

zahidmak commented 7 years ago

Hi strawlab,

Any update on this issue. I am using Ubuntu 14.04. And I am seeing below error. Not sure what could the reason.

from ._pcl import * ImportError: libDummyDevice.so.0: cannot open shared object file: No such file or directory

I am stuck on this for last 3 days. Any help is appreciated.

Thank you,

OmarMAmin commented 7 years ago

when i run ldd _pcl.so

i got

/usr/local/lib/python2.7/dist-packages/pcl$ ldd /usr/local/lib/python2.7/dist-packages/pcl/_pcl.so | grep libpcl libpcl_io.so.1.7 => not found libpcl_segmentation.so.1.7 => not found libpcl_features.so.1.7 => not found libpcl_filters.so.1.7 => not found libpcl_surface.so.1.7 => not found libpcl_search.so.1.7 => not found libpcl_kdtree.so.1.7 => not found libpcl_octree.so.1.7 => not found libpcl_common.so.1.7 => not found

though all these libraries are located in usr/local/lib does any one know how to fix that ?

Thank you

ding-hai commented 7 years ago

I got the same error,can anyone help mme