Hi
I'm using pysnmp 4.1.1.4a (yes, I know there's a newer version but it has the same behavior) and py2exe. When I execute a pysnmp oneliner, like this:
errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().nextCmd(
cmdgen.CommunityData('my-agent', 'public', 0),
cmdgen.UdpTransportTarget((self.IPaddress, self.Port)),
self.keydict[ key ][0]
I get this output:
File "pysnmp\entity\rfc3413\oneliner\cmdgen.pyc", line 116, in __init__
File "pysnmp\entity\engine.pyc", line 16, in __init__
File "pysnmp\proto\rfc3412.pyc", line 16, in __init__
File "pysnmp\smi\builder.pyc", line 143, in __init__
File "pysnmp\smi\builder.pyc", line 35, in init
File "pysnmp\smi\builder.pyc", line 80, in _init
ImportError: No module named mibs.instances
Pysnmp clains to be py2exe friendly. Anyone got a solution for this? When I compiled the application, I did not specify any extra options. My program already uses telnet, serial and other packages successfully. I know that pysnmp did some tricks in code that may have fooled py2exe, but is there a workaround?
Thanks
Kelly