Hi ! I'm trying to register a flow from a flask AP...
# ask-community
b
Hi ! I'm trying to register a flow from a flask API. This flow register successfully, but i always get an error in the prefect logs (c.f. picture). Do you have any idea ? Tell me if you need more informations.
This is the api structure
I don't need this package in my flow (all the flow is in one file)
k
Hey @Benjamin Rousselière, are you specifying any storage?
Do you have anything in the init file also?
Prefect is on holiday so responses might be a bit slow today
b
Hello ! Thanks for you response. I find a solution (not the best one i think 😅) I just removed all imports to other files and put all file functions and classes in the tasks functions. The problem was that relative imports was transformed to imports from my package, but the flow doesn't know my package.
k
Ah yeah Prefect only keeps track of the flow file, but you can specify the location where to run your Flow from using the
LocalRun(working_dir=…)
b
Yes but i use Docker in Docker.. So i think it's complicated ^^
k
Ah ok. Looks like you got a working solution now though 🙂
b
Yes 😁 Thanks you for your time !