Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#12 V2.1rc2 does not start properly

open
nobody
None
5
2005-02-14
2005-02-14
Anonymous
No

Running run.py of the 2.1rc2 has created the following
error. It seems to be a bad calling syntax to the
wxSizer.Add() on line 289 of dirssync_gui.py. Once this
line is commented out, the program can start without
any problem.

Thanks,
Hung-chi Lihn.
hlihn@brocade.com

----- Error message ---------
C:/Program Files/Python24/pythonw.exe -u "C:/Program
Files/Python24/Dirssync/run.py"
Traceback (most recent call last):
File "C:/Program Files/Python24/Dirssync/run.py",
line 15, in ?
app=DsApp(0)
File "C:\Program
Files\Python24\lib\site-packages\wx-2.5.3-msw-unicode\wx\_core.py",
line 5301, in __init__
self._BootstrapApp()
File "C:\Program
Files\Python24\lib\site-packages\wx-2.5.3-msw-unicode\wx\_core.py",
line 4980, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "C:/Program Files/Python24/Dirssync/run.py",
line 7, in OnInit
frame=dirssync_gui.MyFrame(None,-1,"Directories
Synchronizer")
File "C:\Program
Files\Python24\Dirssync\dirssync_gui.py", line 180, in
__init__
self.__do_layout()
File "C:\Program
Files\Python24\Dirssync\dirssync_gui.py", line 289, in
__do_layout
Sizer_InputsPanel_CMDs.Add(50, 20, 0, 0, 0)
File "C:\Program
Files\Python24\lib\site-packages\wx-2.5.3-msw-unicode\wx\_core.py",
line 9205, in Add
return _core_.Sizer_Add(*args, **kwargs)
TypeError: wxWindow, wxSizer, wxSize, or (w,h) expected
for item

Discussion

  • Logged In: NO

    Hi, I had the same problem and modified dirssync_gui.py like this:

    289c289
    < Sizer_InputsPanel_CMDs.Add((50, 20), 0, 0, 0)
    ---
    > Sizer_InputsPanel_CMDs.Add(50, 20, 0, 0, 0)

    The programme seems to work now. I use Ubuntu 5.10 Breezy Badger with Python 2.4.2
    and python-wxgtk2.6 (2.6.1.1.1ubuntu2).