Hello! I’m using prefect deployments to push my mo...
# ask-community
a
Hello! I’m using prefect deployments to push my modules code to S3 and then pulling it back down into the container but I keep running into a
ModuleNotFoundError
for anything that is defined outside of the flow file. How do I pull in all my other code into the dependency tree?
1
e.g. If my flow is defined in
src/ghflow/moduleA/flow.py
and
flow.py
imports some functionality from
src/ghflow/moduleB/util.py
I get the following error
Copy code
No module named `ghflow`
just needed to not deploy from the top level directory above src. Once in
src
, it all works fine
🙌 1