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.

Ubuntu-Update, NGSolve doesn't find files contained in the folder

More
3 years 10 months ago - 3 years 10 months ago #2740 by mischl
Dear all,
I am executing
Code:
netgen pushing.py

and get
Code:
ModuleNotFoundError: No module named 'functions_1E_w'
and other stuff is also not found
However, the exact folder was running in the past and also includes all the files

I just updated Ubuntu to 20.04, I assume that's somehow the problem?
All the best
Last edit: 3 years 10 months ago by mischl.
More
3 years 10 months ago #2741 by matthiash
Is 'functions_1E_w' one of your python modules?

Maybe you need to add '.' to your PYTHONPATH with:
> export PYTHONPATH=$PYTHONPATH:.

Best,
Matthias
More
3 years 10 months ago #2743 by mischl
it is a python file which creates my domain

So I exectued
export PYTHONPATH=$PYTHONPATH:.
and reinstalled ngsolve

it doesn't change. It seems like it can't find the *.py files lying in the same folder

Sorry for asking those stupid questions, I am more the "copy&paste sudo apt-get install"-guy
More
3 years 10 months ago #2744 by christopher
Did you do
export PYTHONPATH=$PYTHONPATH:.
in the shell that you started netgen?
else you have to add that line in your ~/.bashrc
More
3 years 10 months ago #2745 by mischl
Hey christopher,
I didn't before, thanks for the note!
I did now, it works!

Vielen lieben Dank
Time to create page: 0.154 seconds