You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@airflow.apache.org by Cristian Mendes Firmino <cm...@gmail.com> on 2022/04/20 19:46:59 UTC

Error CLI Test task

Hello Airflow users,

I'm facing with an annoying error in Airflow CLI, {dagbag.py:239} ERROR -
Failed to import:
/usr/local/lib/python3.7/dist-packages/airflow/example_dags/example_subdag_operator.py

This error happens when I try test task.
airflow test  BUS-BUST tratamento_le_vendas 2022-01-01

I'm running airflow on kubernetes server version 1.18 and client server
1.20.
My airflow is version 1.10.10.

The same error appear when I type airflow list_dags, my dags show normally,
but this error were showed.

Anyone knows what happened?

Best regards


-- 
-----------------------------------------------------------------------------------------------------------------------------------------
Atenciosamente,

Cristian Mendes Firmino

Re: Error CLI Test task

Posted by Jarek Potiuk <ja...@potiuk.com>.
Upgrade.

On Wed, Apr 20, 2022 at 9:47 PM Cristian Mendes Firmino
<cm...@gmail.com> wrote:
>
> Hello Airflow users,
>
> I'm facing with an annoying error in Airflow CLI, {dagbag.py:239} ERROR - Failed to import: /usr/local/lib/python3.7/dist-packages/airflow/example_dags/example_subdag_operator.py
>
> This error happens when I try test task.
> airflow test  BUS-BUST tratamento_le_vendas 2022-01-01
>
> I'm running airflow on kubernetes server version 1.18 and client server 1.20.
> My airflow is version 1.10.10.
>
> The same error appear when I type airflow list_dags, my dags show normally, but this error were showed.
>
> Anyone knows what happened?
>
> Best regards
>
>
> --
> -----------------------------------------------------------------------------------------------------------------------------------------
> Atenciosamente,
>
> Cristian Mendes Firmino