tpaviot / pythonocc-core

Python package for 3D geometry CAD/BIM/CAM
GNU Lesser General Public License v3.0
1.37k stars 377 forks source link

PythonOCC says No module named 'OCC.STEPControl'. #1026

Closed AmanSavaria1402 closed 3 years ago

AmanSavaria1402 commented 3 years ago

Hello,

I am trying to extract features from step files by following this commit. But when I import the required functions, from OCC.STEPControl import STEPControl_Reader from OCC.IFSelect import IFSelect_RetDone, IFSelect_ItemsByEntity from OCC.Display.SimpleGui import init_display from OCC.BRep import BRep_Tool_Surface from OCC.GeomAbs import GeomAbs_Plane, GeomAbs_Cylinder from OCC.TopoDS import topods_Face from OCC.BRepAdaptor import BRepAdaptor_Surface

I get a ModuleNotFoundError in importing all these functions except for the From OCC.Display.SimpleGui import init_display function.

These are all the error messages: ModuleNotFoundError: No module named 'OCC.STEPControl' ModuleNotFoundError: No module named 'OCC.IFSelect' ModuleNotFoundError: No module named 'OCC.BRep' ModuleNotFoundError: No module named 'OCC.GeomAbs' ModuleNotFoundError: No module named 'OCC.TopoDS' ModuleNotFoundError: No module named 'OCC.BRepAdaptor'

Currently, I am using pythonocc-core == 7.5.1 and occt==7.5.2

Thank You.

mkskalai commented 3 years ago

Hello,

try using OCC.Core.STEPControl, OCC.Core.BRep etc.

Hope this helps

msm-prarthana-bataju commented 2 years ago

Hello @mkskalai, I am sorry but I didn't understand your answer. Could you please briefly write it. I am also facing the same dll error and tried every possible steps but didn't work. :(