Issue with downgrade from 3.0.0 to 2.10.3 #49722
Unanswered
sowmyachitti
asked this question in
Q&A
Replies: 1 comment
-
I have a similar issue too. Version 2.10.5, made a small change to my DAG only on April, 24th and pushed it. Getting the same error: ImportError: cannot import name ‘mysql_drop_foreignkey_if_exits’ from ‘airflow.migration.utils’. Is this because of some updates were made in early April to 2.10 to easy migrate to 3.0? Any ideas how to fix import name ‘mysql_drop_foreignkey_if_exits’ from ‘airflow.migration.utils’? |
Beta Was this translation helpful? Give feedback.
0 replies
No Sign up for free
to join this conversation on GitHub.
Already have an account?
No Sign in to comment
-
Initially used pip install apache-airflow and then later realized our dag is incompatible with 3.0.0 so then used pip install apache-airflow ==2.10.3 and does airflow db downgrade —to-version 2.10.3 -y
The dag code was compatible till 2.10.3 version Now when I try to reinstall the 2.10.3 I get below error
``Unable to import at 0027_2_10_3_fix_dag_schedule_dataset_alias_reference_naming.py
ImportError: cannot import name ‘mysql_drop_foreignkey_if_exits’ from ‘airflow.migration.utils’
``
initial diagnosis : observed that utils.py have that function in 3.0.0 but when I downgrade it still searches for that function which don’t exists in utils.py
Beta Was this translation helpful? Give feedback.
All reactions