Netgen Issue for WSL


I am using Windows Subsystem for Linux (WSL) with Ubuntu 22.04. I installed ngsolve via pip3 install ngsolve, which works fine when testing in an interactive shell (i.e., import ngsolve has no errors).

However, when I try to use ngsolve in my own package, I get the error - netgen.libngpy._meshing.NgException: SparseMatrix::InverseMatrix: UmfpackInverse not available.

Can anyone help with this? I tried it a macOS and this error did not arise… I am wondering if it is a WSL specific error.

Thank you,