MacOS: Installation: "Frameworks" path missing at NGSolve-6.2.1804.dmg?

Hi everybody,
I tried to install Netgen on my MacOS by downloading NGSolve-6.2.1804.dmg. I dragged and dropped this file to my Applications folder and then added the following commands to my .bash_profile:

Netgen path variables
export PYTHONPATH=$PYTHONPATH:/Applications/ b/python3.6/site-packages:.
export NETGENDIR=/Applications/

However when trying to start “netgen” in the command line, I get the following error message:

dyld: Library not loaded: @executable_path/…/Frameworks/Python.framework/Versions/3.6/Python
Referenced from: /Applications/
Reason: image not found
Abort trap: 6

Then I noticed that there is no folder “Frameworks”:

$ cd NETGENDIR/.. pwd
$ ls
Info.plist MacOS Resources

Am I doing something completely wrong or is there a problem with the “NGSolve-6.2.1804.dmg” installation file?

Thanks in advance and best regards


it does not find Python. Are you sure you have Python 3.6 installed ?

Do you have the file

Since now all frameworks we use are standard, we don’t have any framework inside the Netgen app.


Hi Joachim,
Thank you for your quick reply!

I have Python 3.6 installed, but through Anaconda which does not install Python with a framework build: Redirecting to Google Groups

Is there any workaround to also let netgen work with the python version from anaconda?


Hi Joachim,
I got a step further. I linked the anaconda library libpython3.6m.dylib against the framework library requested:

sudo ln -s /anaconda3/lib/libpython3.6m.dylib ./Python

Now I can successfully start “netgen”. However, when I try to import netgen or ngsolve to python3, it always crashes:

Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

from ngsolve import *
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

Do you might have another advice concerning this error?

Thanks and best regards,


PS: sudo ln -s /anaconda3/lib/libpython3.6m.dylib ./Python

was executed in


So effectively the command was:

sudo ln -s /anaconda3/lib/libpython3.6m.dylib /Library/Frameworks/Python.framework/Versions/3.6/Python