[Freedombox-pkg-team] Bug#1088760: Test failure with python3-openssl 24.3.0: module 'OpenSSL.crypto' has no attribute 'sign'

Sunil Mohan Adapa sunil at medhas.org
Tue Dec 10 23:17:59 GMT 2024


owner -1 !
thanks

On 10/12/24 12:59, Colin Watson wrote:
> On Sat, Nov 30, 2024 at 10:21:32PM +0500, Andrey Rakhmatullin wrote:
>> https://ci.debian.net/packages/f/freedombox/testing/amd64/54950089/
>>
>> 288s plinth/modules/sso/privileged.py:78: in generate_ticket
>> 288s     return _create_ticket(pkey, uid, valid_until, tokens=tokens,
>> 288s plinth/modules/sso/privileged.py:61: in _create_ticket
>> 288s     signature = 'sig={}'.format(_sign(pkey, data))
>> 288s plinth/modules/sso/privileged.py:67: in _sign
>> 288s     sig = crypto.sign(pkey, data.encode(), 'sha512')
>> 288s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> _ _ _
>> 288s
>> 288s self = <module 'OpenSSL.crypto' from '/usr/lib/python3/dist-
>> packages/OpenSSL/crypto.py'>
>> 288s attr = 'sign'
>> 288s
>> 288s     def __getattr__(self, attr: str) -> object:
>> 288s >       obj = getattr(self._module, attr)
>> 288s E       AttributeError: module 'OpenSSL.crypto' has no attribute 'sign'
>>
>>
>>
>> `OpenSSL.crypto.sign()`, deprecated in 23.3.0, was removed in 24.3.0.
> 
> I haven't reviewed it, but
> https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/2575
> seems to be working on fixing this.
> 

I am working on this. This MR is complete and is likely to merged for 
the next release (due next Tuesday).

Thank you,

-- 
Sunil



More information about the Freedombox-pkg-team mailing list