Fresh install of snmpfwd crashes dependent on pysnmp.carrier.asynsock #153
Labels
bug
Something isn't working
priority:low
Low priority items.
triage
New issues that need to be sorted out.
Expected behavior
Installed according to https://docs.lextudio.com/pysnmp/v7.1/ documentation..
python3.11 -m pip install --proxy="http://172.30.18.2:3128/" --upgrade pip
1113 pip install --proxy="http://172.30.18.2:3128/" pysnmp
1114 pip install --proxy="http://172.30.18.2:3128/" snmpclitools
1115 pip install --proxy="http://172.30.18.2:3128/" snmpfwd
Cli tools where succesfully installed. snmpget works correctly against a test box using snmpv2
(pysnmp.11) [root@logger bin]# snmpget -v2c -On -c grafana linux-test-box .1.3.6.1.4.1.2021.100.6.0
Press Ctrl-C to stop.
1.3.6.1.4.1.2021.100.6.0 = OctetString: '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-static' '--enable-shared' '--enable-as-needed' '--enable-blumenthal-aes' '--enable-embedded-perl' '--enable-ipv6' '--enable-local-smux' '--enable-mfd-rewrites' '--enable-ucd-snmp-compatibility' '--disable-des' '--sysconfdir=/etc' '--with-cflags=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protect
^CShutting down...
Environment
(pysnmp.11) [root@logger bin]# python -V
Python 3.11.5
(pysnmp.11) [root@logger bin]# pip list
Package Version
certifi 2024.8.30
cffi 1.17.1
charset-normalizer 3.4.0
cryptography 44.0.0
idna 3.10
Jinja2 3.1.4
MarkupSafe 3.0.2
pip 24.3.1
ply 3.11
pyasn1 0.6.1
pycparser 2.22
pysmi 1.5.9
pysnmp 6.2.6
pysnmpcrypto 0.0.4
requests 2.32.3
setuptools 65.5.1
snmpclitools 0.7.2
snmpfwd 0.4.5
urllib3 2.2.3
Continue according to https://docs.lextudio.com/snmpfwd/
snmpfwd-server --help
I expect to see something like
$ snmpfwd-server.py --help
Usage: snmpfwd-server.py
[--help]
[--version]
[--debug-snmp=]
[--debug-asn1=]
[--daemonize]
[--process-user=] [--process-group=]
[--pid-file=]
[--logging-method=]
[--log-level=]
[--config-file=]
as in the documents
Actual behavior
What actually happens is
(pysnmp.11) [root@logger bin]# snmpfwd-server --help
Traceback (most recent call last):
File "/root/pysnmp.11/bin/snmpfwd-server", line 5, in
from snmpfwd.scripts.snmpfwdserver import main
File "/root/pysnmp.11/lib64/python3.11/site-packages/snmpfwd/scripts/snmpfwdserver.py", line 19, in
from pysnmp.carrier.asynsock.dgram import udp
ModuleNotFoundError: No module named 'pysnmp.carrier.asynsock'
Detailed steps
Install snmpfwd thourgh pip
python3.11 -m venv pysnmp.11
python3.11 -m pip install --proxy="http://172.30.18.2:3128/" --upgrade pip
pip install --proxy="http://172.30.18.2:3128/" pysnmp
pip install --proxy="http://172.30.18.2:3128/" snmpclitools
pip install --proxy="http://172.30.18.2:3128/" snmpfwd
Attempt to run help
snmpfwd-server.py --help
Python package information
snmpfwd 0.4.5
Operating system information
RHEL 9.3
Python information
3.11.5
(Optional) Contents of your test script
No response
Relevant log output
The text was updated successfully, but these errors were encountered: