Export to GitHub

gui2exe - issue #3

gui2exe V3 won't run on linux


Posted on Feb 7, 2009 by Grumpy Hippo

I ran version 3 and got this error on linux a64 TypeError: SetSplashShape() takes exactly 1 argument (2 given)

here is the error output

---- Notes ----

Please provide additional information about the crash here

---- System Information ----

GUI2Exe Version: 0.3 Operating System: Linux 2.6.27-11-generic x86_64 Python Version: 2.5.2 (r252:60911, Oct 5 2008, 19:29:17) [GCC 4.3.2] wxPython Version: 2.8.8.0 (gtk2-unicode) wxPython Info: (WXGTK, wxGTK, unicode, gtk2, wx-assertions-off, SWIG-1.3.29) Python Encoding: Default=UTF-8 File=UTF-8 wxPython Encoding: utf-8 System Architecture: 64bit x86_64 Byte order: little Frozen: False

---- End System Information ----

---- Traceback Info ----

* 06 February 2009 @ 21:17:32 * TypeError: SetSplashShape() takes exactly 1 argument (2 given)

---- End Traceback Info ----

Comment #1

Posted on Feb 7, 2009 by Helpful Elephant

Just a "Me Too" comment. I'm using Ubuntu 8.10, x86_64.

Comment #2

Posted on Feb 7, 2009 by Helpful Elephant

To fix this bug, edit AdvancedSplash.py, and in the line 224, replace this function definition:

def SetSplashShape(self):

to this one:

def SetSplashShape(self, event=None):

Now, the application starts normally. I set the parameter 'event' to 'None' by default because a grep search told me that function gets called without parameters too:

marcelo@marcelo-laptop:~/Escritorio/GUI2Exe$ grep SetSplashShape * AdvancedSplash.py: self.Bind(wx.EVT_WINDOW_CREATE, self.SetSplashShape) AdvancedSplash.py: self.SetSplashShape() AdvancedSplash.py: def SetSplashShape(self, event=None): Coincidencia en el fichero binario AdvancedSplash.pyc marcelo@marcelo-laptop:~/Escritorio/GUI2Exe$

Regards, Marcelo

Comment #3

Posted on Feb 7, 2009 by Massive Kangaroo

Hi,

thank you for the bug report, this never came up until now (which is a bit 

strange). It has been fixed in revision 52 in SVN, by simply modifying the SetSplashShape method in AdvancedSplash.py like this:

def SetSplashShape(self, event=None):
    """ Sets AdvancedSplash shape using the region created from the bitmap."""

    self.SetShape(self.reg)

    if event is not None:
        event.Skip()

Thanks again.

Status: Fixed

Labels:
Type-Defect Priority-Medium