You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following line of code fails if module pyasn1 is being processed:
if"version"indandd["version"]
exception thrown is pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("__nonzero__" attribute looked up)
This problem came from package pysnmp which imports pyasn1
Snippet to reproduce
You can reproduce this problem with a small snippet
import sys
from pysnmp.entity.rfc3413.oneliner import cmdgen
m = sys.modules
r = {}
for k in m:
if m[k]:
d = m[k].__dict__
if "version" in d and d["version"]:
r[k] = d["version"]
elif "__version__" in d and d["__version__"]:
r[k] = d["__version__"]
else:
r[k] = "builtin"
print(r)
The text was updated successfully, but these errors were encountered:
Basically, you can find the suspect here:
Following line of code fails if module
pyasn1
is being processed:exception thrown is
pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("__nonzero__" attribute looked up)
This problem came from package
pysnmp
which importspyasn1
Snippet to reproduce
You can reproduce this problem with a small snippet
The text was updated successfully, but these errors were encountered: