【发布时间】:2019-01-16 16:56:18
【问题描述】:
我有一个使用 apache 光束的 .py 管道,它导入另一个模块 (.py),这是我的自定义模块。 我有这样的结构:
├── mymain.py
└── myothermodule.py
我像这样在 mymain.py 中导入 myothermodule.py:
import myothermodule
当我在DirectRuner 上本地运行时,我没有问题。
但是当我使用DataflowRunner 在数据流上运行它时,我有一个错误提示:
ImportError: No module named myothermodule
所以我想知道在数据流上运行作业时如果我想找到这个模块该怎么办?
【问题讨论】:
标签: python google-cloud-dataflow apache-beam