Bug 2350333

Summary: 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')
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-ssh-pythonAssignee: fedepell <fede>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fede, ksurma, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-21 03:32:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407    

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!