我正在尝试执行 TFX-Airflow 教程(https://www.tensorflow.org/tfx/tutorials/tfx/airflow_workshop)。当我尝试使用airflow webserver -p 8008
它连接到服务器时,出现以下错误
Traceback (most recent call last):
File "/home/tester/.local/lib/python3.6/site-packages/airflow/models/dagbag.py", line 243, in process_file
m = imp.load_source(mod_name, filepath)
File "/usr/lib/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 684, in _load
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/tester/airflow/dags/taxi_pipeline_solution.py", line 26, in <module>
from tfx.components import CsvExampleGen
File "/home/tester/Airflow/tfx/tfx/components/__init__.py", line 17, in <module>
from tfx.components.bulk_inferrer.component import BulkInferrer
File "/home/tester/Airflow/tfx/tfx/components/bulk_inferrer/component.py", line 19, in <module>
from tfx.components.bulk_inferrer import executor
File "/home/tester/Airflow/tfx/tfx/components/bulk_inferrer/executor.py", line 26, in <module>
from tfx.dsl.components.base import base_executor
File "/home/tester/Airflow/tfx/tfx/dsl/components/base/base_executor.py", line 33, in <module>
from tfx.proto.orchestration import execution_result_pb2
ImportError: cannot import name 'execution_result_pb2'
我的系统在 Ubuntu 20.04 上运行,并且我有一个虚拟环境,其中安装了链接教程中列出的所有依赖项。我使用了 8008 端口,因为 8080 端口出现错误(连接正在使用中)。
我读到这可能是因为模块缺少/循环依赖导入,但我不确定哪些包负责。我在我的系统上找不到execution_result_pb2.py
文件(假设它是一个文件)。有谁知道如何解决这个问题?