Hello, I’m designing a metaflow pipeline for sent...
# ask-metaflow
b
Hello, I’m designing a metaflow pipeline for sentiment analysis and during the pipeline initialization I encountered a problem. Suppose I have a file named
main_pipe.py
where my main pipeline exists. I have other files next to this file like
logger.py
and
utils.py
. When I want to import something (like a function) from these files. I do it like this.
Copy code
from .utils import connect_to_db
from .logger import MAIN_LOGGER
Now when I run
Copy code
python -m path.to.main_pipe run
I get python import error which indicates there is no parent module. Is there anyway to use other functions in other files in metaflow pipeline definition or the only solution is to include all the functionality in the
FlowSpec
class?
1