[Python-modules-team] Bug#382350: ipython: problem with ipipe

Frederic-Emmanuel PICCA picca at synchrotron-soleil.fr
Thu Aug 10 14:17:46 UTC 2006


Package: ipython
Severity: normal


hello

To reproduce this bug
start an ipython session
type: 
in[1]: from ipipe import *
in[2]: ils

---------------------------------------------------------------------------
exceptions.NameError                                 Traceback (most
recent call last)

/home/picca/<ipython console> 

/usr/lib/python2.3/site-packages/IPython/Prompts.py in __call__(self,
arg)
    512 
    513             # and now call a possibly user-defined print
mechanism
--> 514             manipulated_val = self.display(arg)
    515             
    516             # user display hooks can change the variable to be
stored in

/usr/lib/python2.3/site-packages/IPython/Prompts.py in _display(self,
arg)
    536         """
    537 
--> 538         return self.shell.hooks.result_display(arg)
    539 
    540     # Assign the default display method:

/usr/lib/python2.3/site-packages/IPython/hooks.py in __call__(self,
*args, **kw)
    131             #print "prio",prio,"cmd",cmd #dbg
    132             try:
--> 133                 ret = cmd(*args, **kw)
    134                 return ret
    135             except ipapi.TryNext, exc:

/usr/lib/python2.3/site-packages/IPython/Extensions/ipipe.py in
displayhook(self, obj)
   1822             obj = obj | defaultdisplay
   1823         if isinstance(obj, Display):
-> 1824             return obj.display()
   1825         else:
   1826             raise ipapi.TryNext

/usr/lib/python2.3/site-packages/IPython/Extensions/ibrowse.py in
display(self)
   1391                         break # Redisplay
   1392         self.scr = None
   1393 
   1394     def display(self):
-> 1395         return curses.wrapper(self._dodisplay)

/home/picca/curses/wrapper.py in wrapper(func, *rest)

/usr/lib/python2.3/site-packages/IPython/Extensions/ibrowse.py in
_dodisplay(self, scr)
   1119         self.levels = []
   1120         # enter the first level
-> 1121         self.enter(self.input, ipipe.xiter(self.input,
"default"), *self.attrs)
   1122 
   1123         self._calcheaderlines(None)

/usr/lib/python2.3/site-packages/IPython/Extensions/ibrowse.py in
enter(self, item, mode, *attrs)
    703                 item,
    704                 iterator,
--> 705                 self.scrsizey-1-self._headerlines-2,
    706                 *attrs
    707             )

/usr/lib/python2.3/site-packages/IPython/Extensions/ibrowse.py in
__init__(self, browser, input, iterator, mainsizey, *attrs)
    239 
    240         self.fetch(mainsizey)
--> 241         self.calcdisplayattrs()
    242         # formatted attributes for the items on screen
    243         # (i.e.
self.items[self.datastarty:self.datastarty+self.mainsizey])

/usr/lib/python2.3/site-packages/IPython/Extensions/ibrowse.py in
calcdisplayattrs(self)
    262         # Calculate which attributes are available from the
objects that are
    263         # currently visible on screen (and store it in
``self.displayattrs``)
--> 264         attrnames = set()
    265         # If the browser object specifies a fixed list of
attributes,
    266         # simply use it.

NameError: global name 'set' is not defined



Have a nice day.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=fr_FR.UTF-8 at euro, LC_CTYPE=fr_FR.UTF-8 at euro (charmap=UTF-8)




More information about the Python-modules-team mailing list