Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-226

Replace deprecated distutils

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.4
    • 1.1.5
    • Generic
    • None

    Description

      Recent Pytion versions (3.10 and above) now return a deprecation warning for distutils package. Connector/Python uses distutils.StrictVersion method, which should be replaced by package.version.Version() method.

      See also PEP-632

      Warning:
      test_autocommit (test.integration.test_connection.TestConnection) ... /home/travis/.pyenv/versions/3.10.7/lib/python3.10/site-packages/mariadb-1.1.5-py3.10-linux-x86_64.egg/mariadb/connections.py:71: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.