LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-08-2004, 01:56 AM   #1
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
python rpm


Hi i just updated python on my system, because of a needed dependency, (im running RH8) the thing is that after i installed the rpm (believe me when i say i have tried every way described by python.org my rpm database still says I running the old version (2.2.1) while python -V command says I am running 3.4.

Is this just the database not updating or what? I need this new version of python to install bittorrent. Thanks alot
 
Old 07-08-2004, 04:50 AM   #2
MikeBest
LQ Newbie
 
Registered: Jul 2004
Location: Kent, England
Distribution: Suse / RedHat
Posts: 9

Rep: Reputation: 0
You could try "rpm --rebuilddb" to rebuild the rpm database,

Also have a look at http://torrent.dulug.duke.edu/btrpms for BT rpms for RH8

Hope this helps

Mike
 
Old 07-08-2004, 08:58 AM   #3
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Mikebest;

Thanks for the response. I will try rpm --rebuildb and see if it works. As for the bittorrent rpm's, I have one but it yells at me about dependencies. Of course these dependencies, depends on others which eventually leads to the new python version.

Thanks alot
 
Old 07-08-2004, 07:05 PM   #4
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Mikebest;

Unfortunately what you suggested did not work, Python is still v. 2.2 in the dbase.
Is really confusing because there seems two be 2 python programs on the system but they both are the same version. When i run python -V i get: 2.3.4 and when i run python2.3 -v i get the same.

I am so confused, feels like I tried everything. Any suggestions are most welcome. Thx
 
Old 07-08-2004, 09:11 PM   #5
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Smile Closer to solution

Hi again;

I think I know what I did wrong (problem aint fixed yet but I "feel" like im closer). Anyways the fault was partly mine, partly python.org's (when I say party, I mean 99.9% mine and .1% python.org's) Upon closer examination of the upgrade options it says:

Quote:
Edit the .spec file and change the "config_binsuffix" line to "none".
Which i had missed on my first run through. So i removed the last rpm install i did (the one that didnt work) and did as the instructions instructed and things started looking better (eg. the rpms that resulted had 'python' in the file name and not 'python2.3') So I went to install the first of the rpm's and this is what I got:

Quote:
error: Failed dependencies:
python2 is needed by (installed) pyxf86config-0.3.1-2
python2 is needed by (installed) redhat-config-keyboard-1.0.1-1
python2 >= 2.2 is needed by (installed) orbit-python-1.99.0-4
python2 is needed by (installed) redhat-config-rootpassword-1.0.1-1
python2 is needed by (installed) redhat-config-soundcard-1.0.1-2
python2 is needed by (installed) redhat-config-xfree86-0.6.7-1
python2 is needed by (installed) redhat-config-mouse-1.0.1-2
python2 is needed by (installed) redhat-config-language-1.0.1-6
python2 is needed by (installed) redhat-logviewer-0.8.3-2
python2 is needed by (installed) redhat-config-kickstart-2.3.3-3
python2 >= 2.2 is needed by (installed) pygtk2-1.99.12-7
python2 is needed by (installed) redhat-config-users-1.1.1-2
python2 is needed by (installed) redhat-config-securitylevel-1.0.1-1
python2 is needed by (installed) redhat-config-date-1.5.2-10
Distutils is needed by (installed) 4Suite-0.11.1-10
python = 2.2.1 is needed by (installed) sip-3.3.2-4
/usr/bin/python2.2 is needed by (installed) redhat-config-keyboard-1.0.1-1
/usr/bin/python2.2 is needed by (installed) redhat-config-rootpassword-1.0.1-1
/usr/bin/python2.2 is needed by (installed) redhat-config-soundcard-1.0.1-2
/usr/bin/python2.2 is needed by (installed) rhpl-0.51-1
/usr/bin/python2.2 is needed by (installed) redhat-config-mouse-1.0.1-2
/usr/bin/python2.2 is needed by (installed) firstboot-1.0.1-10
/usr/bin/python2.2 is needed by (installed) comps-extras-8.0-3
/usr/bin/python2.2 is needed by (installed) redhat-config-language-1.0.1-6
/usr/bin/python2.2 is needed by (installed) redhat-logviewer-0.8.3-2
/usr/bin/python2.2 is needed by (installed) redhat-config-kickstart-2.3.3-3
/usr/bin/python2.2 is needed by (installed) redhat-config-users-1.1.1-2
/usr/bin/python2.2 is needed by (installed) redhat-config-securitylevel-1.0.1-1
/usr/bin/python2.2 is needed by (installed) authconfig-gtk-4.2.12-3
/usr/bin/python2.2 is needed by (installed) redhat-config-date-1.5.2-10
/usr/bin/python2.2 is needed by (installed) redhat-config-network-1.1.20-1
Python2.2 is the one I think is currently installed on my system. Doing a rpm -U , a rpm -I , a rpm -U --force, and a rpm -i --force results in the same output.

So I ask you is there a way to solve my problems? I get the feeling after these packages are installed, my problem will be no more (hopefully). Also the python site recommends not to upgrade the system python (which is 2.2 currently), because it says there might be problems. But I think this is the only was to do what I want to do. ( i have already attempted compiling python2.3 from source and all works well but i have same dependency problems with bittorrent). Anyone got any suggestions??

Thx for the help;
Movitto
 
Old 07-08-2004, 09:51 PM   #6
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Spoke too soon;

I removed each of the rpm's from the database by issuing a rpm -e --nodeps rpm_name then immediately installed the corresponding one created by the spec file with rpm -ivh rpm_name

