great_expectations icon indicating copy to clipboard operation
great_expectations copied to clipboard

[MAINTENANCE] Pin setuptools

Open joshua-stauffer opened this issue 7 months ago • 2 comments

setuptools higher than 71.0.0 causes an exception when importing pkg_resources:

 tests/integration/test_script_runner.py:15: in <module>
    import pkg_resources
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:93: in <module>
    from jaraco.text import (
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/setuptools/_vendor/jaraco/text/__init__.py:12: in <module>
    from jaraco.context import ExceptionTrap
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/setuptools/_vendor/jaraco/context.py:17: in <module>
    from backports import tarfile
E   ImportError: cannot import name 'tarfile' from 'backports' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/backports/__init__.py)

long term solution is to migrate off of pkg_resources, which is legacy code.

joshua-stauffer avatar Jul 18 '24 15:07 joshua-stauffer