You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Nilesh Rathi (Jira)" <ji...@apache.org> on 2026/08/27 11:10:00 UTC
[jira] [Assigned] (LIVY-1076) Python 3.12 compatibility fixes
[ https://issues.apache.org/jira/browse/LIVY-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nilesh Rathi reassigned LIVY-1076:
----------------------------------
Assignee: Nilesh Rathi
> Python 3.12 compatibility fixes
> -------------------------------
>
> Key: LIVY-1076
> URL: https://issues.apache.org/jira/browse/LIVY-1076
> Project: Livy
> Issue Type: Task
> Affects Versions: 1.0.0
> Reporter: Gyorgy Gal
> Assignee: Nilesh Rathi
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The test output of `livy-python-api` contains deprecation warnings that may need to be resolved to make Livy compatible with Python 3.12:
> ```
> ============================= test session starts ==============================
> platform linux -- Python 3.11.16, pytest-9.1.1, pluggy-1.6.0 -- /root/pyenv/versions/3.11.16/bin/python
> cachedir: target/.pytest_cache
> rootdir: /__w/livy/livy/python-api
> configfile: setup.cfg
> plugins: flaky-3.8.1
> collecting ... collected 12 items
> src/test/python/livy-tests/client_test.py::test_create_new_session_without_default_config PASSED [ 8%]
> src/test/python/livy-tests/client_test.py::test_create_new_session_with_default_config PASSED [ 16%]
> src/test/python/livy-tests/client_test.py::test_connect_to_existing_session PASSED [ 25%]
> src/test/python/livy-tests/client_test.py::test_submit_job_verify_running_state PASSED [ 33%]
> src/test/python/livy-tests/client_test.py::test_submit_job_verify_queued_state PASSED [ 41%]
> src/test/python/livy-tests/client_test.py::test_submit_job_verify_succeeded_state PASSED [ 50%]
> src/test/python/livy-tests/client_test.py::test_submit_job_verify_failed_state PASSED [ 58%]
> src/test/python/livy-tests/client_test.py::test_add_file PASSED [ 66%]
> src/test/python/livy-tests/client_test.py::test_upload_file PASSED [ 75%]
> src/test/python/livy-tests/client_test.py::test_add_pyfile PASSED [ 83%]
> src/test/python/livy-tests/client_test.py::test_upload_pyfile PASSED [ 91%]
> src/test/python/livy-tests/client_test.py::test_add_jar PASSED [100%]
> =============================== warnings summary ===============================
> src/test/python/livy-tests/client_test.py::test_create_new_session_with_default_config
> src/test/python/livy-tests/client_test.py::test_create_new_session_with_default_config
> /__w/livy/livy/python-api/src/main/python/livy/client.py:382: DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead.
> self._config.readfp(StringIO(data))
> src/test/python/livy-tests/client_test.py::test_submit_job_verify_running_state
> src/test/python/livy-tests/client_test.py::test_submit_job_verify_queued_state
> /__w/livy/livy/python-api/src/main/python/livy/job_handle.py:136: DeprecationWarning: notifyAll() is deprecated, use notify_all() instead
> self._job_handle_condition.notifyAll()
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ======================== 12 passed, 4 warnings in 0.72s ========================
> ```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)