https://prefect.io logo
Title
g

Gagan Singh Saluja

12/01/2021, 3:18 PM
Hi , I have four files 1 main file 3 helper files, main imports these files, I am using s3 storage, now When I am registering main file and running , it says modulenotfound error, please help
k

Kevin Kho

12/01/2021, 3:20 PM
Hey @Gagan Singh Saluja, S3Storage (and most storages) only keep the Flow file, and not the dependencies. You either need these helper files accessible on the agent, or package everything together with Docker and then use DockerRun + S3Storage. You can check this for how to package it
g

Gagan Singh Saluja

12/01/2021, 3:23 PM
Can you please help how can i make my helper file accessible to agent
k

Kevin Kho

12/01/2021, 3:23 PM
Are you using local agent?
g

Gagan Singh Saluja

12/01/2021, 3:24 PM
No ecs agent
k

Kevin Kho

12/01/2021, 3:24 PM
Oh then you really have to use a Docker container because ECS is containerized