1

Topic: SimError in NWare 1.6.1f ?

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.

Last edited by JianyeZ (2011-02-21 07:28:52)

Life is rough so you gotta be tough.
                                      -Johnny Cash
  smile

2

Re: SimError in NWare 1.6.1f ?

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.

Josh Millward
Burnt Orange Studios

3

Re: SimError in NWare 1.6.1f ?

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.

Last edited by JianyeZ (2011-02-23 05:01:45)

Life is rough so you gotta be tough.
                                      -Johnny Cash
  smile

4

Re: SimError in NWare 1.6.1f ?

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.