Package: src:python-oslo.messaging
Version: 14.4.1-1
Severity: important
Tags: sid trixie
User: [email protected]
Usertags: python3.12

python-oslo.messaging's autopkg tests fail with Python 3.12:

[...]
502s autopkgtest [18:49:14]: test python-import: [-----------------------
502s /usr/lib/python3/dist-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
502s !!
502s
502s ********************************************************************************
502s         Requirements should be satisfied by a PEP 517 installer.
502s         If you are using pip, you can try `pip install --use-pep517`.
502s ********************************************************************************
502s
502s !!
502s   dist.fetch_build_eggs(dist.setup_requires)
502s /usr/lib/python3/dist-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
502s !!
502s
502s ********************************************************************************
502s         Please avoid running ``setup.py`` and ``easy_install``.
502s         Instead, use pypa/build, pypa/installer or other
502s         standards-based tools.
502s
502s         See https://github.com/pypa/setuptools/issues/917 for details.
502s ********************************************************************************
502s
502s !!
502s   easy_install.initialize_options(self)
502s /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
502s !!
502s
502s ********************************************************************************
502s         Please avoid running ``setup.py`` directly.
502s         Instead, use pypa/build, pypa/installer or other
502s         standards-based tools.
502s
502s See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. 502s ********************************************************************************
502s
502s !!
502s   self.initialize_options()
502s Testing with python3.12:
502s /usr/lib/python3/dist-packages/pytz/__init__.py:30: SyntaxWarning: invalid escape sequence '\s'
502s   match = re.match("^#\s*version\s*([0-9a-z]*)\s*$", line)
503s Traceback (most recent call last):
503s   File "<string>", line 1, in <module>
503s File "/usr/lib/python3/dist-packages/oslo_messaging/__init__.py", line 17, in <module>
503s     from .notify import *
503s File "/usr/lib/python3/dist-packages/oslo_messaging/notify/__init__.py", line 28, in <module>
503s     from .listener import *
503s File "/usr/lib/python3/dist-packages/oslo_messaging/notify/listener.py", line 140, in <module>
503s     from oslo_messaging import server as msg_server
503s File "/usr/lib/python3/dist-packages/oslo_messaging/server.py", line 27, in <module>
503s     from oslo_service import service
503s File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 35, in <module>
503s     import eventlet
503s File "/usr/lib/python3/dist-packages/eventlet/__init__.py", line 17, in <module>
503s     from eventlet import convenience
503s File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
503s     from eventlet.green import socket
503s File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in <module>
503s     from eventlet.support import greendns
503s File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 45, in <module>
503s     from eventlet.green import ssl
503s File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 25, in <module>
503s     _original_wrap_socket = __ssl.wrap_socket
503s                             ^^^^^^^^^^^^^^^^^
503s AttributeError: module 'ssl' has no attribute 'wrap_socket'
503s autopkgtest [18:49:15]: test python-import: -----------------------]
503s autopkgtest [18:49:15]: test python-import: - - - - - - - - - - results - - - - - - - - - -
503s python-import        FAIL non-zero exit status 1
503s autopkgtest [18:49:15]: test python-stestr: preparing testbed
504s Reading package lists...
504s Building dependency tree...
504s Reading state information...
504s Starting pkgProblemResolver with broken count: 0
504s Starting 2 pkgProblemResolver with broken count: 0
504s Done
505s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
505s 1 not fully installed or removed.
505s After this operation, 0 B of additional disk space will be used.
505s Setting up autopkgtest-satdep (0) ...
506s (Reading database ... 82548 files and directories currently installed.)
506s Removing autopkgtest-satdep (0) ...
506s autopkgtest [18:49:18]: test python-stestr: [-----------------------
506s + py3versions -r
506s Testing with python3.12:
506s + echo Testing with python3.12:
506s + PYTHON=python3.12 stestr run
507s /usr/lib/python3/dist-packages/pytz/__init__.py:30: SyntaxWarning: invalid escape sequence '\s'
507s   match = re.match("^#\s*version\s*([0-9a-z]*)\s*$", line)
507s
507s =========================
507s Failures during discovery
507s =========================
507s --- import errors ---
507s Failed to import test module: oslo_messaging.tests
507s Traceback (most recent call last):
507s File "/usr/lib/python3.12/unittest/loader.py", line 427, in _find_test_path
507s     package = self._get_module_from_name(name)
507s               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
507s File "/usr/lib/python3.12/unittest/loader.py", line 337, in _get_module_from_name
507s     __import__(name)
507s File "/tmp/autopkgtest.qVJicD/build.0cN/src/oslo_messaging/__init__.py", line 17, in <module>
507s     from .notify import *
507s File "/tmp/autopkgtest.qVJicD/build.0cN/src/oslo_messaging/notify/__init__.py", line 28, in <module>
507s     from .listener import *
507s File "/tmp/autopkgtest.qVJicD/build.0cN/src/oslo_messaging/notify/listener.py", line 140, in <module>
507s     from oslo_messaging import server as msg_server
507s File "/tmp/autopkgtest.qVJicD/build.0cN/src/oslo_messaging/server.py", line 27, in <module>
507s     from oslo_service import service
507s File "/usr/lib/python3/dist-packages/oslo_service/service.py", line 35, in <module>
507s     import eventlet
507s File "/usr/lib/python3/dist-packages/eventlet/__init__.py", line 17, in <module>
507s     from eventlet import convenience
507s File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
507s     from eventlet.green import socket
507s File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in <module>
507s     from eventlet.support import greendns
507s File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 45, in <module>
507s     from eventlet.green import ssl
507s File "/usr/lib/python3/dist-packages/eventlet/green/ssl.py", line 25, in <module>
507s     _original_wrap_socket = __ssl.wrap_socket
507s                             ^^^^^^^^^^^^^^^^^
507s AttributeError: module 'ssl' has no attribute 'wrap_socket'
507s
507s ================================================================================ 507s The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.

Reply via email to