Package: python3-requests
Version: 2.25.1+dfsg-2
Severity: normal
Dear Maintainer,
In python3-requests 2.25.1, the class JSONDecodeError is missing, if i
run this :
python3 -c 'import requests; print(requests.JSONDecodeError)'
I have this error :
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'requests' has no attribute 'JSONDecodeError'
This issue has been reported on python repository here :
https://github.com/python/typeshed/issues/7072
and this issue have fix here :
https://github.com/python/typeshed/pull/7171
This issue has been fixed in python3-requests 2.28 in Debian 12, but can
you backport this changes on Debian 11 ?
Best Regards.
-- System Information:
Debian Release: 11.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-21-cloud-amd64 (SMP w/6 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-requests depends on:
ii ca-certificates 20210119
ii python3 3.9.2-3
ii python3-certifi 2020.6.20-1
ii python3-chardet 4.0.0-1
ii python3-idna 2.10-1
ii python3-urllib3 1.26.5-1~exp1
python3-requests recommends no packages.
Versions of packages python3-requests suggests:
pn python-requests-doc <none>
pn python3-cryptography <none>
ii python3-idna 2.10-1
pn python3-openssl <none>
pn python3-socks <none>
-- no debconf information