PDA

View Full Version : Help with Python




oober_freak
Jan 15, 2007, 09:29 AM
Hey guys..

I was compiling BitTornado for OS X, when I ran into a problem.

http://forums.degreez.net/viewtopic.php?p=21875#21875

I used this guide to install BitTornado.


In the guide, the guy has mentioned this:

6. Make the changes listed in this site in the btdownloadgui.py file http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?10:mss:1193:hedpdngcjjlbfjgaehom

Now, I couldn't make head or tail of what he wants me to change. I understood that I need to make changes in lines 177, 492 and 505. But, I couldn't understand what all those + and - signs meant. So, can some one please edit this file for me. I am attaching the file with this post.



IscariotJ
Jan 15, 2007, 09:53 AM
Basically, you need to remove the - lines, and add in the + lines.

oober_freak
Jan 15, 2007, 10:23 AM
Basically, you need to remove the - lines, and add in the + lines.

I tried doing that, but I'm sure I'm doing something wrong somewhere. Can you please help me with it?

IscariotJ
Jan 16, 2007, 09:22 AM
Sure, PM me with the problem you've run in to, and I'll see what I can do.

Veracon
Feb 13, 2007, 09:00 AM
Since that is merely a diff file (from "--- BitTornado-CVS.orig/btdownloadgui.py"), you could just save it and then use patch, like so:
$ patch < the_file.diff

chooki
Feb 16, 2007, 07:09 AM
Python is dependent on indenting - perhaps the indenting in the stuff you added didn't match the indenting in the file? Being off by a space or a tab can screw things up..

IscariotJ
Feb 16, 2007, 07:48 AM
I downloaded the latest BitTornado, and it ran OK. Hence, I asked the OP to PM me so I could verify version, etc.