[Bug 2044857] Re: python 3.12 import failures

Mauricio Faria de Oliveira 2044857 at bugs.launchpad.net
Mon Dec 11 00:48:34 UTC 2023


Hi Corey,

Here's an updated debdiff that replaces my 'patch 7 import fixup' with
an identical change from upstream (which didn't make it to Debian yet,
as it's introduced upstream after v0.33.3).

I verified the only changes between debdiffs are a changelog entry and
patch metadata (their modified lines are identical).

Thanks,
Mauricio

$ diff -U0 lp2044857_python-eventlet_py312.debdiff lp2044857_python-eventlet_py312-v2.debdiff
...
++    - d/p/py312-import-ssl-from-eventlet-green.patch: update import
++      for patch 7 (due to `eventlet.green.ssl._has_ssl_wrap_socket`)
...
---- python-eventlet-0.33.1/debian/patches/py312-eventlet-pr-817-7-fixup.patch
-+++ python-eventlet-0.33.1/debian/patches/py312-eventlet-pr-817-7-fixup.patch
...
-+-    import ssl
-++    from eventlet.green import ssl
...
+--- python-eventlet-0.33.1/debian/patches/py312-import-ssl-from-eventlet-green.patch
++++ python-eventlet-0.33.1/debian/patches/py312-import-ssl-from-eventlet-green.patch
...
++-    import ssl
+++    from eventlet.green import ssl
...
@@ -1033 +1042,0 @@
-+py312-eventlet-pr-817-7-fixup.patch
@@ -1035,0 +1045 @@
++py312-import-ssl-from-eventlet-green.patch

** Patch added: "lp2044857_python-eventlet_py312-v2.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/python-eventlet/+bug/2044857/+attachment/5728091/+files/lp2044857_python-eventlet_py312-v2.debdiff

-- 
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:
  In Progress

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'

  
  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.

  [1] https://github.com/eventlet/eventlet/pull/817

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