#1140672 python-cursive: autopkgtests fail with python3-cryptography >= 47

#1140672#5
Date:
2026-06-24 12:06:54 UTC
From:
To:
python-cursive's autopkgtests fail with python3-cryptography >= 47, as
seen e.g. in
https://ci.debian.net/packages/p/python-cursive/testing/amd64/72431246/:

  =========================
  Failures during discovery
  =========================
  --- import errors ---
  Failed to import test module: cursive.tests.unit.test_certificate_utils
  Traceback (most recent call last):
    File "/usr/lib/python3.14/unittest/loader.py", line 426, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python3.14/unittest/loader.py", line 367, in _get_module_from_name
      __import__(name)
      ~~~~~~~~~~^^^^^^
    File "/tmp/autopkgtest-lxc.im6okxlc/downtmp/build.SFS/src/cursive/tests/unit/test_certificate_utils.py", line 20, in <module>
      from cursive import certificate_utils
    File "/tmp/autopkgtest-lxc.im6okxlc/downtmp/build.SFS/src/cursive/certificate_utils.py", line 23, in <module>
      from cursive import signature_utils
    File "/tmp/autopkgtest-lxc.im6okxlc/downtmp/build.SFS/src/cursive/signature_utils.py", line 54, in <module>
      ec.SECT571K1(),
      ^^^^^^^^^^^^
  AttributeError: module 'cryptography.hazmat.primitives.asymmetric.ec' has no attribute 'SECT571K1'. Did you mean: 'SECP521R1'?

  Failed to import test module: cursive.tests.unit.test_signature_utils
  Traceback (most recent call last):
    File "/usr/lib/python3.14/unittest/loader.py", line 426, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib/python3.14/unittest/loader.py", line 367, in _get_module_from_name
      __import__(name)
      ~~~~~~~~~~^^^^^^
    File "/tmp/autopkgtest-lxc.im6okxlc/downtmp/build.SFS/src/cursive/tests/unit/test_signature_utils.py", line 28, in <module>
      from cursive import signature_utils
    File "/tmp/autopkgtest-lxc.im6okxlc/downtmp/build.SFS/src/cursive/signature_utils.py", line 54, in <module>
      ec.SECT571K1(),
      ^^^^^^^^^^^^
  AttributeError: module 'cryptography.hazmat.primitives.asymmetric.ec' has no attribute 'SECT571K1'. Did you mean: 'SECP521R1'?

Thanks,

#1140672#10
Date:
2026-06-24 12:26:47 UTC
From:
To:
Control: affects -1 src:cinder src:glance src:nova

This also causes autopkgtest failures in several other OpenStack
components.

#1140672#15
Date:
2026-06-25 08:34:39 UTC
From:
To:
Hello,

Bug #1140672 in python-cursive reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/libs/python-cursive/-/commit/2387964c8a1d4917cb497d44bc0e9dd83a579acf

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1140672

#1140672#22
Date:
2026-06-25 08:49:52 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-cursive, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1140672@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated python-cursive package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 25 Jun 2026 10:00:15 +0200
Source: python-cursive
Architecture: source
Version: 0.2.3-6
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1140672
Changes:
 python-cursive (0.2.3-6) unstable; urgency=medium
 .
   * Add remove-deprecated-curves.patch (Closes: #1140672).
Checksums-Sha1:
 1691d9c894fbb402546a6b7207198994ef2612e3 2564 python-cursive_0.2.3-6.dsc
 2c1577a8a6337b3be34e1478fd10a27dbdb63f0a 3748 python-cursive_0.2.3-6.debian.tar.xz
 0779c3c11e53bd0d22dd77ad8b05115df07c86dc 11955 python-cursive_0.2.3-6_amd64.buildinfo
Checksums-Sha256:
 4d385f9672a78faa8ab580f37f07ee522c9fab46b0927c42d806ce72c719eafe 2564 python-cursive_0.2.3-6.dsc
 6688cf383becfdfc3526ad3232a32b76747860eaa64bae61230f36f2cf26e618 3748 python-cursive_0.2.3-6.debian.tar.xz
 8e95b4c23206f880f101ab9ff1dbe6c199f56e4c47233ea2ae3fa5a5f6898a61 11955 python-cursive_0.2.3-6_amd64.buildinfo
Files:
 2086c6d5de798bb895b5ed909e8fdcb0 2564 python optional python-cursive_0.2.3-6.dsc
 4eb1c3001e68c06cc55cc3300b6a3882 3748 python optional python-cursive_0.2.3-6.debian.tar.xz
 3696226c91483307e6d62bbe29f73989 11955 python optional python-cursive_0.2.3-6_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmo86CIACgkQ1BatFaxr
Q/6t+Q//c9CnCJ0YvmPLbBAv0kq7Fa29Pyp6ZbKK/NXi6d5nq0OGWMwYdmfego7K
dxEoYnp4K9RPfQqxLFqXzY1Y6Gu6FZCNNA34s8m0P48hCgmNTvcmreH+iKPlXU9i
g/weOetBDwaq6P27Vlawq616ntUpmFHO4d4yDerGXGnoBWcfNuQuuirn8u5cY2Ma
F1jF9MxIj5rsXjb7NNcLiNHyKMN41DNPqnRyiNi9ODZI+jkFMxjEQlB0m7Zvkhxy
GMNvRKyJEWxOH9G2ia596UJPv9e860w6G1L4dyerptu1QHZ6c/oMGAREVczo1WTc
YXs/3et6CE5cQF8MQk679A0f6wuwCEykoCcDzwtTs9wOkpzfHtHLXkRcg2eXDzx+
i+4Hay24RrQEDWJo04JkLHq9w4CyOavfZdmqjZkIwW27H9z+Of/PhM17vCKKbwZm
f0dulHmoFn/TgLdMdtQZga714dEZ/r67vgKAO23448pZoDJlFoGGBsedSQjFXyHc
fwroHZpPFHa396gqlPciCDtaGZCJS3RsP4pTZevmjAydNtjHEp03t3qD2I04e9Pg
OeY/V0y2h7e0U6lfC/LR8dTflb/wGNLAzBI4N4RmmgCh63/xdCM8U2E8OgYqxZP6
QgPm+uC1SvLTlxK92xUhC6XnIJWSh3+1uKzZjK4AAch/HnJnws0=
=unjj
-----END PGP SIGNATURE-----