[IPython-dev] igrid crash on ipwd (windows)

Walter Dörwald walter@livinglogic...
Thu Apr 26 15:18:49 CDT 2007


Ville M. Vainio wrote:
> [Console]|5> from ipipe import *
> [Console]|6> ipwd
> -----------> ipwd()
> 
> ......
> 
> C:\Python25\Lib\site-packages\IPython\Extensions\igrid.py in __init__(self, pane
> l, input, *attrs)
>     218         fontsize = 9
>     219         self.input = input
> --> 220         self.table = IGridTable(self.input, fontsize, *attrs)
>     221         self.SetTable(self.table, True)
>     222         self.SetSelectionMode(wx.grid.Grid.wxGridSelectRows)
> 
> C:\Python25\Lib\site-packages\IPython\Extensions\igrid.py in __init__(self, inpu
> t, fontsize, *attrs)
>     129         self._sizing = False
>     130         self.fontsize = fontsize
> --> 131         self._fetch(1)
>     132
>     133     def GetAttr(self, *args):
> 
> C:\Python25\Lib\site-packages\IPython\Extensions\igrid.py in _fetch(self, count)
> 
>     177             except Exception, exc:
>     178                 have += 1
> --> 179                 self._append(item)
>     180                 self.iterator = None
>     181                 break
> 
> <type 'exceptions.UnboundLocalError'>: local variable 'item' referenced before a
> ssignment

This should be fixed in r2279. Can you try again?

(Of course ipwd won't work on Windows anyway, i.e. you'll probably get a 
browser which displays the AttributeError).

Servus,
    Walter


More information about the IPython-dev mailing list