I have a .py pipeline using apache beam that import another module (.py), that is my custom module. I have a strucutre like this:
├── mymain.py
└── myothermodule.py
I import myothermodule.py in mymain.py like this:
import myothermodule
When I run locally on DirectRuner
, I have no problem.
But when I run it on dataflow with DataflowRunner
, I have an error that tells:
ImportError: No module named myothermodule
So I want to know what should I do if I whant this module to be found when running the job on dataflow?
ImportError: No module named othermodules
– Tavie