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.

mac install problems

More
3 years 10 months ago - 3 years 10 months ago #2774 by JSR
mac install problems was created by JSR
I recently switched computers to a mac running OS 10.15.4. I have python 3.8 installed and ran the dmg installer. I can open the netgen gui and load meshes, but when I try to solve a PDE my computer can't find the ngsolve module. For example, here's the output when I try to run the poisson.py example

NETGEN-6.2-dev
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
Including OpenCascade geometry kernel
optfile ./ng.opt does not exist - using default values
togl-version : 2
OCC module loaded
loading ngsolve library
NGSolve-6.2.2004
Using Lapack
Including sparse direct solver UMFPACK
Running parallel using 4 thread(s)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'ngsolve'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'ngsolve'
(should) load python file 'poisson.py'
Traceback (most recent call last):
File "<string>", line 1, in <module>
Traceback (most recent call last):
File "<string>", line 4, in <module>
ModuleNotFoundError: No module named 'netgen'
ModuleNotFoundError: No module named 'ngsolve'
Finished executing poisson.py

Any ideas as to what's going on?
Last edit: 3 years 10 months ago by JSR.
More
3 years 10 months ago - 3 years 10 months ago #2777 by matthiash
Replied by matthiash on topic mac install problems
Hi,

I guess you still need to set the environment variables correctly. This is described in the "Getting started with Netgen" section of the documentation:
ngsolve.org/docu/latest/install/gettingstarted.html#mac-os-x

EDIT: Opening Netgen from the Launchpad (and not from the command line) should work without setting environment variables as described above. This is working on my Mac (10.15.5 Beta, 6.2.2004 dmg, Python 3.8.2)
Did you have NGSolve installed before (maybe a self-compiled version)? Check if there are environment variables (like DYLD_LIBRARY_PATH etc.) pointing to another NGSolve installation

Best,
Matthias
Last edit: 3 years 10 months ago by matthiash.
More
3 years 10 months ago #2778 by christopher
Replied by christopher on topic mac install problems
Have you set your PYTHONPATH correctly? See here:
ngsolve.org/docu/latest/install/gettingstarted.html#mac-os-x
More
3 years 10 months ago #2779 by JSR
Replied by JSR on topic mac install problems
You're right. I thought I had my environment variables set correctly, but I hadn't noticed the getting started page is written for python 3.7. I changed the 3.7 to 3.8 and now it works. That's what I get for copy-pasting without reading, I suppose.

Thanks for the help!
More
3 years 10 months ago #2781 by matthiash
Replied by matthiash on topic mac install problems
Good point, I will update the documentation.

Best,
Matthias
Time to create page: 0.115 seconds