Maria
07/08/2021, 12:05 AMFailed to load and execute Flow's environment: FlowStorageError("An error occurred while unpickling the flow: ModuleNotFoundError("No module named 'transform'")")
If I comment out transform, it will complain about next module. Project setup example is in the threadMaria
07/08/2021, 12:06 AMprefect-project
- extract.py
- load.py
- transform.py
- flow_run.py
In my flow_run.py I import modules (they contain my tasks), e.g.
import extract as e
import load as l
import transform as t
and use them in the FlowMaria
07/08/2021, 12:10 AMdef get_storage_config():
return S3(bucket=S3_BUCKET, stored_as_script=True, key="etl/manual/flow_run.py")
but having the same issue (without the unpickling part): Failed to load and execute Flow's environment: ModuleNotFoundError("No module named 'transform'")")
How can I make it work if I want to keep my code in several modules?Kevin Kho
Maria
07/08/2021, 12:36 AMKevin Kho
pip install -e .
. Are you familiar with this? I have examples that can help. Then you’d need to store that image somewhere ECS can pull from (like ECR)Maria
07/08/2021, 12:47 AMMaria
07/08/2021, 12:48 AMTony Yun
08/31/2021, 2:26 PMKevin Kho
Tony Yun
08/31/2021, 2:58 PMrun_config=DockerRun(image="test:latest")
Kevin Kho
Kevin Kho
Tony Yun
08/31/2021, 3:00 PM