From 68203f47be3f660f6ae15bc33e6d392d8a95b70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Thu, 14 Dec 2023 11:10:44 +0100 Subject: [PATCH] fix: RsaKey.dq attribute error Running `tutor config save` with an outdated version of pycryptodome was failing with the following error: Error: Missing configuration value: 'Crypto.PublicKey.RSA.RsaKey object' has no attribute 'dq' This is because the "dq" attribute was only introduced in pycryptodome 3.17.0: https://www.pycryptodome.org/src/changelog#january-2023 To resolve this issue we bump the minimum requirements. Close #962 --- changelog.d/20231214_110904_regis_rsa_error.md | 1 + requirements/base.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/20231214_110904_regis_rsa_error.md diff --git a/changelog.d/20231214_110904_regis_rsa_error.md b/changelog.d/20231214_110904_regis_rsa_error.md new file mode 100644 index 0000000..37ea108 --- /dev/null +++ b/changelog.d/20231214_110904_regis_rsa_error.md @@ -0,0 +1 @@ +- [Bugfix] Error "'Crypto.PublicKey.RSA.RsaKey object' has no attribute 'dq'" during `tutor config save` was caused by outdated minimum version of the pycryptodome package. To resolve this issue, run `pip install --upgrade pycryptodome`. (by @regisb) diff --git a/requirements/base.in b/requirements/base.in index 12f314f..eb60ad6 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -3,6 +3,6 @@ click>=8.0 jinja2>=2.10 kubernetes mypy -pycryptodome +pycryptodome>=3.17.0 pyyaml>=6.0 typing-extensions>=4.4.0