NGSolve / ngsolve

Netgen/NGSolve is a high performance multiphysics finite element software. It is widely used to analyze models from solid mechanics, fluid dynamics and electromagnetics. Due to its flexible Python interface new physical equations and solution algorithms can be implemented easily.
https://ngsolve.org/
GNU Lesser General Public License v2.1
436 stars 79 forks source link

Pip install does not install dependencies #65

Closed felipegssantos closed 8 months ago

felipegssantos commented 1 year ago

After performing pip install ngsolve jupyter on a fresh venv based on python 3.11.2, running from ngsolve.webgui import Draw on a jupyter notebook fails with message ModuleNotFoundError: No module named 'numpy'.

If I then install numpy with pip install numpy, the same import fails now with ModuleNotFoundError: No module named 'webgui_jupyter_widgets'.

Finally, I do a pip install webgui-jupyter-widgets and everything works.

It would be nice if pip install ngsolve took care of these dependencies.

ChrLackner commented 8 months ago

Both of these are optional dependencies of ngsolve, and are not needed for the core package. If you want webgui visualization, you need to install these 2 packages though as outlined in the docu.