-
Notifications
You must be signed in to change notification settings - Fork 699
ImportError: libpcl_keypoints.so.1.7: cannot open shared object file: No such file or directory #317
Comments
Same error. ==Update=== ==Update 2=== Check versionIt turns out that you need to apt install libpcl-dev of version 1.7.x . But the default version of libpcl-dev on Ubuntu 18.04 is So I run P.S. Modify you apt source since libpcl-dev1.7 is only available for xenial (16.04LTS) version and default source on Ubuntu 18.04 is InstallationThen I run P.S. some dependency package dependent on children dependencies and just keep patient. Validationrun
and you'll get
as supposed. |
@xiaoFine this command gives me following output:
There is no available 1.7 version of libpcl-dev for ubuntu 18.04. Could you help me how did you manged to install 1.7 version ?? |
For me i just add
Then update it by runnnig: sudo apt update
apt-cache madison libpcl-dev you are supposed to get following outputs in you Ubuntu 18.04 LTS
|
Some of your source address are not being recognised, and when I do apt-cache madison libpcl-dev I don't get the 1.7 version. How can I solve it? Thanks:) |
Hello @Sirokujira, Installing
|
@IsmaelElHouas Sorry for delay. I found some official sources and you can have a try.
|
@xiaoFine Because of it I am unable to install Thanks |
ref this: |
Thank you for your answers. I tried so much to solve this problem, and surfed all answers on the web. One drawback among the answers is this line code: "sudo apt-get install libpcl-dev -y". If you run this command, it will install libpcl-dev with higher version which will be conflicted to that libpcl-dev 1.7 you will install later. So please do not do anything and listen to me to solve the problem. here are some steps to hit the problem: Step 1: find Ubuntu 16 source.list and add one by one of its repositories to your Ubuntu(for example version 20). you can find it in this link: https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1 Step 2: run "sudo apt update", now libpcl-dev 1.7 has been installed successfully. you can run this command to see :"apt-cache policy libpcl-dev" Step 3: run: "python", then "import pcl", you will receive such this error: ImportError: libpcl_keypoints.so.1.7, ok do not worry, copy "libpcl_keypoints.so.1.7" and go to this website and paste within its search box: https://debian.pkgs.org/8/debian-main-amd64, there you will see such this: "sudo apt-get install libpcl-keypoints1.7", run it on the terminal. Step 4: type "python" on the terminal, then " import pcl ". you will see another error for example: "libpcl-outofcore1.7", again search it that website and do as previous step. Step 5: repeat step 3 and 4 till you can import pcl successfully. I did and worked for me :D Moreover, I repeated the process to install PCL and also prepared these steps to resolve the problem easily. You can follow these steps to install PCL successfully. Step1: Add Ubuntu 16 source list Step2: sudo apt-get update step3: pip install python-pcl step4: sudo apt-get install libpcl-keypoints1.7 step5: sudo apt-get install libpcl-outofcore1.7 step6: sudo apt-get install libpcl-people1.7 step7: sudo apt-get install libpcl-recognition1.7 step8: sudo apt-get install libpcl-registration1.7 step9: sudo apt-get install libpcl-segmentation1.7 step10: sudo apt-get install libpcl-surface1.7 Now, if you get error "libpng12-0", do this: sudo add-apt-repository ppa:linuxuprising/libpng12 sudo apt update sudo apt-get install libpng12-0 Step11: sudo apt-get install libpcl-tracking1.7 Step12: sudo apt-get install libflann1.8 Step14: python import pcl Congradulation : pcl successfully is imported |
Hi @Abb1989 I am new to Ubuntu. I tried your method and it works! Thanks for sharing. However, changing pcl version from 1.8 to 1.7 will cause the dependencies problems of other programs on Ubuntu 18.04. It is possible for us to only install it locally? |
I think you can create an environment by conda command. I did not do such this thing. Using conda command would be better. Seek more about conda command, i think you can do it. |
@Abb1989 Thanks for the reply. I managed to handle this problem by manually linking the downloaded pkgs to a local folder. |
@Abb1989 How do you add one by one of the Ubuntu 16 source list repositories to my own source list? Do I just copy the entire (https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1) into my system's source.list file??? |
Hi dear, read this article: |
Works for both python2 and python3 (mention python3 if needed)
If importing pcl outside this directory still give the same error, then uninstall the existing pcl.
|
@Abb1989 can some one help? |
Hi dear, You can do these steps: Step 2:
It may need its dependencies when you installed it manually. The best way is that you continue step2 by installing its dependencies as well. Sorry for my bad English writing! |
Hi, I got an error : ImportError: libpcl_keypoints.so.1.8: cannot open shared object file: No such file or directory Many thanks! |
You just install libvtk manually!! Sometimes this is the only way I think! |
Hi, I need it for Python 3 (Python-3.6.9 to be specific). The upper link works for python 2 not for python3. |
Getting the error message as shown in the title every time I try to import pcl
Your Environment
Ran
But every time I try to import pcl, I get the error shown above. It seems like running apt-get install libpcl-dev installed /usr/lib/x86_64-linux-gnu/libpcl_keypoints.so. Why is it looking for libpcl_keypoints.so.1.7?
The text was updated successfully, but these errors were encountered: