I’ve been trying to migrate my code over to our high-performance cluster, but I’m having difficulty getting ngsxfem to work. When I run my code, I get the following error:
Traceback (most recent call last):
File "filename.py", line 7, in <module>
from xfem import *
File "/usr/lib/python3/dist-packages/xfem/__init__.py", line 15, in <module>
from xfem.ngsxfem_xfem_py import *
ImportError:
/usr/lib/python3/dist-packages/xfem/../../../netgen/libngsxfem_utils.so: undefined
symbol: _ZTIN5ngstd9ExceptionE
Apparently this is supposed to come from the libodb library, but installing it didn’t fix the issue.
If it’s relevant, I’m not trying to do anything in paralell yet, and my batch script uses “python3 filename.py”, which works without errors on my home computer.
Can you give me a bit more information? Is a similar ngsolve script running? Which NGSolve-Version are you using? Are you installing ngsxfem with or without included ngsolve-build?
Perhaps you can post the version of ngsolve and ngsxfem as well as the installation directories and the build-flags of ngsxfem here to help us get a picture of your situation?
Sorry for the late reply. The problem is with the debian package of ngsxfem. At the moment we do not have regular ngsxfem debian packages, i.e. in your case you will get a very old ngsxfem combined with a recent ngsolve. Please build ngsxfem from scratch. You can also try out “pip install ngsxfem” if you want to use pip.