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

More
4 years 5 months ago - 4 years 5 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: 4 years 5 months ago by mischl.
More
4 years 5 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
4 years 5 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
4 years 5 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
4 years 5 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.106 seconds