Dev Dasgupta
01/31/2022, 5:13 PMprefect register --project my_project -p bar
)
foo_root_folder
├── README.md
├── bar
│ └── flow.py
├── pyproject.toml
├── requirements.txt
├── setup.cfg
Since the file flow.py
was cluttered with all utils functions required for the flow execution I refactored it into a separate python package and made calls to those functions in flow.py
from bar.utils import get_some_useful_function
The resultant folder looked like the following:
foo_root_folder
├── README.md
├── bar
│ ├── __init__.py
│ ├── utils.py
│ └── flow.py
├── pyproject.toml
├── requirements.txt
├── setup.cfg
When I try to register now I am getting error as ModuleNotFoundError: No module named 'bar'
Can anyone please let me know if anyone faced similar issues before and how they resolved it?
ThanksKevin Kho
Dev Dasgupta
01/31/2022, 5:27 PM