Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Couldn't load OCC geometry

More
4 years 1 month ago #2483 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:
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?
More
4 years 1 month 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.110 seconds