I have been trying to install Netgen on my work computer - the OS is CentOS Linux 7.
The most recent version uses python 3.7 which is not available here - so I downloaded version 6.2.1807.
It does seem to install correctly and I can generate meshes, but I cannot do anything else. I think it might be a problem related to submodules (it seems like it doesn’t get the right ones?)
Another thing I noticed is that when I launch it, it doesn’t load the OCC module, or the ngsolve library (which happens when I run it on my windows laprop) - the process stops before this.
I assume you compiled Netgen from source? If so, the Python version does not matter, this is only relevant for prebuilt binaries for Windows and MacOS.
I am trying to build ngsolve on CentOS 7 and keep running into problems. Does anyone have a working build for CentOS 7 they would be able to share (ngsolve-install) ? Better yet, does anyone have a working installation script for CentOS 7 similar to the standard one for Ubuntu on the ngsolve website Build on Linux — NGS-Py 6.2.2302 documentation ?
I have Python 3.6.8 installed and actually managed to get the build to work in the mean time. Most of the problems I had were related to looking up the appropriate package name and version for all the required libraries, so constructing the equivalent of the Ubuntu command below for CentOS. A bit non-trivial since many of the package names are different between Ubuntu and CentOS:
How has the work on pip-packages been going? Is it possible to try it? I am still having problems on CentOS/Redhat and would like to see if pip might help
thanks, this worked well on one of my Kubuntu 20.04 machines. Didn’t work on another one with the same OS and same python3 version Python 3.8.10. The error messages are below in case it might be useful. Any idea why it worked on one but not the other machine?
In a similar way, I have been having inconsistent results running ngsolve/netgen that I built under either Kubuntu or CentOS. In general, it works on the machine I built it on, but when I copy ngsolve-install to other machines it works on some but doesn’t on others. When it doesn’t work, I get “Illegal instruction (core dumped)”. When I run it under gdb, the crash is reported in regexp (I can provide more specifics if you like). Any ideas what may be causing this and why it varies from machine to machine?
Thanks very much,
Valery
pip3 install -i https://test.pypi.org/simpl
e/ ngsolve==6.2.2105.dev126
Looking in indexes: Simple index
Collecting ngsolve==6.2.2105.dev126
Downloading https://test-files.pythonhosted.org/packages/44/19/e62144fdf71264dcf4b6adc
441a322efd1db4e6e7bce4f52fad407f7d759/ngsolve-6.2.2105.dev126-cp38-cp38-manylinux_2_17_x
86_64.manylinux2014_x86_64.whl (28.3 MB)
|████████████████████████████████| 28.3 MB 1.0 MB/s
Collecting netgen-mesher==6.2.2105.dev45
Downloading https://test-files.pythonhosted.org/packages/a3/b5/34821483e19639eb3b21e49
290499ba8610df8803517ef41ccb57dea3a0c/netgen_mesher-6.2.2105.dev45-cp38-cp38-manylinux_2
_17_x86_64.manylinux2014_x86_64.whl (37.9 MB)
|████████████████████████████████| 37.9 MB 350 kB/s
ERROR: Could not find a version that satisfies the requirement mkl==2021.* (from ngsolve
==6.2.2105.dev126) (from versions: none)
ERROR: No matching distribution found for mkl==2021.* (from ngsolve==6.2.2105.dev126)
Hello Susana, Mathias, and Valery,
I am also getting the “Illegal instruction (core dumped)”, in my case when importing netgen or ngsolve from python 3.10.6. Any advice is appreciated.
To put it in context, I updated form Ubuntu 20.04 focal to 22.04 jammy. Before I could run netgen and ngsolve without any trouble. My laptop has some years now (Intel(R) Core™ i5-3210M CPU @ 2.50GHz, RAM 8GB; in case it is relevant, avx2 does not appear on the flags in /proc/cpuinfo). I copy below the information of cpu and memory, plus the error message. Thank you.
~$ python3
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux