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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-27-2007, 04:00 PM
|
#1
|
Member
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Rep:
|
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!
|
|
|
06-28-2007, 10:05 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
I think you need to upgrade to python 2.4.
|
|
|
06-28-2007, 02:11 PM
|
#3
|
Member
Registered: Jun 2003
Location: Cleveburg, OH
Distribution: mostly Fedora
Posts: 154
Original Poster
Rep:
|
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)
|
|
|
06-28-2007, 05:58 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|