pclpy icon indicating copy to clipboard operation
pclpy copied to clipboard

An error during import in example of v0.11.0

Open cyy280113999 opened this issue 3 years ago • 0 comments

When i run example pcl_with_pyqt5.py in pclpy/examples/ of v0.11.0 ,
An error occurred while the program was running , during import .

Head of that code is following:

import sys

import pclpy from pclpy import pcl

from PyQt5 import QtWidgets from PyQt5.QtCore import Qt from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor

Error printed by pychram is following:

Traceback (most recent call last): File "D:\ me \miniconda3\envs\py36\lib\site-packages\vtk\vtkCommonMisc.py", line 5, in from .vtkCommonMiscPython import * ImportError: DLL load failed: program could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:/ my program /qt_pcl_demo1.py", line 8, in from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor File "D:\ me \miniconda3\envs\py36\lib\site-packages\vtk_init_.py", line 9, in from .vtkCommonMisc import * File "D:\ me \miniconda3\envs\py36\lib\site-packages\vtk\vtkCommonMisc.py", line 9, in from vtkCommonMiscPython import * ModuleNotFoundError: No module named 'vtkCommonMiscPython'

My environment created by conda:

python 3.6 pclpy 11 pyqt5

But when i swap the line , it success. like this

import sys

from PyQt5 import QtWidgets from PyQt5.QtCore import Qt from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor

import pclpy from pclpy import pcl

Hope to find what happened or leave a comment in file

cyy280113999 avatar Apr 07 '21 09:04 cyy280113999