python 3.12 import failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-eventlet (Ubuntu) |
Fix Released
|
Medium
|
Mauricio Faria de Oliveira |
Bug Description
python3-eventlet fails to be imported on python 3.12 (noble-proposed).
$ sudo apt install -y python3-eventlet
$ python3.12 -c 'import eventlet'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
from eventlet import convenience
File "/usr/lib/
from eventlet.green import socket
File "/usr/lib/
from eventlet.support import greendns
File "/usr/lib/
from eventlet.green import ssl
File "/usr/lib/
_original_
AttributeError: module 'ssl' has no attribute 'wrap_socket'
There is PR#817 [1] with patches for python 3.12 support,
which is unmerged, but seems to be the only option now,
and is passing the package build-time test-suite.
Changed in python-eventlet (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
description: | updated |
tags: | added: patch |
Attaching debdiff with PR#817 plus a quick workaround for 2 tests.
The build-time test suite finishes successfully for python 3.12 and 3.11
$ sudo apt install ./python3- eventlet_ 0.33.1- 4ubuntu2_ all.deb
$ python3.12 -c 'import eventlet'
$