the forums at degreez.net

It is currently Thu Apr 25, 2024 8:16 pm

All times are UTC - 7 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: python verison
PostPosted: Sat Jul 03, 2004 3:52 am 
Hi
Which version of python is necessary to run BitTornado. On debian stable I have python 2.1.3 and version 0.3.3 does not want to work. I think that debian stable is rather popular on server machines and it would be good if command lline versions could work there. It is often easy or possible to change a python veriosn on a server.


Top
  
 
 Post subject:
PostPosted: Sun Jul 04, 2004 1:22 am 
Offline

Joined: Sat Apr 10, 2004 9:54 am
Posts: 986
Hmm.... i never installed Python on my system i wonder about this as well.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 05, 2004 9:59 am 
Offline

Joined: Sun Mar 07, 2004 10:05 am
Posts: 1212
I believe BitTornado will run on Python 2.1. If not, please tell me any exceptions that are popping up and I will attempt to fix them.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 8:35 am 
With python 2.1.3 (debian stable) I was getting this error on 0.3.1:
Code:
  File "./BitTornado/ConfigDir.py", line 18, in ?
    OLDICONPATH = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
AttributeError: 'posixpath' module has no attribute 'realpath'

I was using the curses client, so I edited out all the icon stuff and it worked fine. But in 0.3.3 & 4 there's this:
Code:
OverflowError: ('integer literal too large', ('./BitTornado/BT1/Storage.py', 24, None, 'MAXLOCKRANGE = 3999999999   # only lock first 4 gig of file\n'))

... maybe it needs a newer python version now. or it could just be this build of python. don't really know.


Top
  
 
 Post subject:
PostPosted: Tue Jul 06, 2004 9:08 am 
Offline

Joined: Sun Mar 07, 2004 10:05 am
Posts: 1212
Okay, try the following changes, see if they work, please:

Quote:
OLDICONPATH = os.path.abspath(os.path.dirname(sys.argv[0]))


Quote:
24, None, 'MAXLOCKRANGE = 3999999999L # only lock first 4 gig of file\n'))


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 1:52 pm 
Hi
I have applied the two changes and it works now on Python 2.1.3(debian stable). Thank for the fix!


Top
  
 
 Post subject:
PostPosted: Wed Jul 07, 2004 9:09 pm 
Offline

Joined: Sun Mar 07, 2004 10:05 am
Posts: 1212
Okay, changes will be applied to the next release. Thank you for testing. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 11, 2004 4:38 am 
Hi.
There is one more problem when the torrent is big I get the following error:
File "/home/roman/pkg/BitTornado-0.3.4.fix/btdownloadcurses.py", line 401, in ?
curses_wrapper(run, errlist, argv[1:])
File "/usr/lib/python2.1/curses/wrapper.py", line 44, in wrapper
res = apply(func, (stdscr,) + rest)
File "/home/roman/pkg/BitTornado-0.3.4.fix/btdownloadcurses.py", line 362, in run
if not dow.saveAs(d.chooseFile):
File "./BitTornado/download_bt1.py", line 373, in saveAs
OverflowError: integer addition

It must be the problem with >4GB size I think...


Top
  
 
 Post subject:
PostPosted: Sun Jul 11, 2004 10:33 am 
Offline

Joined: Sun Mar 07, 2004 10:05 am
Posts: 1212
Thanks, I'll fix that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group