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

Bug #2069026 reported by Thomas Dreibholz
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-connector-python (Ubuntu)

Bug Description

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

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.