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

problem when importing pcl windows

Open skyline624 opened this issue 7 years ago • 11 comments

Hello everyone, I get an error message when I try to import pcl:

import pcl Traceback (most recent call last): File "<pyshell # 1>", line 1, in import pcl File "C: \ Python35 \ lib \ site-packages \ python_pcl-0.3-py3.5-win-amd64.egg \ pcl \ __ init__.py", line 2, in from ._pcl import * ImportError: DLL load failed: The specified module was not found.

pcl is well in the path I do not see where it can come. I am running windows 10 and python 3.5 pcl 1.8.1. thank you in advance

skyline624 avatar Jan 06 '18 14:01 skyline624

Try with python-2.7. It worked for me. Also try installing win-7 instead of win-10 @Qipccc and @skyline624

niranjanreddy891 avatar Mar 12 '18 10:03 niranjanreddy891

I was able to use the dependency walker to open the .pyd files within the site-packages directory referenced in my error message. Doing so revealing that OpenNI2.dll was missing. I added C:\Program Files\OpenNI2\Samples\Bin, which is where OpenNI2.dll is located, to my Path environment variable and then I was able to import pcl just fine.

mukhery avatar Apr 04 '18 19:04 mukhery

Same problem to me. I fixed it by installing .NET Framework 4.7.1, then I was able to import pcl (python3.5, windows7, pcl1.8.1)

lzq100123 avatar Apr 22 '18 14:04 lzq100123

Had the same issue. Fixed it by starting the python interpreter in admin mode (python 3.6, windows 10, pcl 1.8.1)

kaif15 avatar Apr 26 '18 01:04 kaif15

@mukhery thanks a lot, that does work for me!

HowcanoeWang avatar May 07 '18 20:05 HowcanoeWang

@mukhery This also works for me, thanks!

neveroldmilk avatar Jul 15 '18 08:07 neveroldmilk

I had to add C:\\Program Files\OpenNI2\Redist to the system PATH to get it to work under Windows.

wedesoft avatar Mar 01 '19 14:03 wedesoft

@wedesoft windows 10 or what?

jaceblake avatar Mar 03 '19 16:03 jaceblake

@jahidmixmaster Windows 7

wedesoft avatar Mar 04 '19 10:03 wedesoft

Had the same issue. Fixed it by starting the python interpreter in admin mode (python 3.6, windows 10, pcl 1.8.1)

Very helpful!

tjulyz avatar Jul 29 '21 12:07 tjulyz

Had the same issue. Fixed it by starting the python interpreter in admin mode (python 3.6, windows 10, pcl 1.8.1)

Very helpful! Could you please tell me how to fix this error with a Python interpreter? Thanks!

Lytt-2020 avatar Oct 08 '21 02:10 Lytt-2020