pulb / mailnag

An extensible mail notification daemon
GNU General Public License v2.0
250 stars 32 forks source link

module 'ssl' has no attribute 'wrap_socket' #245

Open knurd opened 10 months ago

knurd commented 10 months ago

Got this error after upgrading to Fedora 39, which uses Python 3.12:

ERROR (2023-09-25 15:24:31): Failed to open mailbox for account 'truhe' (module 'ssl' has no attribute 'wrap_socket').

Quick googling (which might have gone sideways) indicated that this might have been removed: https://github.com/python/cpython/issues/94199

knurd commented 10 months ago

Consider removing the package from the Fedora 39 repos before its released, as I fear (didn't check) this might break things for a lot of people. What do you think, @kparal

kparal commented 10 months ago

Well, that's probably a discussion which should be led in a downstream bug with the Fedora package maintainer, not here in upstream. I don't have a good opinion on that, anyway :-)

knurd commented 10 months ago

[...] with the Fedora package maintainer

That's me. ;-)

I don't have a good opinion on that, anyway :-)

Okay, was just fishing for an additional opinion, but then I'll proceed without one. :-D Thx for answering!

knurd commented 10 months ago

Lalufu in #fedora-devel provided a patch to make things work again; did the trick for me

mailnag-deprecated_ssl_wrap.txt