You are not logged in.

#1 2006-12-15 11:41:59

PeteMo
Member
From: H'Burg, VA
Registered: 2006-01-26
Posts: 191
Website

bittornado 0.3.17-1 + screen error [solved]

I am getting a strange error when running btdownloadcurses.py in screen.  If  I detach screen and reattach there is an error on the curses window.  Quitting bittornado gives the full error message as:

These errors occurred during execution:
[06:38:49] Traceback (most recent call last):
  File "//home/tomk/builds/bittornado/pkg/usr//lib/python2.4/site-packages/BitTornado/RawServer.py", line 122,
 in listen_forever                                                                                              File "//home/tomk/builds/bittornado/pkg/usr//lib/python2.4/site-packages/BitTornado/SocketHandler.py", line 
343, in do_poll                                                                                                 File "/usr/bin/btdownloadcurses.py", line 116, in winch_handler
    curses.endwin()
error: endwin() returned ERR

Unhandled exception in thread started by 
Error in sys.excepthook:

Original exception was:

The error is thrown once for each detach/reattach cycle.  As far as I can tell, the torrent continues to down/upload.

I'm guessing this has something to do with the build, since I do not have user "tomk" on my system.

edit: rebuilding bittornado locally had no effect.

Offline

#2 2006-12-15 23:10:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: bittornado 0.3.17-1 + screen error [solved]

I can't reproduce your error, but I think I've identified the problem anyway. Try this package:

http://www.archlinux.org/~tom/packages/ … pkg.tar.gz

and let me know how it goes.

Offline

#3 2006-12-16 01:57:21

PeteMo
Member
From: H'Burg, VA
Registered: 2006-01-26
Posts: 191
Website

Re: bittornado 0.3.17-1 + screen error [solved]

Well, it's throwing a slightly different error:

These errors occurred during execution:
[20:55:17] Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/BitTornado/RawServer.py", line 122, in listen_forever
    events = self.sockethandler.do_poll(period)
  File "/usr/lib/python2.4/site-packages/BitTornado/SocketHandler.py", line 343, in do_poll
    r = self.poll.poll(t*timemult)
  File "/usr/bin/btdownloadcurses.py", line 116, in winch_handler
    curses.endwin()
error: endwin() returned ERR

 
At least it's no longer mentioning your build directory!

Offline

#4 2006-12-16 09:47:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: bittornado 0.3.17-1 + screen error [solved]

Well, it's progress, I suppose. smile

Re the actual problem, though - I run bittornado in screen all the time, with frequent detach/reattach, and I've never seen this, so it's difficult to debug. One thing I'd suggest is to try it with the standard bittorrent client, which imports the same python-curses modules. If the error persists, a python reinstall might help.

Offline

#5 2006-12-16 21:31:14

PeteMo
Member
From: H'Burg, VA
Registered: 2006-01-26
Posts: 191
Website

Re: bittornado 0.3.17-1 + screen error [solved]

I've troubleshot this down to ~/.screenrc.  The error happens anytime there is a hardstatus or caption line in the .screenrc file.  I've reinstalled python, ncurses, and screen.  Strange...

Offline

#6 2007-01-15 02:24:57

PeteMo
Member
From: H'Burg, VA
Registered: 2006-01-26
Posts: 191
Website

Re: bittornado 0.3.17-1 + screen error [solved]

Well, just for completeness' sake...this appears to have worked its self out.  I'm not seeing this error any longer.

Offline

Board footer

Powered by FluxBB