Join Slack
Powered by
I have written mysql connection function in differ...
# ask-community
u
uttam K
11/04/2020, 11:42 AM
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
233.zip
a
ale
11/04/2020, 11:51 AM
Hi
@uttam K
, make sure your code is available in the PYTHONPATH when you run the flow using prefect server
u
uttam K
11/04/2020, 11:53 AM
I have just started Prefect and my code is inside Prefect Examples . Thanks for your quick reply I will check it
p
Prathamesh
11/04/2020, 2:29 PM
Navigate to your code from cli and then call your flow register script: On windows:
>D:/
>cd prefect_examples/
>python flow_register.py
z
Zanie
11/04/2020, 4:23 PM
Hi! Can you take a look at
https://prefect-community.slack.com/archives/CL09KU1K7/p1603476596033800
and let us know if that solves your problems?
5
Views
Open in Slack
Previous
Next