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