Matej
05/13/2021, 7:31 AMModuleNotFoundError: No module named 'aircraftlib'
[2021-05-13 09:27:29+0200] ERROR - prefect.etl | Unexpected error occured in FlowRunner: ModuleNotFoundError("No module named 'aircraftlib'")
aircraftlib is a module from the tutorial imported by the flow.
it works when I run it all locally, it does not work if i send it to a remote dask scheduler.
I could place it all in a single file "flow.py" but is there an elegant way to do this?
thanks.Kevin Kho
Matej
05/13/2021, 4:18 PMimport aircraftlib as aclib
If i try to run this flow on a dask executor, it fails because aircraftlib is not installed.Matej
05/13/2021, 4:38 PMKevin Kho
Matej
05/13/2021, 4:59 PMKevin Kho
EXTRA_PIP_PACKAGES
env variable we tried earlier.Kevin Kho
aircraftlib
to both the scheduler and workersKevin Kho
Kevin Kho
Kevin Kho
Matej
05/13/2021, 5:08 PMKevin Kho
aircaftlib
into the Python file?Matej
05/13/2021, 5:09 PMKevin Kho
Matej
05/13/2021, 5:10 PMKevin Kho
Matej
05/13/2021, 5:16 PMKevin Kho
Callable
and some callables take in images as argument to spin up the cluster with that imageKevin Kho
from prefect.engine.executors import DaskExecutor
import coiled
coiled_executor = DaskExecutor(cluster_class=coiled.Cluster,
cluster_kwargs=dict(name="prefect-demo",
configuration="my-acct/demo-cluster-config"))
flow_state = flow.run(executor=coiled_executor)