[Python-modules-team] Bug#930781: python3-socks: Deprecation warning emitted on import

Scott Kitterman debian at kitterman.com
Wed May 13 21:34:08 BST 2020


On Thu, 20 Jun 2019 09:53:06 -0400 Jamie Bliss <jamie at ivyleav.es> wrote:
> Package: python3-socks
> Version: 1.6.8+dfsg-1
> Severity: normal
> 
> Dear Maintainer,
> 
> PySocks 1.6.8 has a deprecated import and a warning is emitted on import. 
This
> is triggered by importing requests, an extremely common HTTP library. It has
> been fixed in upstream 1.7.0
> 
> This happens for any software that uses requests, whether or not they depend 
on
> PySocks. It just happens for every application that uses it as soon as
> python3-socks is installed on a system.
> 
> In addition, this warning becomes user-visible if the application surfaces
> warnings in some way (in a log or on stdout).

Assuming the warning in question is:

/usr/lib/python3/dist-packages/socks.py:58
  /usr/lib/python3/dist-packages/socks.py:58: DeprecationWarning: Using or 
importing the ABCs from 'collections' instead of from 'collections.abc' is 
deprecated since Python 3.3, and in 3.9 it will stop working
    from collections import Callable

It'll become fatal as soon as we go to python3.9, so this package really 
should be updated.

Scott K
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200513/bd6bf0ab/attachment.sig>


More information about the Python-modules-team mailing list