I'm trying to create a template DataFlow in Python from a pipeline with multiple files dependency.
This is the project structure:
root
|
----> project_dir
|
----> __init__.py
----> main.py
----> setup.py
utils
|
----> functions.py
----> __init__.py
In the file main.py there is the import line:
from project_dir.utils.functions import something
And my setup.py file contains (as suggested here ):
package_dir={'.': ''},
packages=setuptools.find_packages()
The template file is generated with no problems, but everytime I try to execute it on DataFlow I get the following error:
ImportError: No module named 'project_dir'
Can someone please help me? Thanks in advance!