LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-29-2004, 11:42 AM   #1
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Rep: Reputation: 15
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.
 
Old 05-29-2004, 12:02 PM   #2
Ironica
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 64

Rep: Reputation: 15
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 =/

I just gave up on it, and installed Azureus.
 
Old 05-29-2004, 12:19 PM   #3
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Original Poster
Rep: Reputation: 15
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?


Last edited by -Nw- neX; 05-29-2004 at 12:22 PM.
 
Old 05-29-2004, 12:42 PM   #4
Ironica
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 64

Rep: Reputation: 15
Sure.
http://azureus.sourceforge.net/

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.
 
Old 05-29-2004, 01:13 PM   #5
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Original Poster
Rep: Reputation: 15
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.

Last edited by -Nw- neX; 05-29-2004 at 01:14 PM.
 
Old 06-26-2004, 11:13 AM   #6
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Original Poster
Rep: Reputation: 15
little update here.

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]

heres a link to the newrpms FC1 section, just scroll down and look for the package named 'bittorrent-shadowsclient'.
http://newrpms.sunsite.dk/apt/redhat.../RPMS.newrpms/

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

Last edited by -Nw- neX; 06-26-2004 at 11:16 AM.
 
Old 06-26-2004, 04:01 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
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.
 
Old 06-27-2004, 03:02 PM   #8
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
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:

export PYTHONPATH="/usr/lib/python2.2/site-packages/"

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?
 
Old 07-01-2004, 08:29 PM   #9
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
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.
 
  


Reply



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
make errors in fedora core 4 tristanm Programming 12 11-16-2005 03:01 AM
web programs included in fedora core 2 brandnewbie Fedora - Installation 1 08-26-2004 09:52 PM
Fedora Core 2 Rpmfind and Bittorrent problems bennett.david Fedora 1 07-17-2004 09:36 PM
Fedora Core 2 Test 2 Errors lehumphr Fedora 6 04-26-2004 08:37 PM
Traceback errors are Satan's little helpers!!! crossbo101 Linux - Software 7 06-12-2001 01:04 PM

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

All times are GMT -5. The time now is 05:40 PM.

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