I have written mysql connection function in differ...
# prefect-community
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
Hi @uttam K, make sure your code is available in the PYTHONPATH when you run the flow using prefect server
I have just started Prefect and my code is inside Prefect Examples . Thanks for your quick reply I will check it
Navigate to your code from cli and then call your flow register script: On windows:
>cd prefect_examples/
>python flow_register.py
Hi! Can you take a look at https://prefect-community.slack.com/archives/CL09KU1K7/p1603476596033800 and let us know if that solves your problems?