Additional solutions from this StackOverflow question answered by Chris White:
If you are using Local Storage + a Local Agent, you need to make sure the module_that_was_not_found
directory is on your local importable Python PATH. There are a few ways of doing this:
- run your Prefect Agent in the
tutorial
directory; your Local Agent’s path will then be inherited by the flows it submits - manually add the
module_that_was_not_found/
directory to your global python path (I don’t recommend this) - add the
module_that_was_not_found/
directory to your Agent’s path with the-p
CLI flag; for example:prefect agent start -p ~/Developer/prefect/examples/module_that_was_not_found
(this is the approach I recommend)