https://prefect.io logo
d

Daniel Nilsen

02/22/2022, 10:44 AM
HI! I am getting an error*:* 
ModuleNotFoundError("No module named 'parameters'")
Copy code
root
  - src
    - flows
      - flow_1
        - flow_1.py
        - parameters.py
I am registering the flow with this
bin/prefect register --project «myProject» --path ./src/flows/flow_1/flow_1.py
When I run the flow locally with 
flow.run()
 it works fine 🤔
This error occurs when I run the flow with prefect server
a

Anna Geller

02/22/2022, 10:50 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:
Copy code
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.
7 Views