Skip to content

2.10.3 raises AttributeError: partially initialized module 'airflow' has no attribute 'utils' (most likely due to a circular import) #43971

Answered by potiuk
idexxbernvaug asked this question in Q&A
Discussion options

You must be logged in to vote

Try 2.10.4rc1 -> that should be fixed. There was the unconditional deprecation warning accidentally generated in 2.10.3 and you seem to have custom logger importing stuff from airflow - since that warning is generated during importing, your logger attempts to import some module from airflow while it is partially imported and it creates recursive import error.

You can - possilbbly workaround it also by figuring which custom import on your side triggers it, and turn it into local import - in case it is a "top-level` import in a pytho file - this usually help.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@idexxbernvaug
Comment options

Answer selected by idexxbernvaug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants