Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Unable to install - Ubuntu 20, Python3.8 #417

Open
jstmn opened this issue Dec 7, 2022 · 1 comment
Open

Unable to install - Ubuntu 20, Python3.8 #417

jstmn opened this issue Dec 7, 2022 · 1 comment

Comments

@jstmn
Copy link

jstmn commented Dec 7, 2022

I'm unable to install this package on Ubuntu 20 with python3.8

Your Environment

  • Operating System and version: Ubuntu 20.04 LTS
  • Compiler: ?
  • PCL Version: libpcl-dev/focal,now 1.10.0+dfsg-5ubuntu1 amd64 [installed] (installed via sudo apt install libpcl-dev)
  • Cython Version: 0.29.32

Context

When running pip install -e . i'm getting the following error:

(venv) [ torchship: ~/Libraries/python-pcl ] $ pip install -e .
Obtaining file:///home/jstm/Libraries/python-pcl
    ERROR: Command errored out with exit status 1:
     command: /home/jstm/Libraries/python-pcl/venv/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jstm/Libraries/python-pcl/setup.py'"'"'; __file__='"'"'/home/jstm/Libraries/python-pcl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /home/jstm/Libraries/python-pcl/
    Complete output (6 lines):
    /home/jstm/Libraries/python-pcl/setup.py: error: cannot find PCL, tried
        pkg-config pcl_common-1.9
        pkg-config pcl_common-1.8
        pkg-config pcl_common-1.7
        pkg-config pcl_common-1.6
        pkg-config pcl_common
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Expected Behavior

The package should install

Current Behavior

This error is happening and setup.py is aborted

Code to Reproduce

sudo apt install libpcl-dev # per https://pointclouds.org/downloads/#:~:text=sudo%20apt%20install%20libpcl%2Ddev
cd /tmp
git clone [email protected]:strawlab/python-pcl.git
cd python-pcl
python3.8 -m venv temp_venv/
source temp_venv/bin/activate
pip install numpy cython
pip install -e .

Possible Solution

@yanglh14
Copy link

I met the same problem and got it solved using: lianghongzhuo/PointNetGPD#47 (comment).

Hope it can help you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants