File "/venv27/lib/python2.7/site-packages/pysnmp/proto/rfc1155.py", line 96, in cloneFromName
raise SmiError('unknown NetworkAddress type %r' % (kind,))
NameError: global name 'SmiError' is not defined
So I added one to the scripts
from pysnmp.smi.error import SmiError
Problem solved
http://snmplabs.com/pysnmp/examples/hlapi/asyncore/sync/manager/cmdgen/mib-tweaks.html i read the document, but exec the 'Preload PySNMP MIBs' scripts,error
File "/venv27/lib/python2.7/site-packages/pysnmp/proto/rfc1155.py", line 96, in cloneFromName raise SmiError('unknown NetworkAddress type %r' % (kind,)) NameError: global name 'SmiError' is not defined So I added one to the scripts from pysnmp.smi.error import SmiError Problem solved