Package: snimpy
Version: 0.2.1-1
Severity: important
Tags: patch

Hi,

if ipython is not installed, snimpy fails with the following backtrace:

Traceback (most recent call last):
  File "/usr/bin/snimpy", line 23, in <module>
    main.interact()
  File "/var/lib/python-support/python2.5/snimpy/main.py", line 85, in interact
    if IPShellEmbed and conf.ipython:
NameError: global name 'IPShellEmbed' is not defined

The cause is a simple typo:

--- snimpy/main.py.orig 2008-10-28 22:09:08.000000000 +0100
+++ snimpy/main.py      2008-10-28 22:09:16.000000000 +0100
@@ -46,7 +46,7 @@
 try:
     from IPython.Shell import IPShellEmbed
 except ImportError:
-    IPShellEmebed = None
+    IPShellEmbed = None

 import manager
 from config import conf

Cheers, Til


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

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages snimpy depends on:
ii  libc6                     2.7-14         GNU C Library: Shared libraries
ii  libsmi2ldbl               0.4.7+dfsg-0.1 A library to access SMI MIB inform
ii  libsnmp15                 5.4.1~dfsg-10  SNMP (Simple Network Management Pr
ii  libssl0.9.8               0.9.8g-13      SSL shared libraries
ii  python                    2.5.2-2        An interactive high-level object-o
ii  python-support            0.8.4          automated rebuilding support for P

snimpy recommends no packages.

Versions of packages snimpy suggests:
pn  ipython                       <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to