Bug#1147563: python-aws-xray-sdk: using the removed pkg_resources module in the autopkg tests

Matthias Klose doko at debian.org
Sun Sep 13 07:06:25 BST 2026


Package: src:python-aws-xray-sdk
Version: 0.95-4
Severity: serious
Tags: sid forky
User: debian-python at lists.debian.org
Usertags: pkg-resources-deprecation
Affects: src:python-moto

using the removed pkg_resources module in the autopkg tests,
seen in the python-moto autopkg test:

[...]
114s ==================================== ERRORS 
====================================
114s _____________ ERROR collecting tests/test_xray/test_xray_client.py 
_____________

114s ImportError while importing test module 
'/tmp/autopkgtest.zC1EUG/autopkgtest_tmp/build/tests/test_xray/test_xray_client.py'.

114s Hint: make sure your test modules/packages have valid Python names.
114s Traceback:
114s /usr/lib/python3.14/importlib/__init__.py:88: in import_module
114s     return _bootstrap._gcd_import(name[level:], package, level)
114s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114s tests/test_xray/test_xray_client.py:5: in <module>
114s     import aws_xray_sdk.core as xray_core
114s /usr/lib/python3/dist-packages/aws_xray_sdk/core/__init__.py:1: in 
<module>
114s     from .recorder import AWSXRayRecorder
114s /usr/lib/python3/dist-packages/aws_xray_sdk/core/recorder.py:14: in 
<module>
114s     from .sampling.default_sampler import DefaultSampler
114s 
/usr/lib/python3/dist-packages/aws_xray_sdk/core/sampling/default_sampler.py:5: 
in <module>
114s     from pkg_resources import resource_filename
114s E   ModuleNotFoundError: No module named 'pkg_resources'
114s =============================== warnings summary 
===============================
114s tests/test_core/test_docker.py:11
114s 
/tmp/autopkgtest.zC1EUG/autopkgtest_tmp/build/tests/test_core/test_docker.py:11: 
PytestUnknownMarkWarning: Unknown pytest.mark.order - is this a typo? 
You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
114s     @pytest.mark.order(0)
114s
114s tests/test_core/test_docker.py:24
114s 
/tmp/autopkgtest.zC1EUG/autopkgtest_tmp/build/tests/test_core/test_docker.py:24: 
PytestUnknownMarkWarning: Unknown pytest.mark.order - is this a typo? 
You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
114s     @pytest.mark.order(0)
114s
114s ../../../../usr/lib/python3/dist-packages/_pytest/python.py:124
114s   /usr/lib/python3/dist-packages/_pytest/python.py:124: 
PytestRemovedIn10Warning: Passing a non-Collection iterable to 
parametrize is deprecated.
114s   Test: tests/test_core/test_protocols.py::test_output_compliance, 
argvalues type: generator
114s   Please convert to a list or tuple.
114s   See 
https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators
114s     metafunc.parametrize(*marker.args, **marker.kwargs, 
_param_mark=marker)
114s
114s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
114s =========================== short test summary info 
============================
114s ERROR tests/test_xray/test_xray_client.py
114s !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection 
!!!!!!!!!!!!!!!!!!!!
114s ================ 147 deselected, 3 warnings, 1 error in 25.63s 
=================



More information about the debian-science-maintainers mailing list