pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

ImportError: DLL load failed while importing _TopoDS: The specified module could not be found.

Open LXHCSMX opened this issue 2 years ago • 0 comments

There is a bug when I called pythonocc using vs code and pycharm.

my code: from OCC.Extend.DataExchange import read_step_file from OCC.Display.backend import load_backend load_backend("qt-pyqt5") import OCC.Display.qtDisplay as qtDisplay

error: Traceback (most recent call last): File "d:/cae_test/mesh_soft.py", line 17, in from OCC.Extend.DataExchange import read_step_file File "C:\ProgramData\Miniconda3\envs\cae_env\lib\site-packages\OCC\Extend\DataExchange.py", line 20, in from OCC.Core.TopoDS import TopoDS_Shape File "C:\ProgramData\Miniconda3\envs\cae_env\lib\site-packages\OCC\Core\TopoDS.py", line 18, in from . import _TopoDS ImportError: DLL load failed while importing _TopoDS: The specified module could not be found.

I suspect that there is a problem with the path that causes the running error. Is there any way to solve it?

LXHCSMX avatar Dec 23 '22 15:12 LXHCSMX