Control: severity -1 serious
Control: tags -1 + patch

On Sat, 1 Jul 2023 21:43:31 -0400 Louis-Philippe VĂ©ronneau <po...@debian.org> 
wrote:
> Source: python-pysnmp4
> Severity: important
> User: debian-pyt...@lists.debian.org
> Usertags: asyncore-asynchat-deprecation
> 
> Dear maintainer(s),
> 
> In Python 3.6, asyncore and asynchat have been formally marked as 
> deprecated. Code that imports these libraries will no longer work from 
> Python 3.12, which is currently in Trixie.
> 
> Since python-pysnmp4 uses either of these Python libraries, please 
> prepare for this removal and migrate away from them.
> 
> See this link for more details: 
> https://peps.python.org/pep-0594/#deprecated-modules

In pysnmp/carrier/asyncore/base.py at line 9 the now missing library
asyncore is to get imported, what does not work anymore. The
autopkgtest of package changeme, which uses python3-pysnmp4, fails
therefore [1].

Adding package python3-pyasyncore as a dependency to python3-pysnmp4
fixes the issue. Please see attached patch. 

[1] https://salsa.debian.org/pkg-security-team/changeme/-/jobs/7269586#L762
-- 
GPG Fingerprint
3DF5 E8AA 43FC 9FDF D086 F195 ADF5 0EDA F8AD D585
diff --git a/debian/control b/debian/control
index d30c922..4d92e64 100644
--- a/debian/control
+++ b/debian/control
@@ -23,6 +23,7 @@ Testsuite: autopkgtest-pkg-python
 Package: python3-pysnmp4
 Architecture: all
 Depends: ${python3:Depends},
+         python3-pyasyncore,
 	 ${misc:Depends}
 Description: Python SNMP library for agents and managers (Python 3 module)
  This  is a  Python implementation  of SNMP  v.1/v.2c/v.3  engine. Its

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to