Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 5, 2023

The import of urlparse in cloud build was importing "future" urlparse which is a Python 2 remnant (future library has been used in order to make a bridge between Python 2 and Python 3 and provided Python 3 - compatible implementation of some stdlib calls that could be used in both Puthon 3 and Python 2.

Apparently one of our of our dependncies stopped pulling future in Python 3.11 so it started to fail our main with Python 3.11 because the future library is missing there.

This PR switches the import to regular urlparse.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers area:system-tests provider:google Google (including GCP) related issues labels Aug 5, 2023
@potiuk potiuk added the full tests needed We need to run full set of tests for this PR to merge label Aug 5, 2023
@potiuk potiuk closed this Aug 5, 2023
@potiuk potiuk reopened this Aug 5, 2023
@potiuk
Copy link
Member Author

potiuk commented Aug 5, 2023

Reopened to rebuild for Python 3.11 as well.

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good +1

The import of urlparse in cloud build was importing "future" urlparse
which is a Python 2 remnant (future library has been used in order
to make a bridge between Python 2 and Python 3 and provided
Python 3 - compatible implementation of some stdlib calls that
could be used in both Puthon 3 and Python 2.

Apparently one of our  of our dependncies stopped pulling future in
Python 3.11 so it started to fail our main with Python 3.11 because the
future library is missing there.

This PR switches the import to regular urlparse.
@potiuk potiuk force-pushed the remove-future-import-from-cloud-build-example branch from 54a4da0 to 6ff2f13 Compare August 5, 2023 08:37
@potiuk
Copy link
Member Author

potiuk commented Aug 5, 2023

Also urlsplit :)

Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@potiuk potiuk merged commit be445d2 into apache:main Aug 5, 2023
@potiuk potiuk deleted the remove-future-import-from-cloud-build-example branch August 5, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers area:system-tests full tests needed We need to run full set of tests for this PR to merge provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants