-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MibBuilder is not able to load BITS data structure, gives error #35
Comments
Oh, that seems to be a bug in |
...on the second thought, may be it's actually not so much a bug - may be it's just that you use incompatible version of pyasn1. Could you please try to run original pysnmp with the pyasn1 version matching its |
Using pyasn1 0.2.3 did not helped.
Where the DEFVAL contains the list. I am not MIB expert so not sure if its a valid entry or not. but this gets compiled as And we get error There is another issue I observed while parsing where syntax like this |
With latest pysmi issue does not exists (with 4.4.4) so most probaly updating requirement.txt to mention latest pysmi should work. |
I run the same issue, for me it looks like there is dependency to the python version ... sudo python3 TA/testExecutor/tools/tdcnSnmpWikiTrapReceiver.py /tmp/tdcnSnmpWikiTrapReceiver.log During handling of the above exception, another exception occurred: Traceback (most recent call last): We will upgrade from 16.4(Python 3.5) to 18.4(Python3.6) in the near future. I will share the results ... |
upgrading pyasn1 from 0.2.3 to 0.4.4 solved the issue on my side :-) |
This is the MIB entry where I am getting error
hm2DHCPServerPoolFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 248, 11, 91, 1, 1, 1, 5, 1, 5), Bits().clone(namedValues=NamedValues(("interface", 0), ("mac", 1), ("gateway", 2), ("clientid", 3), ("remoteid", 4), ("circuitid", 5), ("dynamic", 6), ("vlanid", 7)))).setMaxAccess("readcreate")
The error which I am getting is
On some debugging I found that in rfc 1902.py for Bits class the init is like
So its calling octet string constructer which would be basically init of univ.OctetString
which does not have namedValue as keyword args, hence the error
The text was updated successfully, but these errors were encountered: