LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Bittorrent: python errors (http://www.linuxquestions.org/questions/linux-software-2/bittorrent-python-errors-168963/)

davoman 04-11-2004 09:02 PM

Bittorrent: python errors
 
Okay I finally got Bittorrent kinda working (btdownloadcurses.py), but when I try to run btdownloadgui.py all I get is this crazy linux-jive.
Code:

bash-2.05b$ btdownloadgui.py Star\ Trek\ Nemesis\ -\ DVDRip.XviD-DEiTY\ -\ REQUEST.torrent
Traceback (most recent call last):
  File "/usr/bin/btdownloadgui.py", line 259, in run
    app = btWxApp(0, params)
  File "/usr/bin/btdownloadgui.py", line 246, in __init__
    wxApp.__init__(self, x)
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 5042, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 4791, in _BootstrapApp
    return _core.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/bin/btdownloadgui.py", line 250, in OnInit
    d = DownloadInfoFrame(doneflag)
  File "/usr/bin/btdownloadgui.py", line 110, in __init__
    colSizer.Add(50, 50, 0, wxEXPAND)
  File "/usr/lib/python2.3/site-packages/wx/core.py", line 8242, in Add
    return _core.Sizer_Add(*args, **kwargs)
TypeError: wxWindow, wxSizer, wxSize, or (w,h) expected for item

I have absolutely no idea what this is meaning. Is it some kind of scripting error (its refeering to line-numbers)? Something about core.py? :scratch:

I have both python 2.3 and wxpython (whatever the latest is) installed and blasting.

I'd very much like to get this going without having to have a million terminal windows open.

:newbie: <- Just because I love this emoticon.

punkindrublic 04-16-2004 02:21 AM

Same problem here
 
Looks like you're not the only one (now) getting this problem.

Doing a search on google for this error produced only this page, so it seems to be quite rare and I'm not sure what the cause could be.

I'm using python 2.2 and wxPython 2.5.1.5

I'm getting slightly different line numbers than you, but the errors are the same:

Code:

$./btdownloadgui.py
Traceback (most recent call last):
  File "./btdownloadgui.py", line 262, in run
    app = btWxApp(0, params)
  File "./btdownloadgui.py", line 249, in __init__
    wxApp.__init__(self, x)
  File "/usr/lib/python2.2/site-packages/wx/core.py", line 5042, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.2/site-packages/wx/core.py", line 4791, in _BootstrapApp
    return _core.PyApp__BootstrapApp(*args, **kwargs)
  File "./btdownloadgui.py", line 253, in OnInit
    d = DownloadInfoFrame(doneflag)
  File "./btdownloadgui.py", line 108, in __init__
    colSizer.Add(50, 50, 0, wxEXPAND)
  File "/usr/lib/python2.2/site-packages/wx/core.py", line 8242, in Add
    return _core.Sizer_Add(*args, **kwargs)
TypeError: wxWindow, wxSizer, wxSize, or (w,h) expected for item

If you find out how to solve this, I'd be grateful if you let me know.

Thanks :)

lgeering 04-16-2004 02:45 PM

This is due to the recent changes in Wxpython 2.5. If you just have Wxpyhton for Bittorrent Or dont need the extra functions that come with Wxpython 2.5 then remove it and install wxpython 2.4 which can be downloaded from sourceforge at:

ftp://ftp.sourceforge.net/pub/source...w/wx/wxpython/

Make sure you get the package for your version of python also.


All times are GMT -5. The time now is 05:52 AM.