mysql-connector-python is broken on Ubuntu 24.04: AttributeError: module 'ssl' has no attribute 'wrap_socket'

Bug #2069026 reported by Thomas Dreibholz
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql-connector-python (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mysql-connector-python (Ubuntu):
status: New → Confirmed
Revision history for this message
Vincent Cautaerts (vin100c) wrote :

In this bug

https://bugs.launchpad.net/ubuntu/+source/python-eventlet/+bug/2044857

which has the same error message, they have a patch.

I'm not sure if it applicable here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.