Home / Troubleshooting & Faults

SimError in NWare 1.6.1f ?

CommunityMartin AI Resolved
Started by JianyeZ · 15y ago · 18 views · 3 replies
15y ago

I use pysnmp in "Python Live " device . Some code as follows:
from pysnmp.entity.rfc3413.oneliner import cmdgen

errorIndication,errorStatus,errorIndex,varBinds = cmdgen.CommandGenerator().getCmd(
cmdgen.CommunityData('my-angent','private',0),
cmdgen.UdpTransportTarget(("192.168.0.102",161)),
(1,3,6,1,4,1,2680,1,1,6,1,1,2,1)
)
ERROR :
SimError: MIB file "SNMPv2-MIB.py[co]"not found in search path
But it runs well in python 2.7 .
help! I don't konw why.

15y ago

It is entirely possible that this has something to do with the version of Python you are using.
The NION and nControl platform support Python 2.4 and Python's updates are not always backwards compatible.
Unfortunately, I'm personally not really well versed in the intricate details of dealing with Python, so I can not offer anything more than this very generalized comment about possible version incompatibilities.

15y ago

After testing, I found that pysnmp version was incorrect. Maybe pysnmp in NWare1.6.1f is not for python2.4,but higher than 2.4.
I think it is a bug in NWare1.6.1f and need to use pysnmp for python2.4 to fix it in next NWare version.

15y ago

We are investigating, thanks for the report.  We will be making some changes to the python libraries in the next release, we will be sure to include this.

Log in to reply to this topic.