Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Import error using latest Airflow Kubernetes provider package #288

Open
1 task
Orpheuz opened this issue Nov 18, 2024 · 2 comments
Open
1 task

[Bug] Import error using latest Airflow Kubernetes provider package #288

Orpheuz opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working triage-needed

Comments

@Orpheuz
Copy link

Orpheuz commented Nov 18, 2024

DAG Factory version

0.20.0

airflow version

2.8.1

Python version

3.11

Deployment

Docker-Compose

What happened?

The newly released version of apache-airflow-providers-cncf-kubernetes includes the deprecation of airflow.providers.cncf.kubernetes.operators.kubernetes_pod which ultimately throws an exception in dagbuilder.py imports:

Relevant log output

Broken DAG: [/usr/local/airflow/dags/dag_generator.py] Traceback (most recent call last):
  File "/usr/local/airflow/.local/lib/python3.11/site-packages/dagfactory/dagbuilder.py", line 66, in <module>
    from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import KubernetesPodOperator
ModuleNotFoundError: No module named 'airflow.providers.cncf.kubernetes.operators.kubernetes_pod'

How to reproduce

Run dag-factory (0.20.0) with the latest kubernetes Airflow provider

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@Orpheuz Orpheuz added bug Something isn't working triage-needed labels Nov 18, 2024
@pankajastro
Copy link
Contributor

Could you please set apache-airflow-providers-cncf-kubernetes<10.0.0 as a dependency in your project? kubernetes_pod has been removed in apache-airflow-providers-cncf-kubernetes version 10.0.0 see changelog https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/stable/changelog.html#id1

@Orpheuz
Copy link
Author

Orpheuz commented Nov 18, 2024

Yes, I added that as a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage-needed
Projects
None yet
Development

No branches or pull requests

3 participants