Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1145004 - Later version of pyasn1 needed by pysnmp
Summary: Later version of pyasn1 needed by pysnmp
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: pysnmp
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1460593
TreeView+ depends on / blocked
 
Reported: 2014-09-22 08:13 UTC by stephen.a.clark
Modified: 2023-09-12 00:40 UTC (History)
6 users (show)

Fixed In Version: pysnmp-4.2.5-2.el7 pysnmp-4.2.5-2.el6 pysnmp-4.3.5-1.fc25 pysnmp-4.3.5-1.fc26
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1460593 (view as bug list)
Environment:
Last Closed: 2020-11-30 15:03:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description stephen.a.clark 2014-09-22 08:13:35 UTC
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:

Comment 1 Fedora Update System 2014-09-23 10:33:21 UTC
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

Comment 2 Fedora Update System 2014-09-23 10:59:36 UTC
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

Comment 3 Fedora Update System 2014-09-25 00:19:32 UTC
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).

Comment 4 Felix Kaiser 2014-10-12 12:54:39 UTC
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

Comment 5 Fedora Update System 2014-10-20 15:40:29 UTC
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.

Comment 6 Felix Kaiser 2014-10-20 16:06:07 UTC
The problem hasn't been fixed on EPEL 6.

Comment 7 Fedora Update System 2015-10-18 03:24:01 UTC
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.

Comment 8 Andreas Johansson 2015-11-27 15:21:30 UTC
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

Comment 9 Fedora Update System 2016-01-28 12:55:34 UTC
pysnmp-4.3.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-7d4fb5ec3c

Comment 10 Fedora Update System 2016-01-28 12:59:47 UTC
pysnmp-4.3.1-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-05e4360b60

Comment 11 Fedora Update System 2016-01-29 01:52:49 UTC
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

Comment 12 Fedora Update System 2016-01-29 06:54:11 UTC
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

Comment 13 Tomas M 2016-02-03 14:37:34 UTC
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
$

Comment 14 a.beaugy 2016-11-04 07:08:24 UTC
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,

Comment 15 Fedora Update System 2017-05-11 13:04:05 UTC
pysnmp-4.3.5-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e15010ac65

Comment 16 Fedora Update System 2017-05-11 13:04:30 UTC
pysnmp-4.3.5-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-764ca2d3fc

Comment 17 Fedora Update System 2017-05-12 13:36:52 UTC
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

Comment 18 Fedora Update System 2017-05-13 01:11:17 UTC
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

Comment 19 Fedora Update System 2017-05-27 03:00:32 UTC
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.

Comment 20 Fedora Update System 2017-06-09 18:54:06 UTC
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.

Comment 21 stephen.a.clark 2017-06-22 11:20:54 UTC
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

Comment 22 Stijn Tintel 2019-02-19 15:04:08 UTC
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

Comment 23 Ben Cotton 2020-11-05 16:52:32 UTC
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.

Comment 24 Ben Cotton 2020-11-05 16:55:10 UTC
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.

Comment 25 Ben Cotton 2020-11-30 15:03:32 UTC
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.

Comment 26 Red Hat Bugzilla 2023-09-12 00:40:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.