Daniel Nilsen

    Daniel Nilsen

    7 months ago
    HI! I am getting an error*ūüėó¬†
    ModuleNotFoundError("No module named 'parameters'")
    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
    Anna Geller

    Anna Geller

    7 months ago
    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.