LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-20-2005, 02:59 AM   #1
deftone`
Member
 
Registered: Dec 2005
Location: Sofia, Bulgaria
Distribution: Arch
Posts: 40

Rep: Reputation: 15
Bitcomet: failed dependences for python although installed


Hello. Im trying to install BitComet from a rpm packet. This is what i get when i try to do it:
Code:
#rpm -ihv BitTorrent-4.2.2-1-Python2.3.noarch.rpm
error: Failed dependencies:
        /usr/bin/python is needed by BitTorrent-4.2.2-1
        python(abi) = 2.3 is needed by BitTorrent-4.2.2-1
But when i check if i have python installed this is what i get:
Code:
# python -V
Python 2.4.1
# which python
/usr/bin/python
if i try to force the installation with the --nodeps switch, after installation, but when I try to start bitcomet, i get this:
Code:
Traceback (most recent call last):
  File "/usr/bin/bittorrent", line 17, in ?
    from BitTorrent.platform import install_translation
ImportError: No module named BitTorrent.platform
Could anybody help me install properly and run this package? 10x.


-emil stanchev
 
Old 12-21-2005, 11:54 AM   #2
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
what does "rpm -q python" say? although i doubt this is the case, if python was not installed with rpm, then rpm will not be "aware" of it's installation. sometimes this can be done by forcing the rpm like you did with no dependencies, but if bittorrent is expecting python to be located in some location, like /usr/bin, but it's actually located in /usr/local/bin, then it will be calling something that is not there.
 
Old 12-22-2005, 03:07 AM   #3
deftone`
Member
 
Registered: Dec 2005
Location: Sofia, Bulgaria
Distribution: Arch
Posts: 40

Original Poster
Rep: Reputation: 15
Yes, python was not installed from rpm. If thats the problem, what should I do?
I asked a friend of mine and he said that I need the exact version of python, required by the bitcomet rpm, but I its kinda stupid if thats the case here.
 
Old 12-22-2005, 10:23 AM   #4
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
well, this is why a lot of people don't like rpm's. you can either:

install bittorrent from source, and try to work out any issues with being able to find python. the ./configure script will try to find it, if it can't there are things you can do to point it in the right direction

uninstall python, reinstall with rpm.

try to figure out where bittorrent is trying to look for python, and make sure the files it is trying to call at run time are where it is looking. i usually just make a symlink in the directory the program is looking that points to the actual file, but this can get ugly.

to find out where it is looking for your python executable, i would get a copy of a python rpm your distro, do '$ rpm -qlp python-xxx.rpm'. this will list all the files the rpm includes (in case you don't know -q means query the rpm, -l lists all files, and -p says to do the query on an actual rpm file, not an installed package.) from the list, which will be long, you can figure out what directory(s) the rpm would install python. then make sure that your installation is in the same place.

hope that made sense. unfortunatly, i don't think there is any real easy answer.

some distros have another layer of package managment that manage rpm's, Fedora has Yum, which will go get any dependancies that the package you're trying to install may have and installing them for you.

i use gentoo, and absolutly LOVE thier package management system...i've gone on too long.
 
  


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
Installed Python 2.4 Tuul Programming 3 01-25-2005 07:46 AM
BitComet the_imax General 2 10-02-2004 02:02 PM
python 2.3 installed on RH 9 but 2.2.2 is active Dominik Linux - Software 5 12-07-2003 08:22 AM
Python 2.3 installed but still coming up 2.2.2 why? ifurita Linux - Software 1 10-10-2003 10:43 PM
How to check for required dependences? nidua18 Linux - Newbie 3 09-26-2003 10:46 AM

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

All times are GMT -5. The time now is 04:28 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