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

can't install python-pcl on Ubuntu 22.04 with python3 and pcl 1.12.1

Open Samer-Docs opened this issue 1 year ago • 3 comments

  • Operating System and version: Ubuntu 22.04.1 LTS
  • PCL Version: 1.12.1
  • Cython Version: 0.29.32
  • boost 1.74

I am trying to run ILCC for calibration between panoramic camera and HDL32 LiDAR. I installed ILCC and opened it as a PyCharm project. The following requirements in requirements file were installed properly: PyYAML>=3.12 numpy>=1.12.1 sklearn>=0.0 scipy>=0.19.0 transforms3d>=0.3 matplotlib>=2.0.0 Cython boost pcl

I tried to install python-pcl using: git clone https://github.com/mfxox/python-pcl cd python-pcl python3 setup.py install

As the setup.py file set for an older version of pcl. I replaced manually "pcl_version == '-1.9'" by "pcl_version == '-1.12'" in setup.py, but this doesn't help and the command python3 setup.py install lead to errors as you can see in the attached snapshot problem1.png.

However, I managed to run img_corners_est.detect_img_corners() and it works fine, but I couldn't run pcd_corners_est.detect_pcd_corners() which lead to the error:

File "/home/samer/Desktop/ILCC/ILCC/pcd_corners_est.py", line 751, in seg_pcd import pcl ModuleNotFoundError: No module named 'pcl'

More details are in the attached snapshot problem2.png. Did you face such a problem before? or manage to install and compile python-pcl on Ubuntu 22.04

Thanks in advance problem1 problem2

Samer

Samer-Docs avatar Dec 25 '22 23:12 Samer-Docs

Having the same issue.

Did you find a solution??

TriptSharma avatar Jun 08 '23 18:06 TriptSharma

Also faced this problem, anyone fixed it?

GuoZhuoRan avatar Aug 04 '23 08:08 GuoZhuoRan

sudo apt-get install python3-pcl pcl-tools

JunzheJosephZhu avatar Oct 12 '23 16:10 JunzheJosephZhu