[Bug 2044857] [NEW] python 3.12 import failures

Mauricio Faria de Oliveira 2044857 at bugs.launchpad.net
Mon Nov 27 21:42:51 UTC 2023


Public bug reported:

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/python3/dist-packages/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 45, in <module>
    from eventlet.green import ssl
  File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 25, in <module>
    _original_wrap_socket = __ssl.wrap_socket
                            ^^^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

** Affects: python-eventlet (Ubuntu)
     Importance: Medium
     Assignee: Mauricio Faria de Oliveira (mfo)
         Status: Confirmed

** Changed in: python-eventlet (Ubuntu)
       Status: New => Confirmed

** Changed in: python-eventlet (Ubuntu)
   Importance: Undecided => Medium

** Changed in: python-eventlet (Ubuntu)
     Assignee: (unassigned) => Mauricio Faria de Oliveira (mfo)

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-eventlet in Ubuntu.
https://bugs.launchpad.net/bugs/2044857

Title:
  python 3.12 import failures

Status in python-eventlet package in Ubuntu:
  Confirmed

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/python3/dist-packages/eventlet/__init__.py", line 17, in <module>
      from eventlet import convenience
    File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
      from eventlet.green import socket
    File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in <module>
      from eventlet.support import greendns
    File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 45, in <module>
      from eventlet.green import ssl
    File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 25, in <module>
      _original_wrap_socket = __ssl.wrap_socket
                              ^^^^^^^^^^^^^^^^^
  AttributeError: module 'ssl' has no attribute 'wrap_socket'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-eventlet/+bug/2044857/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list