Export to GitHub

gui2exe - issue #28

GUI2EXE does not work with wxPython 2.9


Posted on Dec 29, 2011 by Swift Elephant

What steps will reproduce the problem? 1. Install python with wxpython 2.9 2. open gui2exe 3. try and create a project.

What is the expected output? What do you see instead? I would expect it to create an empty project. Instead, it throws a error: File "D:\NekoProfile\Desktop\Repository\Programming\Code\Python\GUI2EXE\LabelBook.py", line 730, in InitializeColors self._colorsMap.update({INB_HILITE_TAB_COLOR: wx.NamedColor("LIGHT BLUE")}) AttributeError: 'module' object has no attribute 'NamedColor'

It seems that wxPython 2.9 has removed the aliases from the american spelling to the english spelling. I batch search&replaced all instances of 'NamedColor' to 'NamedColour', and it exposed another error.

Second error: File "D:\NekoProfile\Desktop\Repository\Programming\Code\Python\GUI2EXE\Py2ExePanel.py", line 273, in LayoutItems commonGridSizer.AddGrowableCol(6) File "C:\Python27\lib\site-packages\wx-2.9.3-msw\wx_core.py", line 15371, in AddGrowableCol return core.FlexGridSizer_AddGrowableCol(*args, **kwargs) PyAssertionError: C++ assertion "!m_cols || idx < (size_t)m_cols" failed at ....\src\common\sizer.cpp(1956) in wxFlexGridSizer::AddGrowableCol(): invalid column index

I think that AddGrowableCol is now zero-indexed. Anyways, I just commented out all lines including ".AddGrowableCol(6)" (there are three, I think), and I then started running into unrelated DLL errors (not a gui2exe problem).

What version of GUI2Exe, Python and wxPython are you using? On what operating system?

Python 2.7.2, wxPython 2.9.2.4 and 2.9.3.0 (I upgraded to see if it fixed the issues. It didn't)

Please provide any additional information below.

None, really, it's all above.

Comment #1

Posted on May 7, 2012 by Massive Kangaroo

This should now be fixed in version 0.5.2, please let me know if this is not the case.

Status: Fixed

Labels:
Type-Defect Priority-Medium