[Python-modules-team] Bug#917603: python3-yaml: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

Simon McVittie smcv at debian.org
Sat Dec 29 11:44:13 GMT 2018


On Sat, 29 Dec 2018 at 05:40:43 +0100, Niels Thykier wrote:
> tests/test_autopkgtest.py::T::test_alternative_gcc
>   /usr/lib/python3/dist-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
>     if not isinstance(key, collections.Hashable):

Minimal reproducer:

    python3.7 -Werror -c 'import yaml; yaml.load("{1: 2}")'

To verify the fix in an unpacked/patched source tree:

    PYTHONPATH=$(pwd)/lib3 python3.7 -Werror -c 'import yaml; yaml.load("{1: 2}")'

Thanks for tracking down the patch. game-data-packager is also affected.
I've pushed the patched version to the git repository and I'll upload soon.

    smcv



More information about the Python-modules-team mailing list