Re: net-snmp python binding bug

2010-06-30 Thread Wes Hardaker
> On Wed, 30 Jun 2010 13:08:43 -0700, "Mike Ayers" > said: >> from sys import stderr MA> Only the latter worked for me. I've done just this in the repository; thanks for pointing it out. -- Wes Hardaker Cobham Analytic Solutions ---

RE: net-snmp python binding bug

2010-06-30 Thread Mike Ayers
> From: Omer Zak [mailto:w...@zak.co.il] > Sent: Wednesday, June 30, 2010 12:23 PM I defer to wisdom, as I think there have been some changes in python since last I used it, or I'm remembering the wrong language... > Looks like you need to either change stderr to sys.stderr, or to add at

Re: net-snmp python binding bug

2010-06-30 Thread Omer Zak
Looks like you need to either change stderr to sys.stderr, or to add at the beginning: from sys import stderr Either change will get you to use a defined variable (which represents the error chanel). --- Omer On Wed, 2010-06-30 at 22:35 +0800, jessinio liang wrote: > hi, every body. > > when I

Re: net-snmp python binding bug

2010-06-30 Thread jessinio liang
Do you meaning: File "netsnmp/client.py", line 38 print stderr "ERROR: unknown key", key ?? On Thu, Jul 1, 2010 at 12:23 AM, Mike Ayers wrote: > > From: jessinio liang [mailto:jessi...@gmail.com] > > Sent: Wednesday, June 30, 2010 7:36 AM > > > file : ./python/netsnmp/client.py > > > >

RE: net-snmp python binding bug

2010-06-30 Thread Mike Ayers
> From: jessinio liang [mailto:jessi...@gmail.com] > Sent: Wednesday, June 30, 2010 7:36 AM > file : ./python/netsnmp/client.py > > code: > 34 for key in keys: > 35 if sessArgs.has_key(key): > 36 sessArgs[key] = kargs[key] > 37 else: > 38 print std

net-snmp python binding bug

2010-06-30 Thread jessinio liang
hi, every body. when I using net-snmp python binding, I found a bug: my test code: 1 import netsnmp 2 import sys 3 import os 4 5 o = netsnmp.Varbind("sysDescr") 6 netsnmp.snmpwalk( NotInList = o, Version = 2, DestHost="localhost", Community="public") when I run the code, python comp