python-pcl icon indicating copy to clipboard operation
python-pcl copied to clipboard

python-pcl not working with python 3.6.x in Ubuntu 18.04 LTS

Open ArghyaChatterjee opened this issue 4 years ago • 6 comments

My Environment

  • Operating System and version: Ubuntu 18.04 LTS
  • Compiler: python 3.6.9
  • PCL Version: 1.8.x
  • Cython Version: 0.29.16

When I tried to install python-pcl with pip3:

pip3 install python-pcl

It downloads the wheel file python_pcl-0.3.0a1-cp36-cp36m-manylinux1_x86_64.whl. After installing, when I tried to import:

arghya@arghya-Erazer-X7849-MD60379:~$ python3
Python 3.6.9 (default, Jan 26 2021, 15:33:00) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/arghya/.local/lib/python3.6/site-packages/pcl/__init__.py", line 2, in <module>
    from ._pcl import *
ImportError: libpcl_keypoints.so.1.7: cannot open shared object file: No such file or directory

N.B: I can use python-pcl with python 2.7 with same configuration in my pc using sudo apt-get install libpcl-dev -y command but can't work with python 3.6.x and my project requires python version 3.

ArghyaChatterjee avatar Aug 23 '21 11:08 ArghyaChatterjee

you can try with pip install python3-pcl

Marina-Banov avatar Nov 16 '21 14:11 Marina-Banov

Unfortunately it seems like many of us are getting this issue. See https://github.com/strawlab/python-pcl/issues/317

DanielTakeshi avatar Nov 28 '21 13:11 DanielTakeshi

Unfortunately it seems like many of us are getting this issue. See #317

Hi, this is a bad circle, you add this link,and that link involves this link.

459737087 avatar Dec 01 '21 07:12 459737087

and I can't run it in python3.X

459737087 avatar Dec 01 '21 07:12 459737087

and I can't run it in python3.X

It should work with python3.6. See https://github.com/strawlab/python-pcl/issues/374 . You need to manually copy the package folder though.

BeBeBerr avatar Dec 19 '21 18:12 BeBeBerr

Try this. https://github.com/strawlab/python-pcl/pull/371

pk1996 avatar Dec 31 '21 12:12 pk1996