Donate Share

Python SNMP framework

Tracker: Patches

5 64-bit fix - ID: 2859457
Last Update: Settings changed ( elie )

Version: pysnmp 4.1.12a
Python: Python 2.5.4

The included example v3arch/agent/cmdrsp.py breaks with the following
exception when run on a 64-bit system:

Traceback (most recent call last):
File "./cmdrsp.py", line 10, in <module>
snmpEngine = engine.SnmpEngine()
File
"/home/bclark/.virtualenvs/snmp/lib/python2.5/site-packages/pysnmp/entity/e
ngine.py", line 16, in __init__
self.msgAndPduDsp = MsgAndPduDispatcher()
File
"/home/bclark/.virtualenvs/snmp/lib/python2.5/site-packages/pysnmp/proto/rf
c3412.py", line 23, in __init__
'SNMP-TARGET-MIB', 'SNMP-USER-BASED-SM-MIB'
File
"/home/bclark/.virtualenvs/snmp/lib/python2.5/site-packages/pysnmp/smi/buil
der.py", line 197, in loadModules
modData, sfx = mibSource.read(modName)
File
"/home/bclark/.virtualenvs/snmp/lib/python2.5/site-packages/pysnmp/smi/buil
der.py", line 47, in read
pycTime = struct.unpack('L', pycData[:4])[0]
File "/usr/lib/python2.5/struct.py", line 87, in unpack
return o.unpack(s)
struct.error: unpack requires a string argument of length 8


Byron Clark ( byron_clark ) - 2009-09-15 18:07

5

Closed

Accepted

Ilya Etingof

None

None

Public


Comment ( 1 )

Date: 2009-09-28 07:23
Sender: elieProject Admin

Fixed at CVS.


Attached File ( 1 )

Filename Description Download
pysnmp-64bit.patch Correct fix, forces little endian and standard size. Download

Changes ( 8 )

Field Old Value Date By
close_date - 2009-09-28 07:23 elie
resolution_id None 2009-09-28 07:23 elie
assigned_to nobody 2009-09-28 07:23 elie
allow_comments 1 2009-09-28 07:23 elie
status_id Open 2009-09-28 07:23 elie
File Deleted 343078: 2009-09-15 18:23 byron_clark
File Added 343084: pysnmp-64bit.patch 2009-09-15 18:23 byron_clark
File Added 343078: pysnmp-64bit.patch 2009-09-15 18:07 byron_clark