Bug 2424579
| Summary: | python-fido2 fails to build with Python 3.15: tests failures: AssertionError: 'TYPE.CREATE' != 'webauthn.create' and more | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-fido2 | Assignee: | Orion Poplawski <orion> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ksurma, mhroncok, orion |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-fido2-2.1.1-2.fc45 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-03-11 03:27:48 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: | 2412434 | ||
Filed upstream FEDORA-2026-fcc37904c4 (python-fido2-2.1.1-2.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-fcc37904c4 FEDORA-2026-fcc37904c4 (python-fido2-2.1.1-2.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report. |
python-fido2 fails to build with Python 3.15.0a3. ====================================================================== FAIL: test_make_credential_ctap1 (tests.test_client.TestFido2Client.test_make_credential_ctap1) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/python-fido2-2.0.0-build/python-fido2-2.0.0/tests/test_client.py", line 195, in test_make_credential_ctap1 self.assertEqual(client_data.type, "webauthn.create") ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: 'TYPE.CREATE' != 'webauthn.create' - TYPE.CREATE + webauthn.create ====================================================================== FAIL: test_authenticate_complete_invalid_signature (tests.test_server.TestFido2Server.test_authenticate_complete_invalid_signature) ---------------------------------------------------------------------- ValueError: Incorrect type in CollectedClientData. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/python-fido2-2.0.0-build/python-fido2-2.0.0/tests/test_server.py", line 84, in test_authenticate_complete_invalid_signature with self.assertRaisesRegex(ValueError, "Invalid signature."): ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: "Invalid signature." does not match "Incorrect type in CollectedClientData." ====================================================================== FAIL: test_creation_options (tests.test_webauthn.TestWebAuthnDataTypes.test_creation_options) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/python-fido2-2.0.0-build/python-fido2-2.0.0/tests/test_webauthn.py", line 280, in test_creation_options self.assertEqual(o, o2) ~~~~~~~~~~~~~~~~^^^^^^^ AssertionError: Publi[265 chars]type=<PublicKeyCredentialType.PUBLIC_KEY: 'pub[583 chars]None) != Publi[265 chars]type=None, alg=-7)], timeout=10000, exclude_cr[357 chars]None) https://docs.python.org/3.15/whatsnew/3.15.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09940738-python-fido2/ For all our attempts to build python-fido2 with Python 3.15, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-fido2/ 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.15: https://copr.fedorainfracloud.org/coprs/g/python/python3.15/ Let us know here if you have any questions. Python 3.15 is planned to be included in Fedora 45. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15. 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.