Public bug reported: The python3 package from the Ubuntu Noble repository is currently at version 3.12.3. However, the python3-mysql.connector package available from the same repository is at version 8.0.15, which is not compatible with Python 3.12.3. This incompatibility arises because Python 3.12.3 has deprecated the ssl.wrap_socket method, leading to the following error when attempting to use the MySQL connector:
AttributeError: module 'ssl' has no attribute 'wrap_socket' Steps to Reproduce: Install python3 version 3.12.3 from the Ubuntu Noble repository. Install python3-mysql.connector version 8.0.15 from the same repository. Attempt to use the MySQL connector in a Python script. Observe the AttributeError related to ssl.wrap_socket. Expected Behavior: The python3-mysql.connector package should be compatible with the installed version of Python, and no AttributeError should occur. Actual Behavior: An AttributeError is raised due to the deprecation of ssl.wrap_socket in Python 3.12.3, indicating that the python3-mysql.connector package is not compatible with this version of Python. Additional Information: Python version: 3.12.3 MySQL connector version: 8.0.15 Operating System: Ubuntu Noble Suggested Fix: Update the python3-mysql.connector package to a version that is compatible with Python 3.12.3, or provide an alternative solution for MySQL connectivity that does not rely on the deprecated ssl.wrap_socket method. ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Tags: python3 python3-mysql -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2097335 Title: Incompatibility between python3 (version 3.12.3) and python3-mysql.connector (version 8.0.15) on Ubuntu Noble To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097335/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs