Circular dependency issue when trying to locally test DAG #34558
Labels
area:core
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
pending-response
stale
Stale PRs per the .github/workflows/stale.yml policy file
Apache Airflow version
2.7.1
What happened
Attempting to test DAG sanity by running dag.test():
if name == 'main':
test_http_sensor().test()
python my_sensor_dag.py
I receive the following error:
ImportError: cannot import name 'Dataset' from partially initialized module 'airflow'
What you think should happen instead
According to what I can figure out in the documentation, it should be possible to run DAG.test() outside the airflow scheduler/executor in order to validate a DAG.
How to reproduce
Operating System
CentOS 8 Stream
Versions of Apache Airflow Providers
apache-airflow-providers-common-sql==1.7.1
apache-airflow-providers-ftp==3.5.1
apache-airflow-providers-http==4.5.1
apache-airflow-providers-imap==3.3.1
apache-airflow-providers-mysql==5.3.1
apache-airflow-providers-sqlite==3.4.3
Deployment
Virtualenv installation
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: