Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 18th December 2011, 05:16 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

ok, so I've installed urlgrabber:

Quote:
[root@mediceo6NB leroy]# rpm --force -ivh http://archive.fedoraproject.org/pub...c12.noarch.rpm
Retrieving http://archive.fedoraproject.org/pub...c12.noarch.rpm
Preparing... ########################################### [100%]
1ython-urlgrabber ########################################### [100%]
then

Quote:
[root@mediceo6NB leroy]# yum check-update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named pycurl

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.2 (r262:71600, Jun 4 2010, 18:28:58)
[GCC 4.4.3 20100127 (Red Hat 4.4.3-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
so I've isntalled the pycurl (just found python-pycurl)

Quote:
[root@mediceo6NB leroy]# rpm --force -ivh http://archive.fedoraproject.org/pub...c12.x86_64.rpm
Retrieving http://archive.fedoraproject.org/pub...c12.x86_64.rpm
Preparing... ########################################### [100%]
1ython-pycurl ########################################### [100%]
but as I used one of the previous command already typed and replaced by the new url, I've launched it with rpm -ivh instead of rpm -Uvh ... from man rpm I read the diference between the 2 but as I installed a new one, it should also be an upgrade no? or should I do it again with -Uvh? (I'm really sorry for all these stupid questions, but the last time I tried to do by myself led me to this situation !!! )

and then :

Quote:
[root@mediceo6NB leroy]# yum check-update
Plugin "refresh-packagekit" can't be imported
Loaded plugins: presto
adobe-linux-i386 | 951 B 00:00
adobe-linux-x86_64 | 951 B 00:00
fedora | 4.2 kB 00:00
updates | 4.7 kB 00:00
PS: thank you really for your explanations and your help !!!

---------- Post added at 06:16 PM ---------- Previous post was at 06:11 PM ----------

PS: sorry, I didn't see the added post at the end of your previous message.
It seems that nothing is missing anymore so I can do a full update?
I just type

yum update ?
Reply With Quote
  #32  
Old 18th December 2011, 05:44 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

The "-i" option to rpm command just means "install".
The "-U" option to rpm command means "upgrade existing program or install it if it isn't already installed".
I probably should have been using the "-U" option in all my previous directives, but things still work out OK.

Yes, go for it: yum update
Reply With Quote
  #33  
Old 18th December 2011, 05:57 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

ok.
Quote:
[root@mediceo6NB leroy]# yum update
Plugin "refresh-packagekit" can't be imported
Loaded plugins: presto
Setting up Update Process
No Packages marked for Update
why can't the refresh-packagekit be imported? should I do the previous commands using the -Uvh option instead of -ivh?
Reply With Quote
  #34  
Old 18th December 2011, 06:13 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

I'm not sure what's still needing installing/updating: Plugin "refresh-packagekit" can't be imported
But it must be another python package that needs updating based on the "can't be imported" part.

No, you don't need to re-run those rpm commands again as they worked in the first place.
What is the output of:
Code:
rpm -qa | grep -i packagekit


---------- Post added at 01:13 PM ---------- Previous post was at 01:05 PM ----------

OK.. now booted into F12 myself. I think the quick way to resolve this one is:
Code:
rpm --nodeps -e PackageKit-yum-plugin
I have every "PackageKit" item removed from my F12 install and only use yum at the command line.
Reply With Quote
  #35  
Old 18th December 2011, 07:46 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

ok, I directly did the second command,followed by the first one

Quote:
[root@mediceo6NB leroy]# rpm --nodeps -e PackageKit-yum-plugin
[root@mediceo6NB leroy]# yum check-update
Loaded plugins: presto
[root@mediceo6NB leroy]# rpm -qa | grep -i packagekit
PackageKit-glib-0.5.7-2.fc12.x86_64
PackageKit-device-rebind-0.5.7-2.fc12.x86_64
PackageKit-command-not-found-0.5.7-2.fc12.x86_64
PackageKit-yum-0.5.7-2.fc12.x86_64
PackageKit-0.5.7-2.fc12.x86_64
PackageKit-gtk-module-0.5.7-2.fc12.x86_64
PackageKit-gstreamer-plugin-0.5.7-2.fc12.x86_64
gnome-packagekit-2.28.3-1.fc12.x86_64
then again:

Quote:
[root@mediceo6NB leroy]# yum check-update
Loaded plugins: presto
[root@mediceo6NB leroy]# rpm --nodeps -e PackageKit-yum-plugin
error: package PackageKit-yum-plugin is not installed
strange? do I install one of this?
http://rpm.pbone.net/index.php3/stat....i686.rpm.html
Reply With Quote
  #36  
Old 18th December 2011, 07:58 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

Code:
rpm -e presto yum.presto
Quote:
[root@mediceo6NB leroy]# rpm --nodeps -e PackageKit-yum-plugin
[root@mediceo6NB leroy]# yum check-update
Loaded plugins: presto <== WHAT HAPPENS AFTER here?
The presto plugin won't work now anyway so might as well get rid of it.
Why did you try and uninstall PackageKit-yum-plugin again after you already uninstalled it?

Last edited by PabloTwo; 18th December 2011 at 08:07 PM.
Reply With Quote
  #37  
Old 18th December 2011, 08:13 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

hum, I'm lost ... I send you what I've done in the exact way, as it appears on the screen :

Quote:
[root@mediceo6NB leroy]# yum update
Plugin "refresh-packagekit" can't be imported
Loaded plugins: presto
Setting up Update Process
No Packages marked for Update
[root@mediceo6NB leroy]# yum check-update
Plugin "refresh-packagekit" can't be imported
Loaded plugins: presto
[root@mediceo6NB leroy]# rpm --nodeps -e PackageKit-yum-plugin
[root@mediceo6NB leroy]# yum check-update
Loaded plugins: presto
[root@mediceo6NB leroy]# rpm -qa | grep -i packagekit
PackageKit-glib-0.5.7-2.fc12.x86_64
PackageKit-device-rebind-0.5.7-2.fc12.x86_64
PackageKit-command-not-found-0.5.7-2.fc12.x86_64
PackageKit-yum-0.5.7-2.fc12.x86_64
PackageKit-0.5.7-2.fc12.x86_64
PackageKit-gtk-module-0.5.7-2.fc12.x86_64
PackageKit-gstreamer-plugin-0.5.7-2.fc12.x86_64
gnome-packagekit-2.28.3-1.fc12.x86_64
[root@mediceo6NB leroy]# yum check-update
Loaded plugins: presto
[root@mediceo6NB leroy]# rpm --nodeps -e PackageKit-yum-plugin
error: package PackageKit-yum-plugin is not installed
as the first time I did rpm --nodeps -e PackageKit-yum-plugin nothing seemed to happen and as I hadn't done the command you gave before, rpm -qa | grep -i packagekit , I did everything again in the good way.
After that I didn't do anything else. Did I miss something?

---------- Post added at 09:12 PM ---------- Previous post was at 09:11 PM ----------

PS: nothing happened after "presto"...just few seconds then again appeared the #root..... line

---------- Post added at 09:13 PM ---------- Previous post was at 09:12 PM ----------

I forgot :

Quote:
[root@mediceo6NB leroy]# rpm -e presto yum.presto
error: package presto is not installed
error: package yum.presto is not installed
Reply With Quote
  #38  
Old 18th December 2011, 08:20 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

The "rpm --nodeps -e PackageKit-yum-plugin" command doesn't print anything to screen without the -v option added. It just erases the package you specify.

So, doing "yum check-update" just gives you a line: "Loaded plugins: presto" and nothing else and then gives a new command prompt line? No other error messages? Strange.
I think you missed doing this one:
Code:
rpm -ev presto yum-presto
Reply With Quote
  #39  
Old 18th December 2011, 08:39 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

Quote:
[root@mediceo6NB leroy]# rpm -ev presto yum-presto
error: package presto is not installed
I tried again the yum check-update, but still the same....presto then few seconds and nothing.

As it is for now, is my computer ok for normal use?
I would like to install the program I need for work but before, I want to know if it could cause troubles because I'll have to install a lot of programs before ( swig, MPI, CGN5, HDF5, MED, Zlib, BLAS, Metis, Scotch, PyQt); they should already be installed since I've installed them before the yum crash and all was ok for the installation of my program, but as Python is also needed, maybe now I will have to change some versions or something of this kind....because they won't recognise the new python....dunno....
Reply With Quote
  #40  
Old 18th December 2011, 08:59 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

Well, the way to check if your computer is "ok for normal use" is to just use it and see if anything is broken. I'm still wondering what is the problem with yum though. Do you get anything back from the commands:
Code:
yum repolist
yum list kernel
Maybe post the output of:
Code:
cat /etc/yum.conf


---------- Post added at 03:59 PM ---------- Previous post was at 03:54 PM ----------

It might be a good idea to comment out the "metadata_expire=7d" line in the /etc/yum.conf file, or just set it to =0 for the time being for testing.
You'll probably need to get yum working so you can get python back fully installed. Since you deleted so much python stuff, anything that depends on it is probably broken right now.

Last edited by PabloTwo; 18th December 2011 at 09:13 PM.
Reply With Quote
  #41  
Old 18th December 2011, 09:14 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

here are the results.

Quote:
[root@mediceo6NB leroy]# yum repolist
Loaded plugins: presto
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated 17
adobe-linux-x86_64 Adobe Systems Incorporated 2
fedora Fedora 12 - x86_64 19,122
updates Fedora 12 - x86_64 - Updates 9,645
repolist: 28,786
Quote:
[root@mediceo6NB leroy]# yum list kernel
Loaded plugins: presto
Installed Packages
kernel.x86_64 2.6.31.5-127.fc12 @rawhide/$releasever
kernel.x86_64 2.6.32.16-141.fc12 @updates
kernel.x86_64 2.6.32.26-175.fc12 @updates

Quote:
[root@mediceo6NB leroy]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3
metada_expire=7d

then after that I've commented out the "metadata_expire=7d"

should I install package yum.presto and package presto?

And so, I go on with the installation of my program.

---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------

now I have :

Quote:
[root@mediceo6NB leroy]# yum check-update
Loaded plugins: presto
adobe-linux-i386 | 951 B 00:00
adobe-linux-x86_64 | 951 B 00:00
fedora | 4.2 kB 00:00
updates


---------- Post added at 10:14 PM ---------- Previous post was at 10:13 PM ----------

and then :

Quote:
[root@mediceo6NB leroy]# yum update
Loaded plugins: presto
Setting up Update Process
No Packages marked for Update
Reply With Quote
  #42  
Old 18th December 2011, 09:22 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

OK, good, that all looks OK to me and the repos seem to be working. You seem to already have done a successful "update" as I see you have the last kernel for F12 that was issued.

No, do not re-install presto and yum-presto because they are now useless. The presto delta-rpms repos for F12 are long gone.

Ummm.... wait a minute... you should NOT have "Loaded plugins: presto" if you have removed the presto and yum-presto packages.

---------- Post added at 04:22 PM ---------- Previous post was at 04:19 PM ----------

What does this say:
Code:
rpm -qa | grep presto

Last edited by PabloTwo; 18th December 2011 at 09:21 PM.
Reply With Quote
  #43  
Old 18th December 2011, 09:38 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

it's really confusing for me...I shouldn't have presto no??? just when I thought I was starting to understand few things :-(
here's the result:

Quote:
[root@mediceo6NB leroy]# rpm -qa | grep presto
yum-presto-0.6.2-1.fc12.noarch
Reply With Quote
  #44  
Old 18th December 2011, 09:45 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxfirefox
Re: yum and Python

Well, now you should be able to do:
Code:
yum erase yum-presto
No, you shouldn't have the presto plugin for yum... as I explained above, it's now useless.
Reply With Quote
  #45  
Old 18th December 2011, 09:53 PM
yorelchr Offline
Registered User
 
Join Date: May 2010
Posts: 57
linuxfedorafirefox
Re: yum and Python

what I don't understand is that presto seemed not being in my pc, but when asking..it is...so strange to me...

I mean that, previously I had :

Quote:
[root@mediceo6NB leroy]# rpm -ev presto yum-presto
error: package presto is not installed

then

[root@mediceo6NB leroy]# rpm -qa | grep presto
yum-presto-0.6.2-1.fc12.noarch

that's a bit complicated for me to understand ....
anyway, I erased :

Quote:
[root@mediceo6NB leroy]# yum erase yum-presto
Loaded plugins: presto
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package yum-presto.noarch 0:0.6.2-1.fc12 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ================================================== ==========================================
Package Arch Version Repository Size
================================================== ================================================== ==========================================
Removing:
yum-presto noarch 0.6.2-1.fc12 @updates 64 k

Transaction Summary
================================================== ================================================== ==========================================
Remove 1 Package(s)

Installed size: 64 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 12 pre-existing rpmdb problem(s), 'yum check' output follows:
PackageKit-0.5.7-2.fc12.x86_64 has missing requires of PackageKit-yum-plugin = ('0', '0.5.7', '2.fc12')
intel-cprof072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
intel-cproflib072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
intel-cprofsdk072-11.1-1.noarch has missing requires of lsb >= ('0', '3.0', None)
intel-cproidb072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
intel-cproidbsdk072-11.1-1.noarch has missing requires of lsb >= ('0', '3.0', None)
intel-cprolib072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
intel-cprolibdev072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
intel-cpromkl072-11.1-1.noarch has missing requires of lsb >= ('0', '3.0', None)
intel-cpromklib072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
intel-cpromklibdev072-11.1-1.x86_64 has missing requires of lsb >= ('0', '3.0', None)
sip-devel-4.10.2-1.fc12.x86_64 has missing requires of python-devel
Erasing : yum-presto-0.6.2-1.fc12.noarch 1/1

Removed:
yum-presto.noarch 0:0.6.2-1.fc12

Complete!
Reply With Quote
Reply

Tags
python, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error With Python / Python-Twisted-Web HMSS013 Using Fedora 6 11th November 2010 04:07 AM
Python, IDLE, Python-tools Gnome. Deonis Using Fedora 2 12th March 2009 03:44 AM
python and python-irclib problem LostSon Programming & Packaging 3 6th March 2008 11:12 PM
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Using Fedora 0 15th September 2005 05:53 PM


Current GMT-time: 03:28 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat