Bug 2350333 - python-ssh-python fails to build with Python 3.14: SessionTest.test_set_timeout: ssh.exceptions.SSHError: (-1, b'Invalid argument in ssh_options_set')
Summary: python-ssh-python fails to build with Python 3.14: SessionTest.test_set_timeo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ssh-python
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: fedepell
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-03-06 14:43 UTC by Karolina Surma
Modified: 2025-05-21 03:32 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-21 03:32:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-03-06 14:43:59 UTC
python-ssh-python fails to build with Python 3.14.0a5.

_________________________ SessionTest.test_set_timeout _________________________

self = <tests.test_session.SessionTest testMethod=test_set_timeout>

    def test_set_timeout(self):
        session = Session()
>       self.assertEqual(session.options_set(options.TIMEOUT, "1000"), 0)

tests/test_session.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
ssh/session.pyx:327: in ssh.session.Session.options_set
    return handle_error_codes(rc, self._session)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   raise SSHError(errcode, ssh_get_error(session))
E   ssh.exceptions.SSHError: (-1, b'Invalid argument in ssh_options_set')

ssh/utils.pyx:94: SSHError
=========================== short test summary info ============================
FAILED tests/test_session.py::SessionTest::test_set_timeout - ssh.exceptions.SSHError: (-1, b'Invalid argument in ssh_options_set')
==================== 1 failed, 11 passed, 5 rerun in 0.08s =====================

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08723812-python-ssh-python/

For all our attempts to build python-ssh-python with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-ssh-python/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 fedepell 2025-05-20 13:56:29 UTC
As I understand from https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-ssh-python/ now package passes?

Comment 2 Karolina Surma 2025-05-20 14:26:05 UTC
It looks so; I guess the issue resolved itself.

Comment 3 fedepell 2025-05-21 03:32:43 UTC
That's the bugs I like ;-) :P I checked it time ago but was puzzled by failure so seemingly was something coming from new version. Well better like this, closing!


Note You need to log in before you can comment on or make changes to this bug.