madhav
05/06/2022, 7:11 PMFailed to load and execute flow run: ModuleNotFoundError("No module named '/root/'")
Our setup:
• a GitHub agent packages and deploys a docker container to ECR
• ECS pulls the ECR image and deploys a fargate instance
• (For our proof of concept) When the machine runs, we register a flow that lives in the image/fargate instance
• After that we run prefect local agent start
(both flow registration and starting the agent are run from a script that our ECS task definition runs on boot)
• We do a “quick run” and get the module not found error.
Other things to note:
• all of our flows and supporting modules are on this container.
• I’ve read some of the existing discussion surrounding this error and was not sure if the solution applied to our situation - given that we are running everything on the same Fargate instanceKevin Kho
madhav
05/06/2022, 7:13 PMKevin Kho
madhav
05/06/2022, 7:14 PMKevin Kho
madhav
05/06/2022, 7:17 PMKevin Kho
madhav
05/06/2022, 7:18 PMMalthe Karbo
05/07/2022, 10:03 AMmypackage.somepath.flow
which is valid, since the agent had everything installed in .venv).