Help with Python

Discussion in 'Mac Programming' started by oober_freak, Jan 15, 2007.

  1. macrumors regular

    Joined:
    Apr 5, 2005
    Location:
    London, UK
    #1
    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:

    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.
     

    Attached Files:

  2. macrumors 6502a

    Joined:
    Jan 13, 2004
    Location:
    UK
    #2
    Basically, you need to remove the - lines, and add in the + lines.
     
  3. thread starter macrumors regular

    Joined:
    Apr 5, 2005
    Location:
    London, UK
    #3
    I tried doing that, but I'm sure I'm doing something wrong somewhere. Can you please help me with it?
     
  4. macrumors 6502a

    Joined:
    Jan 13, 2004
    Location:
    UK
    #4
    Sure, PM me with the problem you've run in to, and I'll see what I can do.
     
  5. macrumors newbie

    Joined:
    Jan 24, 2007
    #5
    Since that is merely a diff file (from "--- BitTornado-CVS.orig/btdownloadgui.py"), you could just save it and then use patch, like so:
    Code:
    $ patch < the_file.diff
     
  6. macrumors newbie

    Joined:
    Jan 21, 2006
    #6
    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..
     
  7. macrumors 6502a

    Joined:
    Jan 13, 2004
    Location:
    UK
    #7
    I downloaded the latest BitTornado, and it ran OK. Hence, I asked the OP to PM me so I could verify version, etc.
     

Share This Page