bittorrent errors on Fedora Core 1 [traceback included]
Linux - SoftwareThis 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.
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.
bittorrent errors on Fedora Core 1 [traceback included]
so ive tried mulitple versions of bittorrent on my FC1 box, but nothing seems to work. ive also tried building an RPM from .src.rpm package. so far, nothing has worked. it generates the same erorrs each time.
Code:
$ btdownloadheadless.py --url second_path.torrent --saveas ./
Traceback (most recent call last):
File "/usr/bin/btdownloadheadless.py", line 164, in ?
run(argv[1:])
File "/usr/bin/btdownloadheadless.py", line 159, in run
download(params, h.chooseFile, h.display, h.finished, h.error, Event(), cols, h.newpath)
File "/usr/lib/python2.2/site-packages/BitTorrent/download.py", line 120, in download
h = urlopen(config['url'])
File "/usr/lib/python2.2/urllib2.py", line 138, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.2/urllib2.py", line 326, in open
type_ = req.get_type()
File "/usr/lib/python2.2/urllib2.py", line 230, in get_type
raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: second_path.torrent
ive tried package builds from a number of sources, including the package from torrent.dulug.duke.edu. same error each time.
anyone else running into similar problems? im stuck as to what to do at this point with the current version of bittorrent. im going to try and find older versions of the bittorrent RPM package. the only thing i can think of at this point is that there is a conflict between the package and the version of python that i have installed [2.2], but no dep issues are evident when i install the package.
i know that someone will mention something about using a java based client of some sort. i do not install java on any of my systems.
You're right, I was about to suggest using Azureus, a Java based client!
I've tryed using wxPython with Python 2.2 and 2.3, and GTK+ 1 and 2. I got loads of errors similar to your's, everytime. I even tryed a different client (Python based), but same thing =/
well.... i found the python 2.3 packages avalible at http://www.python.org/2.3.3/rpms.html. but still the same errors. :P
i dont get it. never run into problems like this until recent versions of bittorrent. ive even tried ctorrent. but it doesnt seem to do much of anything at all. it appears to function, but no download ever occours [let it run for 15 minutes.]
i suppose i could give up and install java. got a site for an rpm for azer-whatever?
Probably is the easiest solution. Maybe it's something related to Fedora / Red Hat? I'm using FC2. It seems like quite a lot of bother to get it working, to be honest, when you could just use a Java client instead.
i get similar errors on FC2 using BitTorrent-3.2_cvs_alikins-2.
Code:
Traceback (most recent call last):
File "/usr/bin/btdownloadheadless.py", line 7, in ?
from BitTorrent.download import download
ImportError: No module named BitTorrent.download
and the same error using bittorrent-3.4.1-0.fdr.2.a.1.91.noarch.rpm. so i think that using the java version is pretty much the only route.
im starting to wonder if BT is getting a little bit distro-centric.
i tried a copy of bittorrent-shadowsclient from newrpms last night. seeems to work just fine. even btdownloadcurses.py, something that had never worked for me before.
my current os here is FC1, but i would expect that this would work with FC2 as well if you were having problems similar to mine posted above. [i had more or less the same traceback on FC2 and FC1]
i have not given the 'bittorrent-shadowsclient-gui' [this rpm also avalible from freshrpms] a try yet. i mostly just run the btdownload in an xterm window and push it off to some other desktop. ill post here if i do
What I did to get BitTorrent to work.
1) Download Python 2.3
2) Compile Python 2.3 and install it
3) Make symbolic link where Python 2.3 install to (/usr/local) to /usr/lib/python2.3
4) Ran bittorent with an url
I did not use RPM files or uninstall Python 2.2.
I use azureus because I do not feel like messing with the command prompt although I got BitTorrent working.
I installed packages from http://torrent.dulug.duke.edu/btrpms/ on a fc2 box. Only the fc1 rpms were available. Fedora 2 has python2.3, bittorrent installed its modules in python2.2. It works by specifying the following command before running btdownloadcurses.py:
I have not tried copying or linking the directory /usr/lib/python2.2/site-packages/BitTorrent/ to /usr/lib/python2.3/site-packages/BitTorrent/, but that too would work and be a better solution. Of course, rolling one's one should work because the dependencies are worked out properly.
And why is there no "official" BitTorrent for fedora?
Further Notes: I did a "cp -a /usr/lib/python2.2/site-packages/BitTorrent/ /usr/lib/python2.3/site-packages/" and that solved my problem (as like -Nw- neX). This eliminated the need to set the environmental variable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.