Package: python3-mysql.connector
Version: 8.0.15-4

Debian sid & testing have moved to python3 3.12 and the 8.0
python3-mysql.connector package currently available from Debian is now
broken due to being outdated/lack of python3 3.12 support. An update
to at least 8.4 (released March 2024) is required for python3 3.12
support. Here's an example of the breakage:

error <general>:   File
"/usr/lib/python3/dist-packages/mysql/connector/__init__.py", line
173, in connect
error <general>:
error <general>: return MySQLConnection(*args, **kwargs)
error <general>:
error <general>:   File
"/usr/lib/python3/dist-packages/mysql/connector/connection.py", line
102, in __init__
error <general>:
error <general>: self.connect(**kwargs)
error <general>:
error <general>:   File
"/usr/lib/python3/dist-packages/mysql/connector/abstracts.py", line
735, in connect
error <general>:
error <general>: self._open_connection()
error <general>:
error <general>:   File
"/usr/lib/python3/dist-packages/mysql/connector/connection.py", line
250, in _open_connection
error <general>:
error <general>: self._do_auth(self._user, self._password,
error <general>:
error <general>:   File
"/usr/lib/python3/dist-packages/mysql/connector/connection.py", line
155, in _do_auth
error <general>:
error <general>: self._socket.switch_to_ssl(ssl_options.get('ca'),
error <general>:
error <general>:   File
"/usr/lib/python3/dist-packages/mysql/connector/network.py", line 427,
in switch_to_ssl
error <general>:
error <general>: self.sock = ssl.wrap_socket(
error <general>:
error <general>: AttributeError
error <general>: :
error <general>: module 'ssl' has no attribute 'wrap_socket'

In this instance, ssl.wrap_socket() no longer exists in python3 3.12+.

Using Debian Sid, stable kernel 6.11.1, libc6 2.40-3, python3 3.12.6-1.

Thank you

Reply via email to