strawlab/python-pcl

Can not install "python-pcl" in Python

Opened this issue · 7 comments

Dear all,

Seems missing "pkg-config.exe". I downloaded python-pcl and it is missing this .exe.

Windows 10, Visual Studio 2015 Interface, Python 3.5

See message:


Installing 'python-pcl'
Collecting python-pcl
Using cached python-pcl-0.3.0a1.tar.gz (14 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\luisgo\AppData\Local\Programs\Python\Python35\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\luisgo\AppData\Local\Temp\pip-install-qhxba4oq\python-pcl\setup.py'"'"'; file='"'"'C:\Users\luisgo\AppData\Local\Temp\pip-install-qhxba4oq\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 --egg-base 'C:\Users\luisgo\AppData\Local\Temp\pip-install-qhxba4oq\python-pcl\pip-egg-info'
cwd: C:\Users\luisgo\AppData\Local\Temp\pip-install-qhxba4oq\python-pcl
Complete output (13 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\luisgo\AppData\Local\Temp\pip-install-qhxba4oq\python-pcl\setup.py", line 154, in
if subprocess.call(['.\pkg-config\pkg-config.exe', 'pcl_common%s' % pcl_version]) == 0:
File "C:\Users\luisgo\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 247, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\luisgo\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 676, in init
restore_signals, start_new_session)
File "C:\Users\luisgo\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 957, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
set environment PKG_CONFIG_PATH=C:\Program Files\PCL 1.8.1\lib\pkgconfig;C:\Program Files\PCL 1.8.1\3rdParty\FLANN\lib\pkgconfig;C:\Program Files\PCL 1.8.1\3rdParty\Eigen\lib\pkgconfig;C:\Users\luisgo\AppData\Local\Temp\pip-install-qf7tntdr\python-pcl\pkg-config\pkg-config.exe;C:\Users\luisgo\AppData\Local\Temp\pip-install-uohfkxmq\python-pcl\pkg-config\pkg-config.exe;
C:\Users\luisgo\AppData\Local\Temp\pip-install-qhxba4oq\python-pcl\pkg-config\pkg-config.exe
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
'python-pcl' failed to install. Exit code: 1


I installed PCL 1.8.X. and dependencies.

Thanks,

Luis Gonçalves

Maybe you can try to use pip with a precompiled wheel(you may download the file from https://drive.google.com/open?id=1gxSTP4gwtWmsztO4N4TquNhUMufNunWn or other places cause the official website has no successful revision within 6 months).
Note that you may meet the error below "ImportError: DLL load failed: The specified procedure could not be found"
The solotion can be found in this issue https://github.com/strawlab/python-pcl/issues/201

install by source code,maybe sensible.

here,the author tell us:
download gtk and copy bin folder to pkg-config folder.

may this is the error missing "pkg-config.exe".

I got pkg-config.exe binary from internet and I put in pkg-config. I compiled in Windows. As it was compiled and gave .h missing I create an "INCLUDE" variable in the system (Environmental Variables in the Control Panel -> System)  with the path to the directory of the .h(s) missing. As it was compiled and gave .lib missing I create a "LIB" variable in the system with the path to the directory of the .lib(s) missing. I compiled with: python setup.py install

On 15/04/2020 09:53, 大胖纸 wrote: install by source code,maybe sensible. here,the author tell us: download gtk and copy bin folder to pkg-config folder. may this is the error missing "pkg-config.exe". — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#352 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMH3PPABTHV73R3KVOOS5DRMVYZ7ANCNFSM4LWCPJBQ.

You finish the question or not? I can not understand acturaly

I achieved just today.
But not add "INCLUDE" variable to the system.

The setup.py file's code,when PCL version <1.9x,Just need the variable (in the system ) like the document say,such as PCL_ROOT and so on.

Then install just do : bld.bat(the first two steps,the tests part comes error).

did you comes error when do the tests part? @Iuisgo007