Thread
#prefect-community
    u

    uttam K

    1 year ago
    I have written mysql connection function in different file and imported in my flow it works well when i use flow.run() But when I run using prefect server UI it says module not found . I have attached code .Please help
    ale

    ale

    1 year ago
    Hi @uttam K, make sure your code is available in the PYTHONPATH when you run the flow using prefect server
    u

    uttam K

    1 year ago
    I have just started Prefect and my code is inside Prefect Examples . Thanks for your quick reply I will check it
    Prathamesh

    Prathamesh

    1 year ago
    Navigate to your code from cli and then call your flow register script: On windows:
    >D:/
    >cd prefect_examples/
    >python flow_register.py
    Michael Adkins

    Michael Adkins

    1 year ago
    Hi! Can you take a look at https://prefect-community.slack.com/archives/CL09KU1K7/p1603476596033800 and let us know if that solves your problems?