python-asyncssh fails to build with Python 3.13.0a2. This report is automated and not very verbose, but we'll try to get back here with details. ====================================================================== ERROR: test_add_keys_failure (tests.test_agent._TestAgent.test_add_keys_failure) Test failure adding keys to the agent ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 52, in agent_wrapper await func(self, agent) File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 303, in test_add_keys_failure await mock_agent.stop() File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop os.remove(self._path) FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent' ====================================================================== ERROR: test_add_remove_smartcard_keys (tests.test_agent._TestAgent.test_add_remove_smartcard_keys) Test adding and removing smart card keys ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 361, in test_add_remove_smartcard_keys await mock_agent.stop() File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop os.remove(self._path) FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent' ====================================================================== ERROR: test_errors (tests.test_agent._TestAgent.test_errors) Test getting error responses from SSH agent ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 497, in test_errors await mock_agent.stop() File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop os.remove(self._path) FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent' ====================================================================== ERROR: test_query_extensions (tests.test_agent._TestAgent.test_query_extensions) Test query of supported extensions ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 427, in test_query_extensions await mock_agent.stop() File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 88, in stop os.remove(self._path) FileNotFoundError: [Errno 2] No such file or directory: 'mock_agent' ====================================================================== ERROR: test_forward_local_path_to_port (tests.test_forward._TestAsyncTCPForwarding.test_forward_local_path_to_port) Test forwarding of a local UNIX domain path to a remote TCP port ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 654, in test_forward_local_path_to_port os.remove('local') FileNotFoundError: [Errno 2] No such file or directory: 'local' ====================================================================== ERROR: test_forward_remote_port_to_path (tests.test_forward._TestAsyncTCPForwarding.test_forward_remote_port_to_path) Test forwarding of a remote port to a local UNIX domain socket ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 801, in test_forward_remote_port_to_path os.remove('local') FileNotFoundError: [Errno 2] No such file or directory: 'local' ====================================================================== ERROR: test_forward_local_path (tests.test_forward._TestAsyncUNIXForwarding.test_forward_local_path) Test forwarding of a local UNIX domain path ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1074, in test_forward_local_path os.remove('local') FileNotFoundError: [Errno 2] No such file or directory: 'local' ====================================================================== ERROR: test_forward_remote_path (tests.test_forward._TestAsyncUNIXForwarding.test_forward_remote_path) Test forwarding of a remote UNIX domain path ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1152, in test_forward_remote_path os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_forward_remote_path_to_port (tests.test_forward._TestAsyncUNIXForwarding.test_forward_remote_path_to_port) Test forwarding of a remote UNIX domain path to a local TCP port ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1170, in test_forward_remote_path_to_port os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_unix_server (tests.test_forward._TestAsyncUNIXForwarding.test_unix_server) Test creating a remote UNIX listener ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1023, in test_unix_server os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_unix_server_non_async (tests.test_forward._TestAsyncUNIXForwarding.test_unix_server_non_async) Test creating a remote UNIX listener using non-async handler ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1056, in test_unix_server_non_async os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_forward_local_path_to_port (tests.test_forward._TestTCPForwarding.test_forward_local_path_to_port) Test forwarding of a local UNIX domain path to a remote TCP port ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 654, in test_forward_local_path_to_port os.remove('local') FileNotFoundError: [Errno 2] No such file or directory: 'local' ====================================================================== ERROR: test_forward_remote_port_to_path (tests.test_forward._TestTCPForwarding.test_forward_remote_port_to_path) Test forwarding of a remote port to a local UNIX domain socket ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 801, in test_forward_remote_port_to_path os.remove('local') FileNotFoundError: [Errno 2] No such file or directory: 'local' ====================================================================== ERROR: test_forward_local_path (tests.test_forward._TestUNIXForwarding.test_forward_local_path) Test forwarding of a local UNIX domain path ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1074, in test_forward_local_path os.remove('local') FileNotFoundError: [Errno 2] No such file or directory: 'local' ====================================================================== ERROR: test_forward_remote_path (tests.test_forward._TestUNIXForwarding.test_forward_remote_path) Test forwarding of a remote UNIX domain path ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1152, in test_forward_remote_path os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_forward_remote_path_to_port (tests.test_forward._TestUNIXForwarding.test_forward_remote_path_to_port) Test forwarding of a remote UNIX domain path to a local TCP port ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1170, in test_forward_remote_path_to_port os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_unix_server (tests.test_forward._TestUNIXForwarding.test_unix_server) Test creating a remote UNIX listener ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1023, in test_unix_server os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== ERROR: test_unix_server_non_async (tests.test_forward._TestUNIXForwarding.test_unix_server_non_async) Test creating a remote UNIX listener using non-async handler ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_forward.py", line 1056, in test_unix_server_non_async os.remove('echo') FileNotFoundError: [Errno 2] No such file or directory: 'echo' ====================================================================== FAIL: test_add_remove_keys (tests.test_agent._TestAgent.test_add_remove_keys) Test adding and removing keys ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asyncssh-2.14.1/tests/util.py", line 91, in async_wrapper return self.loop.run_until_complete(coro(self, *args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.13/asyncio/base_events.py", line 709, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 52, in agent_wrapper await func(self, agent) File "/builddir/build/BUILD/asyncssh-2.14.1/tests/test_agent.py", line 243, in test_add_remove_keys self.assertEqual(len(agent_keys), 0) AssertionError: 1 != 0 ---------------------------------------------------------------------- Ran 1471 tests in 247.850s FAILED (failures=1, errors=18, skipped=53) https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692164-python-asyncssh/ For all our attempts to build python-asyncssh with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-asyncssh/ 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.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. 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.
Upstream identified the root cause: https://github.com/ronf/asyncssh/issues/616#issuecomment-1867101643 i.e. the asyncio library changed its behavior when closing unix domain, i.e. it now also removes them - such that existing cleanup code in users of the library fails, unless it anticipates the socket already being removed, as a possibility.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.
This was reported against Python 3.13 which is slated for Fedora 41, thus, reassigning to rawhide. Meanwhile upstream integrate a fix for this and we'll likely see a new asynssh release before Rawhide switches to Python 3.13.
*** Bug 2291625 has been marked as a duplicate of this bug. ***
Hello, Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/ This package fails to install and maintainers are advised to take one of the following actions: - Fix this bug and close this bugzilla once the update makes it to the repository. (The same script that posted this comment will eventually close this bugzilla when the fixed package reaches the repository, so you don't have to worry about it.) or - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet. or - Orphan the package if you no longer plan to maintain it. If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue. This package may be orphaned in 7+ weeks. This is the first reminder (step 3) from the policy. Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.
Upstream hasn't released a new version, yet, but committed a fix to the dev branch - which I plan to integrate.
FEDORA-2024-96e8c28b8e (python-asyncssh-2.14.2-5.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-96e8c28b8e
FEDORA-2024-96e8c28b8e (python-asyncssh-2.14.2-5.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.