LIVY-1076: Python 3.12 to 3.14 compatibility fixes - #550
Merged
Conversation
Contributor
Author
Contributor
|
Thanks for the fix! This will be super helpful for Spark 4 support. Tested and verified across the following Python versions: 3.12.14, 3.13.15, 3.14.7 |
roczei
approved these changes
Aug 27, 2026
Contributor
|
Thank you for submitting a fix for LIVY-1076 @nileshrathi345 ! It is another important step towards Spark 4 support. Also thanks @roczei for the review and testing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR resolves LIVY-1076 by fixing Python 3.12+ compatibility issues in
livy-python-api.Changes:
ConfigParser.readfp()withread_file()(removed in Python 3.12).notifyAll()withnotify_all().abc.abstractpropertywith@property+@abstractmethodon all abstract properties (required for Python 3.12+).These changes address the deprecation warnings reported in the Jira ticket and ensure the Python client library runs cleanly through Python 3.14, aligning with Spark 4.1’s supported Python range.
Jira: https://issues.apache.org/jira/browse/LIVY-1076
How was this patch tested?
python -m pytestpython -m pytest -W error::DeprecationWarningWas this patch authored or co-authored using generative AI tooling?
Yes. Cursor AI was used to run the local test verification.