Skip to content

Conversation

@uranusjr
Copy link
Member

@uranusjr uranusjr commented Sep 8, 2022

This incorrectly accesses the version attribute in airflow.version instead of the airflow.version module itself, breaking compatibility.

I actually rewrote the entire __getattr__ hook; much of the logic seems to be quite redundant.

Fix #26238.

@uranusjr uranusjr force-pushed the lazy-loading-top-level-revise branch 2 times, most recently from 03c132d to 3ee6e12 Compare September 8, 2022 15:59
This incorrectly accesses the version *attribute* in airflow.version
instead of the airflow.version module itself, breaking compatibility.

I actually rewrote the entire __getattr__ hook; much of the logic seems
to be quite redundant.
@uranusjr uranusjr force-pushed the lazy-loading-top-level-revise branch from 3ee6e12 to 411feaf Compare September 8, 2022 16:01
@potiuk potiuk linked an issue Sep 8, 2022 that may be closed by this pull request
2 tasks
@potiuk potiuk added this to the Airflow 2.4.0 milestone Sep 8, 2022
@potiuk
Copy link
Member

potiuk commented Sep 8, 2022

Tested all combinations. Looks good.

@ashb ashb merged commit b7a603c into apache:main Sep 9, 2022
@ashb ashb deleted the lazy-loading-top-level-revise branch September 9, 2022 08:41
ashb pushed a commit that referenced this pull request Sep 9, 2022
This incorrectly accesses the version *attribute* in airflow.version
instead of the airflow.version module itself, breaking compatibility.

I actually rewrote the entire __getattr__ hook; much of the logic seems
to be quite redundant.

(cherry picked from commit b7a603c)
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 2.4.0b1 - google-provider - AttributeError: 'str' object has no attribute 'version' airflow.version type is str, not metadata.version

4 participants