Followup-For: Bug #1065937
Control: forwarded -1 https://github.com/SparkPost/python-sparkpost/issues/229
Control: tag -1 upstream patch

The python3-distutils dependency is for the autopkgtest.
The autopkgtest already fails in testing and sid due to lack of
python3-six:

 41s _________________ ERROR collecting test/test_transmissions.py 
__________________
 41s ImportError while importing test module 
'/tmp/autopkgtest-lxc.80s8zjfx/downtmp/build.8Jc/src/test/test_transmissions.py'.
 41s Hint: make sure your test modules/packages have valid Python names.
 41s Traceback:
 41s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
 41s     return _bootstrap._gcd_import(name[level:], package, level)
 41s test/test_transmissions.py:9: in <module>
 41s     import six
 41s E   ModuleNotFoundError: No module named 'six'

With python3-six added and python3-distutils removed from the
autopkgtest dependencies, I get

_________________ ERROR collecting test/django/test_message.py _________________
ImportError while importing test module 
'/tmp/autopkgtest.0B51NB/build.K7a/src/test/django/test_message.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/django/test_message.py:7: in <module>
    from .utils import at_least_version
test/django/utils.py:1: in <module>
    from distutils.version import StrictVersion
E   ModuleNotFoundError: No module named 'distutils'


The upstream bug has a proposed patch, but the package seems dead
upstream (last commit 3 years ago).


Andreas

Reply via email to