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 Kernel
Packages, which is subscribed to linux in 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

Status in linux package in Ubuntu:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2097335/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to