- Thank you received: 0
Ubuntu-Update, NGSolve doesn't find files contained in the folder
4 years 5 months ago - 4 years 5 months ago #2740
by mischl
Dear all,
I am executing
and get
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
I am executing
Code:
netgen pushing.py
and get
Code:
ModuleNotFoundError: No module named 'functions_1E_w'
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.
4 years 5 months ago #2741
by matthiash
Replied by matthiash on topic Ubuntu-Update, NGSolve doesn't find files contained in the folder
Is 'functions_1E_w' one of your python modules?
Maybe you need to add '.' to your PYTHONPATH with:
> export PYTHONPATH=$PYTHONPATH:.
Best,
Matthias
Maybe you need to add '.' to your PYTHONPATH with:
> export PYTHONPATH=$PYTHONPATH:.
Best,
Matthias
4 years 5 months ago #2743
by mischl
Replied by mischl on topic Ubuntu-Update, NGSolve doesn't find files contained in the folder
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
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
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
4 years 5 months ago #2744
by christopher
Replied by christopher on topic Ubuntu-Update, NGSolve doesn't find files contained in the folder
Did you do
export PYTHONPATH=$PYTHONPATH:.
in the shell that you started netgen?
else you have to add that line in your ~/.bashrc
export PYTHONPATH=$PYTHONPATH:.
in the shell that you started netgen?
else you have to add that line in your ~/.bashrc
Time to create page: 0.105 seconds