Description of problem: Trying to import cmdgen from pysnmp.entity.rfc3413.oneliner fails because the version of pyasn1 shipped with RHEL6 is too old. The code that it requires, pyasn1.compat.octets, was introduced in version 0.1.1 of pyasn1. Version-Release number of selected component (if applicable): pysnmp-4.2.4-1.el6.noarch.rpm python-pyasn1-0.0.12a-1.el6.noarch.rpm How reproducible: Steps to Reproduce: 1. start python in RHEL6 with pysnmp installed 2. from pysnmp.entity.rfc3413.oneliner import cmdgen Actual results: File "/p4/vxtest/framework/vxtf/netmodel/machine_apps/snmp.py", line 12, in <module> from pysnmp.entity.rfc3413.oneliner import cmdgen File "/usr/lib/python2.6/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "/usr/lib/python2.6/site-packages/pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "/usr/lib/python2.6/site-packages/pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null ImportError: No module named compat.octets Expected results: Additional info:
pysnmp-4.2.5-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/pysnmp-4.2.5-2.el6
pysnmp-4.2.5-2.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/pysnmp-4.2.5-2.el7
Package pysnmp-4.2.5-2.el7: * should fix your issue, * was pushed to the Fedora EPEL 7 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing pysnmp-4.2.5-2.el7' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-2831/pysnmp-4.2.5-2.el7 then log in and leave karma (feedback).
It still doesn't work on EPEL 6. $ yum info pysnmp (shortened) Name : pysnmp Version : 4.2.5 Release : 2.el6 From repo : epel-testing $ yum info python-pyasn1 (shortened) Name : python-pyasn1 Version : 0.0.12a Release : 1.el6 From repo : base $ cat /etc/centos-release CentOS release 6.5 (Final) $ python2 -c "from pysnmp.entity.rfc3413.oneliner import cmdgen" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.6/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "/usr/lib/python2.6/site-packages/pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "/usr/lib/python2.6/site-packages/pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null ImportError: No module named compat.octets
pysnmp-4.2.5-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
The problem hasn't been fixed on EPEL 6.
pysnmp-4.2.5-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
I can still reproduce this problem, shown here using the same one-liner as previously in this bug. (My real use case is a Munin plugin that imports the same module.) $ rpm -q pysnmp pysnmp-4.2.5-2.el6.noarch $ rpm -q python-pyasn1 python-pyasn1-0.0.12a-1.el6.noarch $ cat /etc/centos-release CentOS release 6.7 (Final) $ python -c "from pysnmp.entity.rfc3413.oneliner import cmdgen" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.6/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "/usr/lib/python2.6/site-packages/pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "/usr/lib/python2.6/site-packages/pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null ImportError: No module named compat.octets
pysnmp-4.3.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-7d4fb5ec3c
pysnmp-4.3.1-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-05e4360b60
pysnmp-4.3.1-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7d4fb5ec3c
pysnmp-4.3.1-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-05e4360b60
I can still reproduce in Centos 6.6. $ cat /etc/centos-release CentOS release 6.6 (Final) $ rpm -q python-pyasn1 python-pyasn1-0.0.12a-1.el6.noarch $ rpm -q pysnmp pysnmp-4.2.5-2.el6.noarch $ python -c "from pysnmp.entity.rfc3413.oneliner import cmdgen" Traceback (most recent call last): File "<string>", line 1, in <module> File "pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null $
Dear all, Same here, we are also stuck with the same error on CentOS 6.5. In order to illustrate I will reuse "Tomas M" Python CLI sample. Nevertheless, the same error (ImportError: No module named compat.octets) appears in our project. $ cat /etc/centos-release CentOS release 6.5 (Final) $ rpm -q python-pyasn1 python-pyasn1-0.0.12a-1.el6.noarch $ rpm -q pysnmp pysnmp-4.2.5-2.el6.noarch $ python -c "from pysnmp.entity.rfc3413.oneliner import cmdgen" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.6/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "/usr/lib/python2.6/site-packages/pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "/usr/lib/python2.6/site-packages/pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null ImportError: No module named compat.octets $ Regards,
pysnmp-4.3.5-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e15010ac65
pysnmp-4.3.5-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-764ca2d3fc
pysnmp-4.3.5-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e15010ac65
pysnmp-4.3.5-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-764ca2d3fc
pysnmp-4.3.5-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
pysnmp-4.3.5-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
Reopening as it has not been fixed on RHEL 6 I have tried with the "fixed" verson of pysnmp-4.2.5-2.el6.noarch.rpm sclark@desk-sclark CHROOT:~/pkg/vxtf $ python -c "from pysnmp.entity.rfc3413.oneliner import cmdgen" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.6/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "/usr/lib/python2.6/site-packages/pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "/usr/lib/python2.6/site-packages/pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null ImportError: No module named compat.octets
Still broken in EPEL for EL6, please look into the issue again. -bash-4.1$ yum info pysnmp Loaded plugins: security Installed Packages Name : pysnmp Arch : noarch Version : 4.2.5 Release : 2.el6 Size : 1.8 M Repo : installed From repo : epel Summary : SNMP engine written in Python URL : http://pysnmp.sourceforge.net/ License : BSD Description : This is a Python implementation of SNMP v.1/v.2c engine. It's : general functionality is to assemble/disassemble SNMP messages : from/into given SNMP Object IDs along with associated values. : PySNMP also provides a few transport methods specific to TCP/IP : networking. -bash-4.1$ python -c "from pysnmp.entity.rfc3413.oneliner import cmdgen" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.6/site-packages/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 1, in <module> from pysnmp.entity import engine, config File "/usr/lib/python2.6/site-packages/pysnmp/entity/engine.py", line 2, in <module> from pysnmp.proto.rfc3412 import MsgAndPduDispatcher File "/usr/lib/python2.6/site-packages/pysnmp/proto/rfc3412.py", line 3, in <module> from pyasn1.compat.octets import null ImportError: No module named compat.octets
This message is a reminder that EPEL 6 is nearing its end of life. Fedora will stop maintaining and issuing updates for EPEL 6 on 2020-11-30. It is our policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of 'el6'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later EPEL version. Thank you for reporting this issue and we are sorry that we were not able to fix it before EPEL 6 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
This message is a reminder that EPEL 6 is nearing its end of life. Fedora will stop maintaining and issuing updates for EPEL 6 on 2020-11-30. It is policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of 'el6'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later EPEL version. Thank you for reporting this issue and we are sorry that we were not able to fix it before EPEL 6 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version, you are encouraged to change the 'version' to a later version prior this bug is closed as described in the policy above.
EPEL el6 changed to end-of-life (EOL) status on 2020-11-30. EPEL el6 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of EPEL please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.