- Thank you received: 0
Couldn't load OCC geometry
4 years 8 months ago #2483
by jleman
Couldn't load OCC geometry was created by jleman
I am using NETGEN-6.2-dev. I am running python scripts to import .step files and mesh geometry. All was working fine. Suddenly from one run to the next I started getting this error:
NETGEN-6.2-dev
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
Including OpenCascade geometry kernel
optfile ./ng.opt does not exist - using default values
togl-version : 2
OCC module loaded
loading ngsolve library
NGSolve-6.2.2002
Using Lapack
Including sparse direct solver Pardiso
Including sparse direct solver UMFPACK
Running parallel using 6 thread(s)
importing NGSolve-6.2.2002
(should) load python file 'C:/00_Temp/NetgenMesher.py'
Traceback (most recent call last):
File "<string>", line 4, in <module>
netgen.libngpy._meshing.NgException: Couldn't load OCC geometry
Finished executing C:/00_Temp/NetgenMesher.py
The code is:
I have tried rebooting and re-installing ngsolve/netgen, but get the same error.
Any suggestions for what might have gone wrong or how to fix?
NETGEN-6.2-dev
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
Including OpenCascade geometry kernel
optfile ./ng.opt does not exist - using default values
togl-version : 2
OCC module loaded
loading ngsolve library
NGSolve-6.2.2002
Using Lapack
Including sparse direct solver Pardiso
Including sparse direct solver UMFPACK
Running parallel using 6 thread(s)
importing NGSolve-6.2.2002
(should) load python file 'C:/00_Temp/NetgenMesher.py'
Traceback (most recent call last):
File "<string>", line 4, in <module>
netgen.libngpy._meshing.NgException: Couldn't load OCC geometry
Finished executing C:/00_Temp/NetgenMesher.py
The code is:
Code:
from netgen.occ import *
from ngsolve import *
geo = OCCGeometry('C:/Temp/dome.step') #import step file
I have tried rebooting and re-installing ngsolve/netgen, but get the same error.
Any suggestions for what might have gone wrong or how to fix?
4 years 8 months ago #2484
by jleman
Replied by jleman on topic Couldn't load OCC geometry
Update: not sure why this fixed the problem, but I moved the step file to a different folder, updated the path in my script and it worked.
Time to create page: 0.096 seconds