[pysnmp-users] pyasn1 0.2.3 causes TypeError: setComponentByType() got multiple values for argument
Brought to you by:
elie
From: Thomas J. <tho...@gm...> - 2017-02-28 10:24:08
|
Hi, pysnmp 0.2.3 was released on february 25th and seems to break pysnmp. Using the quickstart script to test from http://pysnmp.sourceforge.net/quick-start.html#fetch-snmp-variable Tested on python 3.6 and 2.7.13 with the same error: Traceback (most recent call last): File "v1-get1.py", line 24, in <module> ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr', 0))) File "/home/tjuberg/.local/lib/python3.6/site-packages/pysnmp/hlapi/asyncore/sync/cmdgen.py", line 111, in getCmd lookupMib=options.get('lookupMib', True))) File "/home/tjuberg/.local/lib/python3.6/site-packages/pysnmp/hlapi/asyncore/cmdgen.py", line 131, in getCmd options.get('cbFun'), options.get('cbCtx')) File "/home/tjuberg/.local/lib/python3.6/site-packages/pysnmp/entity/rfc3413/cmdgen.py", line 214, in sendVarBinds v2c.apiPDU.setVarBinds(reqPDU, varBinds) File "/home/tjuberg/.local/lib/python3.6/site-packages/pysnmp/proto/api/v1.py", line 136, in setVarBinds varBindList.getComponentByPosition(idx), varBind File "/home/tjuberg/.local/lib/python3.6/site-packages/pysnmp/proto/api/v1.py", line 43, in setOIDVal verifyConstraints=False) TypeError: setComponentByType() got multiple values for argument 'verifyConstraints' Downgrading pyasn1 to 0.2.2 resolves the issue. Regards, -Thomas Juberg |