Package: python3-pysnmp4
Version: 4.4.12-4
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where
appropriate ***
* What led up to the situation?
Upgrade system from bookworm to trixie.
* What was the outcome of this action?
We use pysnmp in a nagios check. This check started to fail after the
upgrade with the following traceback:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pysnmp/smi/builder.py", line 18,
in <module>
PY_MAGIC_NUMBER = importlib.util.MAGIC_NUMBER
^^^^^^^^^^^^^^
AttributeError: module 'importlib' has no attribute 'util'
It seems the library tries to import importlib.util, but this no longer
exists in newer python versions.
This seems similar to https://github.com/etingof/pysnmp/issues/451
This seems to make the package unusable. My script is using the
pysnmp.hlapi module.
Also, the URL of the homepage listed in the package details
(http://pysnmp.sourceforge.net/), redirects me to a phishing site.
* What outcome did you expect instead?
Script keeps working after upgrade
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 13.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.43+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-pysnmp4 depends on:
ii python3 3.13.5-1
ii python3-pyasn1 0.6.1-1
ii python3-pyasyncore 1.0.2-3
ii python3-pycryptodome 3.20.0+dfsg-3
ii python3-pysmi 0.3.4-3
python3-pysnmp4 recommends no packages.
python3-pysnmp4 suggests no packages.
-- no debconf information