amazon-redshift-python-driver icon indicating copy to clipboard operation
amazon-redshift-python-driver copied to clipboard

DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

Open ad-m-ss opened this issue 3 years ago • 1 comments

Driver version

Apply to master too.

Redshift version

N/A

Client Operating System

N/A

Python version

3.10

Table schema

N/A

Problem description

Library raises deprecation warning:

  /usr/local/lib/python3.10/site-packages/redshift_connector/core.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion

Python Driver trace logs

Reproduction code

Just import connector

ad-m-ss avatar Aug 03 '22 18:08 ad-m-ss

Hey @ad-m-ss , thanks for the heads up about this. we will work to fix in next release.

Brooke-white avatar Aug 03 '22 19:08 Brooke-white

2.0.909 has been released with this fix.

Brooke-white avatar Sep 22 '22 21:09 Brooke-white