Installation problem for ngs-xfem


I’m trying to install ngsxfem.
I already have ngsolve installed and working, specifically version 6.2.2402-0~ubuntu22.04.1, which is the one indicated in python/
For the installation of xfem I used the command “pip3 install xfem” but when I try to run one of the Demonstration files I get the following error:

Traceback (most recent call last):
File “/home/angela/Thesis/XFEM/”, line 17, in
from xfem import *
File “/home/angela/.local/lib/python3.10/site-packages/xfem/”, line 23, in
from xfem.ngsxfem_py import *
ImportError: cannot open shared object file: No such file or directory

Does anyone know how to solve this?

Bests and thank you in advance,

Dear Angela,

Please use the pre-release version for the moment, i.e. pip3 install xfem --pre.

We are about to release a new release version that also works with a more recent ngsolve (which was not the case for your installation).


Thank you Christoph! It works fine now