Re: [pysnmp-users] pyasn1 0.2.3 causes TypeError: setComponentByType() got multiple values for argu
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2017-02-28 19:47:45
|
Hi Tomas, That’s going to be fixed with an upcoming pysnmp release. Meanwhile, besides downgrading pyasn1 as you’ve suggested, alternatively, you could take pysnmp from git master (https://github.com/etingof/pysnmp <https://github.com/etingof/pysnmp>). > On 28 Feb 2017, at 11:24, Thomas Juberg <tho...@gm...> wrote: > > 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 <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 |