simone
11/13/2020, 2:37 PMFailed to load and execute Flow's environment: ModuleNotFoundError(
I followed the instruction seen in other slacks discussion on the error and restarted the Agent pointing to the path to my package p`refect agent local start --api http://172.19.0.6:4200 -p /home/simone/tmp_code/pysmFISH_auto -p /home/simone/tmp_code/pysmFISH_auto/pysmFISH --show-flow-logs` This seems to solve the module error but the flow doesn’t run. Looking at the logs from the Agent is because ModuleNotFoundError: No module named 'numpy'
, numpy is install in the env. If I restart the agent adding the path to the conda env I am using prefect agent local start --api <http://172.19.0.6:4200> -p /home/simone/tmp_code/pysmFISH_auto -p /home/simone/tmp_code/pysmFISH_auto/pysmFISH -p /home/simone/miniconda3/envs/prefect_dev --show-flow-logs
I get again the same initial error of missing module.
I really cannot understand what is going on. Any help is really appreciated! thanks!
Here is the flow I have been running Flow GIST
------UPDATE---------
It looks like that the agent cannot load the flow from the local directory. The local directory is there and contains the flow. The error persist even if I change the directory where to save the flowsnicholas
inner()
?simone
11/13/2020, 3:22 PMHeartbeat failed to start
. Do you know what was the issue? naming of the function?nicholas
simone
11/13/2020, 3:29 PMfunction_logger
that is a general function that create a logger = prefect.utilities.logging.get_logger()
. If I call this function in inner()
the system breaks but if I put directly logger=prefect.utilities.logging.get_logger()
inside inner()
everything works fine.nicholas