ModuleNotFoundError: No module named 'termios' when trying to test Airflow DAG task
ModuleNotFoundError: No module named 'termios' when trying to test Airflow DAG task
我创建了一个 DAG 来尝试 Airflow 中的 SQLite 连接。
当我运行命令时:
airflow tasks test user_processing creating_table 2022-01-01
测试我的任务
我收到错误:
File "C:\Program Files\Python310\lib\tty.py", line 5, in <module>
from termios import *
ModuleNotFoundError: 没有名为 'termios'
的模块
我在很多地方都读到 Windows 不提供 termios,但真的仅此而已吗?我不能尝试其他方法来完成这项工作吗?
好的伙计们,我的错。我试图通过简单的 shell 使用它,我需要进入 Airflow CLI 才能使用此命令。
该命令是:
docker exec -it <dag_id> /bin/bash
我创建了一个 DAG 来尝试 Airflow 中的 SQLite 连接。
当我运行命令时:
airflow tasks test user_processing creating_table 2022-01-01
测试我的任务
我收到错误:
File "C:\Program Files\Python310\lib\tty.py", line 5, in <module>
from termios import *
ModuleNotFoundError: 没有名为 'termios'
的模块我在很多地方都读到 Windows 不提供 termios,但真的仅此而已吗?我不能尝试其他方法来完成这项工作吗?
好的伙计们,我的错。我试图通过简单的 shell 使用它,我需要进入 Airflow CLI 才能使用此命令。
该命令是:
docker exec -it <dag_id> /bin/bash