$ tox run -e py312-linux -- --co
.pkg: _optional_hooks> python /home/leonard/.local/share/pipx/venvs/tox/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_editable> python /home/leonard/.local/share/pipx/venvs/tox/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: build_editable> python /home/leonard/.local/share/pipx/venvs/tox/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
py312-linux: install_package> python -I -m pip install --force-reinstall --no-deps /home/leonard/Projects/asyncssh/.tox/.tmp/package/25/asyncssh-2.22.0-0.editable-py3-none-any.whl
py312-linux: commands[0]> .tox/py312-linux/bin/python -m pytest --cov --cov-report=term-missing:skip-covered --co
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-9.0.3, pluggy-1.6.0
cachedir: .tox/py312-linux/.pytest_cache
rootdir: /home/leonard/Projects/asyncssh
configfile: tox.ini
testpaths: tests
plugins: cov-7.1.0
collected 7 items / 24 errors
<Dir asyncssh>
<Package tests>
<Module test_asn1.py>
<UnitTestCase _TestASN1>
<TestCaseFunction test_asn1>
<Module test_encryption.py>
<UnitTestCase _TestEncryption>
<TestCaseFunction test_encryption_algs>
<TestCaseFunction test_unavailable_cipher>
<Module test_mac.py>
<UnitTestCase _TestMAC>
<TestCaseFunction test_mac_algs>
<TestCaseFunction test_umac_wrapper>
<Module test_packet.py>
<UnitTestCase _TestPacket>
<TestCaseFunction test_packet>
<TestCaseFunction test_unicode>
==================================== ERRORS ====================================
_____________________ ERROR collecting tests/test_agent.py _____________________
tests/test_agent.py:31: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
_____________________ ERROR collecting tests/test_auth.py ______________________
tests/test_auth.py:27: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
___________________ ERROR collecting tests/test_auth_keys.py ___________________
tests/test_auth_keys.py:25: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_channel.py ____________________
tests/test_channel.py:31: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
__________________ ERROR collecting tests/test_compression.py __________________
tests/test_compression.py:26: in <module>
from asyncssh.compression import get_compression_algs, get_compression_params
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_config.py _____________________
tests/test_config.py:30: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
__________________ ERROR collecting tests/test_connection.py ___________________
tests/test_connection.py:32: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
________________ ERROR collecting tests/test_connection_auth.py ________________
tests/test_connection_auth.py:32: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_editor.py _____________________
tests/test_editor.py:24: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_forward.py ____________________
tests/test_forward.py:32: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
______________________ ERROR collecting tests/test_kex.py ______________________
tests/test_kex.py:29: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
__________________ ERROR collecting tests/test_known_hosts.py __________________
tests/test_known_hosts.py:28: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_logging.py ____________________
tests/test_logging.py:23: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_pkcs11.py _____________________
tests/test_pkcs11.py:25: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_process.py ____________________
tests/test_process.py:32: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
__________________ ERROR collecting tests/test_public_key.py ___________________
tests/test_public_key.py:41: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
___________________ ERROR collecting tests/test_saslprep.py ____________________
tests/test_saslprep.py:25: in <module>
from asyncssh.saslprep import saslprep, SASLPrepError
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
_____________________ ERROR collecting tests/test_sftp.py ______________________
tests/test_sftp.py:36: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
______________________ ERROR collecting tests/test_sk.py _______________________
tests/test_sk.py:25: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_stream.py _____________________
tests/test_stream.py:26: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
__________________ ERROR collecting tests/test_subprocess.py ___________________
tests/test_subprocess.py:26: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
____________________ ERROR collecting tests/test_tuntap.py _____________________
tests/test_tuntap.py:33: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
______________________ ERROR collecting tests/test_x11.py ______________________
tests/test_x11.py:29: in <module>
import asyncssh
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
_____________________ ERROR collecting tests/test_x509.py ______________________
tests/test_x509.py:28: in <module>
from .util import get_test_key, x509_available
tests/util.py:36: in <module>
from asyncssh import set_default_skip_rsa_key_validation
asyncssh/__init__.py:31: in <module>
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
asyncssh/agent.py:33: in <module>
from .public_key import KeyPairListArg, SSHCertificate, SSHKeyPair
asyncssh/public_key.py:39: in <module>
from .sk import sk_available
asyncssh/sk.py:357: in <module>
from fido2.client.windows import WindowsClient
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/windows.py:69: in <module>
from .win_api import (
.tox/py312-linux/lib/python3.12/site-packages/fido2/client/win_api.py:848: in <module>
HRESULT = ctypes.HRESULT # type: ignore
^^^^^^^^^^^^^^
E AttributeError: module 'ctypes' has no attribute 'HRESULT'
=========================== short test summary info ============================
ERROR tests/test_agent.py - AttributeError: module 'ctypes' has no attribute ...
ERROR tests/test_auth.py - AttributeError: module 'ctypes' has no attribute '...
ERROR tests/test_auth_keys.py - AttributeError: module 'ctypes' has no attrib...
ERROR tests/test_channel.py - AttributeError: module 'ctypes' has no attribut...
ERROR tests/test_compression.py - AttributeError: module 'ctypes' has no attr...
ERROR tests/test_config.py - AttributeError: module 'ctypes' has no attribute...
ERROR tests/test_connection.py - AttributeError: module 'ctypes' has no attri...
ERROR tests/test_connection_auth.py - AttributeError: module 'ctypes' has no ...
ERROR tests/test_editor.py - AttributeError: module 'ctypes' has no attribute...
ERROR tests/test_forward.py - AttributeError: module 'ctypes' has no attribut...
ERROR tests/test_kex.py - AttributeError: module 'ctypes' has no attribute 'H...
ERROR tests/test_known_hosts.py - AttributeError: module 'ctypes' has no attr...
ERROR tests/test_logging.py - AttributeError: module 'ctypes' has no attribut...
ERROR tests/test_pkcs11.py - AttributeError: module 'ctypes' has no attribute...
ERROR tests/test_process.py - AttributeError: module 'ctypes' has no attribut...
ERROR tests/test_public_key.py - AttributeError: module 'ctypes' has no attri...
ERROR tests/test_saslprep.py - AttributeError: module 'ctypes' has no attribu...
ERROR tests/test_sftp.py - AttributeError: module 'ctypes' has no attribute '...
ERROR tests/test_sk.py - AttributeError: module 'ctypes' has no attribute 'HR...
ERROR tests/test_stream.py - AttributeError: module 'ctypes' has no attribute...
ERROR tests/test_subprocess.py - AttributeError: module 'ctypes' has no attri...
ERROR tests/test_tuntap.py - AttributeError: module 'ctypes' has no attribute...
ERROR tests/test_x11.py - AttributeError: module 'ctypes' has no attribute 'H...
ERROR tests/test_x509.py - AttributeError: module 'ctypes' has no attribute '...
!!!!!!!!!!!!!!!!!!! Interrupted: 24 errors during collection !!!!!!!!!!!!!!!!!!!
==================== 7 tests collected, 24 errors in 2.25s =====================
py312-linux: exit 2 (2.45 seconds) /home/leonard/Projects/asyncssh> .tox/py312-linux/bin/python -m pytest --cov --cov-report=term-missing:skip-covered --co pid=1638998
py312-linux: FAIL code 2 (3.07=setup[0.62]+cmd[2.45] seconds)
evaluation failed :( (3.20 seconds)
Looking inside asyncssh/sk.py there is an attempt to catch ImportError on non-windows machines but an AttributeError happens instead. My unconfirmed guess is that this is due to recent changes in the fido2 package? I was able to get over this issue with this patch:
diff --git asyncssh/sk.py asyncssh/sk.py
index 2583e7394b5f..3245cc1e08c5 100644
--- asyncssh/sk.py
+++ asyncssh/sk.py
@@ -352,10 +352,11 @@ except (ImportError, OSError, AttributeError): # pragma: no cover
sk_enroll = _sk_not_available
sk_sign = _sk_not_available
sk_get_resident = _sk_not_available
try: # pragma: no cover
+ from ctypes import HRESULT
from fido2.client.windows import WindowsClient
sk_use_webauthn = WindowsClient.is_available() and \
hasattr(ctypes, 'windll') and \
not ctypes.windll.shell32.IsUserAnAdmin()
Running on Ubuntu24:
Looking inside asyncssh/sk.py there is an attempt to catch ImportError on non-windows machines but an AttributeError happens instead. My unconfirmed guess is that this is due to recent changes in the fido2 package? I was able to get over this issue with this patch: