[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

Niels Thykier niels at thykier.net
Thu Jan 10 06:54:00 GMT 2019


On Sat, 29 Dec 2018 11:44:13 +0000 Simon McVittie <smcv at debian.org> wrote:
> 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
> 
> 

Hi,

Thanks for cherry-picking this to the salsa repo. :)

Do you have an estimate of when you plan to upload this?  I hope that we
can have it fixed before buster[1]. :)

Thanks,
~Niels

[1] If time / energy is an issue at the moment, I can also do it as an
NMU to off-load you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20190110/6ba5066f/attachment-0001.sig>


More information about the Python-modules-team mailing list