[wxPython-users] Application Breaks Using Python-2.5

Robin Dunn robin at alldunn.com
Mon Nov 12 14:52:59 PST 2007


Rich Shepard wrote:
>   In preparation for a business trip I'm trying to get my application
> running on my notebook which has Slackware-12.0, Python2.5, and
> wxPython-2.8.6.1 installed. I see that ../site-packages has a slightly
> different structure from that of Python2.4, and there's a directory for
> wx-2.8-gtk2-unicode instead of the former -ascii directory.
> 
>   Anyway, when I try to run my application I get this error:
> 
> Traceback (most recent call last):
>   File "eikos.py", line 277, in <module>
>     frame_1 = MainFrame(None, -1, "")
>   File "eikos.py", line 66, in __init__
>     self.mainNB = MyNotebook(self, wx.ID_ANY, style=0)
>   File "eikos.py", line 35, in __init__
>     self.pane_7 = modData(self, wx.ID_ANY)
>   File "/home/rshepard/projects/eikos/dataPage.py", line 125, in __init__
>     self.dataGrid.SetColSize(i, 125)
>   File 
> "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/grid.py", line 
> 1703, in SetColSize
>     return _grid.Grid_SetColSize(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "col >= 0 && col < m_numCols" 
> failed at ../src/generic/grid.cpp(10338) in SetColSize(): invalid column 
> index

The error is telling you that the requested col doesn't exist.  Are you 
sure that i is less than the number of columns in the grid?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list