This worked and now python is upgraded. Of course this didnt solve my bittorrent problem because it says its dependent on python-base. I downloaded this and tries to rpm install it but got another dependency error:

Quote:
error: Failed dependencies:
libpython2.3 = 2.3-3mdk is needed by python-base-2.3-3mdk
libintl.so.2 is needed by python-base-2.3-3mdk
libpython2.3.so.1.0 is needed by python-base-2.3-3mdk
The only thing that I can find that looks somewhat related to one of those entries is libpython2.3.a which is located in the python-devel package

Anyone know where i can find these? Or what I should do?

Thanks alot
 
Old 07-09-2004, 03:09 AM   #7
MikeBest
LQ Newbie
 
Registered: Jul 2004
Location: Kent, England
Distribution: Suse / RedHat
Posts: 9

Rep: Reputation: 0
I don't use Mandrake but I believe that the rpm you are trying to install is a mandrake one.

The libpython rpm which I think corresponds to your dependency problem can be found

http://rpmfind.net/linux/rpm2html/se...&system=&arch=

and libintl.so.2

http://rpmfind.net/linux/rpm2html/se...&system=&arch=

Could you say where you got the RPM from that you are having problems with, and state its full name.

As I say I am no expert it's just a suggestion, at the very least it'll get your post to the top of the forum again

MikeBest
 
Old 07-09-2004, 01:34 PM   #8
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Thanks alot MikeBest

Hey MikeBest;

Thanks alot for your help (and dont worry if your not an expert, Im not either, thats whats so great about linux ) As you requested here are the rpm's that I have tried to install along with their corresponding dependency errors:

The bittorrent rpm:
bittorrent-3.2.1b-6mdk.noarch.rpm
And its errors:
 
Old 07-09-2004, 01:38 PM   #9
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Oops i hit submit accidently

Sorry about that here is the completed post:

Hey MikeBest;

Thanks alot for your help (and dont worry if your not an expert, Im not either, thats whats so great about linux ) As you requested here are the rpm's that I have tried to install along with their corresponding dependency errors:

The bittorrent rpm:
bittorrent-3.2.1b-6mdk.noarch.rpm
And its errors:
Quote:
error: Failed dependencies:
python-base >= 2.3 is needed by bittorrent-3.2.1b-6mdk
python-base is needed by bittorrent-3.2.1b-6mdk
So i downloaded python base in the following rpm:
python-base-2.3-3mdk.i586.rpm
And its errors:
Quote:
error: Failed dependencies:
libpython2.3 = 2.3-3mdk is needed by python-base-2.3-3mdk
libintl.so.2 is needed by python-base-2.3-3mdk
libpython2.3.so.1.0 is needed by python-base-2.3-3mdk
Im actually running Red Hat 8 and not mandrake. (Does the mdk in the rpm's mean ifs for madrake??)
Anyways I will try your links.

Thanks for all the help!!! It is greatly appreciated
 
Old 07-09-2004, 01:52 PM   #10
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
One further question;

I know both mandrake and RH use rpm's for their package system, so if a package w/ mdk in the filename indicates a mandrake package, will it work w/ RH and vice versa?

Thanks alot
 
Old 07-09-2004, 02:38 PM   #11
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Original Poster
Rep: Reputation: 30
Yay its installed!!!

Finally after going through a dependency hell I installed bittorrent. I would like to offer my sincerest thanks to you MikeBest for helping me out with my problem If you are ever in need of a solution in the future please feel free to email me or pm me (cant say i will be able to solve the problem but ill definetly give it a try )

Anyways for everyone who has a similar problem to mine in the future, these are the packages I installed to solve my problem (though not in this order):

1. bittorrent-3.2.1b-6mdk.noarch.rpm
2. libintl2-0.13.1-1mdk.i586.rpm
3. libpython2.3-2.3-3mdk.i586.rpm
4. libpython2.3-devel-2.3.3-2mdk.i586.rpm
5. python2.3-2.3.4-2pydotorg.src.rpm (see above posts about how to install this one)
6. python-base-2.3-3mdk.i586.rpm

Now i get to figure out how to use bittorrent
Once again thanks MikeBest
 
Old 07-10-2004, 08:25 AM   #12
MikeBest
LQ Newbie
 
Registered: Jul 2004
Location: Kent, England
Distribution: Suse / RedHat
Posts: 9

Rep: Reputation: 0
Your very welcome movitto, thanks for the offer of future help.

Just to clear up about the mdk on rpms, from the Mandrake RPM HOWTO v1.1.1,

The release is a number followed by mdk (stands for "Mandrake"; this is absolutely mandatory)

I have had some success installing RPMs for other platforms. The only way I can try to classify which ones are more likely to work is to say that the self-contained ones or the ones that are at a very low level i.e. python libraries have a higher chance of success due to the relatively low number of dependencies.

Good luck with bittorrent, it's a very cool program

Mike
 
  


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
Fedora + yum - rpm-python = :( BrokenBrick Linux - Software 1 03-11-2005 08:41 PM
No python 2.3 development libraries RPM a monkey Mandriva 3 02-24-2005 09:12 PM
gnome-python 2.0.0 rpm JMK Linux - Newbie 4 01-20-2004 12:33 PM
python 2.3 rpm install nekid Linux - Software 3 10-23-2003 07:27 PM
help... python-2.2.2-7.i386.rpm timecop369 Linux - Newbie 1 02-27-2003 08:44 PM

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

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