Problem with jupyter notebook on mac

More
5 years 2 months ago #1819 by Bittermandeln
I am trying to install Netgen/NGSolve on my mac os 10.14, and read the tutorials in jupyter notebook. However, when I use the anaconda jupyter it cant find the modules (e.g. netgen). I have tried copying the netgen and ngsolve folders from the site-packages to the pkgs folder in anaconda. When I do that, the kernel dies as soon as I try to import any of the folders.

Do anyone of you have any tips? Have you had similar problems?
More
5 years 2 months ago #1820 by christopher
NGSolve and anaconda do not yet work well together, please use the NGSolve installer and install jupyter with pip as described here: ngsolve.org/docu/latest/i-tutorials/index.html

Best
Christopher
More
5 years 2 months ago #1821 by Bittermandeln
I have now done that, and when I e.g. try to rung poisson.py I get the error
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-76ebde58f411> in <module>
----> 1 import netgen.gui
2 from ngsolve import *
3 from netgen.geom2d import unit_square

ModuleNotFoundError: No module named 'netgen.gui'

How do I make sure that the packages can be used in jupyter?
More
5 years 2 months ago #1824 by christopher
You have to set your pythonpath, see here:

ngsolve.org/docu/latest/install/gettingstarted.html#mac-os-x

Best
Christopher
More
5 years 2 months ago #1825 by Bittermandeln
sI realized that I did not install using SDK 10.9. However, when I call the cmake step, I get a whole bunch of errors at the "scanning dependencies of target ngcore", and eventually the message

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[8]: *** [libsrc/core/CMakeFiles/ngcore.dir/archive.cpp.o] Error 1
make[7]: *** [libsrc/core/CMakeFiles/ngcore.dir/all] Error 2
make[6]: *** [all] Error 2
make[5]: *** [dependencies/src/netgen-stamp/netgen-build] Error 2
make[4]: *** [CMakeFiles/netgen.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dependencies/Stamp/netgen_project/netgen_project-build] Error 2
make[1]: *** [CMakeFiles/netgen_project.dir/all] Error 2
make: *** [all] Error 2

They seem to all come from the error
"'operator delete[]' is unavailable: introduced in macOS 10.12"
Time to create page: 0.112 seconds