https://prefect.io logo
Title
m

Michał

02/21/2022, 6:56 AM
Hey, how register flow which have multiple files. First main.py which has all flow regarding code, and second ultity which has some ultity functions. When i do flow run I have successfull run, but after registering flow and running from server I get module not found "ultity"
a

Anna Geller

02/21/2022, 9:54 AM
This thread provides more info: https://discourse.prefect.io/t/when-i-run-my-flow-i-see-an-error-failed-to-load-and-exe[…]derror-no-module-named-users-username-what-is-happening/33 You could start your agent from a specific project directory to help Prefect find your extra modules:
prefect agent local start -p /Users/annageller/Desktop/prefect
Or you can install the package containing your utility functions within your agent's execution environment.
:upvote: 1