LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2007, 04:00 PM   #1
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Rep: Reputation: 30
python error in BitTorrent 5.0.8


I get the following message when attempting to run bittorrent-curses.py or bittorrent.py:

Code:
Traceback (most recent call last):
  File "./bittorrent.py", line 22, in ?
    from BitTorrent.translation import _
  File "/home/foouser/client/BitTorrent-5.0.8/BitTorrent/__init__.py", line 49, in ?
    from BitTorrent.platform import get_temp_subdir, get_dot_dir, is_frozen_exe
  File "/home/foouser/client/BitTorrent-5.0.8/BitTorrent/platform.py", line 117, in ?
    import BitTorrent.zurllib as urllib
  File "/home/foouser/client/BitTorrent-5.0.8/BitTorrent/zurllib.py", line 16, in ?
    user_agent = PeerID.make_id()
  File "/home/foouser/client/BitTorrent-5.0.8/BitTorrent/PeerID.py", line 20, in make_id
    myid = padded + os.urandom(6).encode('hex')
AttributeError: 'module' object has no attribute 'urandom'
Any ideas?

Thanks!
 
Old 06-28-2007, 10:05 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I think you need to upgrade to python 2.4.
 
Old 06-28-2007, 02:11 PM   #3
whysyn
Member
 
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154

Original Poster
Rep: Reputation: 30
Well, that did the trick (that, and about 15 other dependencies). It turned into a major pain since this is a box hosted remotely in a colo. It's headless and didn't run X or have wx, GTK, and many other things installed =/

Now, I'm getting an odd tracker error:
Code:
[18:30:09] Problem connecting to tracker (http://whatever): 'ascii' codec can't decode byte 0xa6 in position 25: ordinal not in range(128)
 
Old 06-28-2007, 05:58 PM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I believe this is a bug common to various clients using this python code. It's crashed by non-ASCII characters - accented letters would be the big culprit, e.g. in song titles. You can try editing the torrent file to replace accented letters by non-accented ones, but this gets a bit tricky as the file is mainly binary.

Someone should really tell the authors or provide a patch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unsatisfied python-psyco ? bittorrent install error cheddarplayer Mandriva 1 11-18-2006 06:50 PM
python bittorrent 3.4.2 - how do I open it? rtil Linux - Software 4 11-16-2004 10:56 AM
Python and Bittorrent jorisb Linux - Software 1 10-02-2004 03:21 PM
Bittorrent: python errors davoman Linux - Software 2 04-16-2004 02:45 PM
bittorrent and python mercutio Linux - Software 7 09-01-2003 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration