https://prefect.io logo
#prefect-community
Title
# prefect-community
f

Florian Guily

05/20/2022, 5:21 PM
Hello, more a python issue but encountered when trying to execute this tuto. I have a project structures that looks like the attached image. This structure is the same as @Anna Geller github repo for the tuto. In her flow codes, she imports functions from a
config.py
file in
flow_utilities
folder like this
from flow_utilities.config import funcA funcB
. When i do so, i get an error. So i tried to reproduced it with the dummy code you have on the image. I get the same error which is
ModuleNotFoundError: No module named 'flow_utilities'
. This really seems stupid to me as it is just importing some func from local file but somehow i can't make it work with this file architecture. What am i doing wrong ?
1
a

Anna Geller

05/20/2022, 5:23 PM
this repo has a setup.py file
if you do:
pip install .
the error should be gone
f

Florian Guily

05/20/2022, 5:25 PM
damn it was so simple... Guess i'll have to ge back to my basics... thanks
a

Anna Geller

05/20/2022, 5:29 PM
no worries, glad it's solved now 👍
4 Views