[Pkg-net-snmp-devel] Bug#509562: libsnmp-python: Annoying debug information in netsnmp.snmpwalk()

Sven Velt sven at velt.de
Tue Dec 23 10:39:01 UTC 2008


Package: libsnmp-python
Version: 5.4.1~dfsg-12
Severity: important

Hi!

There is some debug information/code (at least I think so) left in
/usr/share/pyshared/netsnmp/client.py which breaks my application.

Small patch (also attached):

---------- snip ----------
--- /usr/share/pyshared/netsnmp/client.py.orig	2006-11-03 17:40:20.000000000 +0100
+++ /usr/share/pyshared/netsnmp/client.py	2008-12-23 10:57:25.710751628 +0100
@@ -234,8 +234,6 @@
                 var_list.append(arg)
             else:
                 var_list.append(Varbind(arg))
-    for var in var_list:
-        print "  ",var.tag, var.iid, "=", var.val, '(',var.type,')'
     res = sess.walk(var_list)
     return res

---------- snip ----------

Example:
---------- snip ----------
svelt at schnuffi ~ % python
Python 2.5.2 (r252:60911, Nov 14 2008, 19:46:32)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import netsnmp
>>> netsnmp.snmpwalk('sysDescr', Version=1, Community='public', DestHost='localhost')
   sysDescr  = None ( None )
   ('Linux schnuffi 2.6.28-rc3-32-toi #3 SMP Wed Nov 12 16:05:26 CET 2008 i686',)
>>> foo = netsnmp.snmpwalk('sysDescr', Version=1, Community='public', DestHost='localhost')
   sysDescr  = None ( None )
---------- snip ----------

The "sysDescr  = None ( None )" lines shouldn't be there.

As you can see in
http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-snmp/python/netsnmp/client.py?revision=16858&view=markup
the bug is (as of today) not fixed upstream.

Thanks!


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-32-toi (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsnmp-python depends on:
ii  libc6                      2.7-16        GNU C Library: Shared libraries
ii  libsnmp15                  5.4.1~dfsg-12 SNMP (Simple Network Management Pr
ii  python                     2.5.2-3       An interactive high-level object-o
ii  python-central             0.6.8         register and build utility for Pyt

libsnmp-python recommends no packages.

libsnmp-python suggests no packages.

-- no debconf information

--
Leukämie     -> http://de.wikipedia.org/wiki/Leuk%C3%A4mie
Heilung      -> http://de.wikipedia.org/wiki/Knochenmark#Knochenmarkspende
Typisierung  -> http://www.knochenmarkspende.de/html/reg_akb.php
Warum&Fragen -> sven at velt.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsnmp-python_client.py.diff
Type: text/x-diff
Size: 433 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20081223/30244299/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20081223/30244299/attachment.pgp 


More information about the Pkg-net-snmp-devel mailing list