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

1 month 2 weeks ago - 1 month 2 weeks ago #2740 by mischl
Dear all,
I am executing
netgen pushing.py

and get
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

Please Log in or Create an account to join the conversation.

1 month 2 weeks 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

Please Log in or Create an account to join the conversation.

1 month 2 weeks 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

Please Log in or Create an account to join the conversation.

1 month 2 weeks 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

Please Log in or Create an account to join the conversation.

1 month 2 weeks ago #2745 by mischl
Hey christopher,
I didn't before, thanks for the note!
I did now, it works!

Vielen lieben Dank

Please Log in or Create an account to join the conversation.

© 2019 Netgen/NGSolve