Jason
04/20/2022, 2:55 PMprojects
from both Python and Jupyter Notebook:
from projects.example.flows.hello_world
from projects import Config
But when I run the same import from Prefect, I get the following error:
pipenv run prefect run -m projects.example.flows.hello_world
No module named 'projects'
Anna Geller
04/20/2022, 2:58 PMKevin Kho
04/20/2022, 2:58 PM-m
Jason
04/20/2022, 3:02 PMModuleNotFoundError: No module named 'projects'
. It's just weird because usually I don't need to bother with a setup.py. As long as the directory is modularized with an init.py I can usually import.Kevin Kho
04/20/2022, 3:03 PMprefect run
might be different. You do need the setup.py
to get that working. You know how to do that?Jason
04/20/2022, 3:03 PM