Intro
I am running a python script on an cluster. I run everything in virtualenv and in the code I am importing two functions from the same module (written in SC_module.py):
ex. SC_module.py
def funA():
def funB():
In the script script.py I have the following import
from SC_module import funA,funB
when I run the code on the HPC I get import error funB cannot be found. If I type
from SC_module import funA
everything works fine.
If I run python3
from the command line and run
from SC_module import funA,funB
everything works and fun(B) is imported.
Question
The only difference between funA() and funB() is that have been coded in two different days.
NB: If I add an new function to the module it will not be loaded when starting the process but will be imported if I will use the terminal.
Is there something I miss in the loading of the module in the cluster?
Thanks