Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Problem with jupyter notebook on mac

More
4 years 8 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
4 years 8 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
4 years 8 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
4 years 8 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
4 years 8 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.123 seconds