Bonjour

J'ai un problème la commande Yum
[root@localhost ~]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named gpgme

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.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq


[root@localhost ~]#
Est-ce ça deja arriver à quelqu'un ? et Comment je peux resoudre ce problème ?

Je vous remercie avance pour votre aide.....
tu es allé voir sur le lien ?

As tu essayé ça ?
Q. 7: I installed a new version of yum (or upgraded my whole system) and now when I run yum, I get an error saying "The yum libraries do not seem to be available on your system for this version of python" and "Please make sure the package you used to install yum was built for your install of python." What's wrong with the yum package I've got, or my Python installation, and how do I fix it?

A.

In pre-2.3.? yum This error message is often misleading. To see the real error, run python from the command line, and type import yum. The problem probably isn't with your version of python at all, but with a missing libxml2-python, python-sqlite, or python-elementtree package.

Yum 2.4.x provides a different error with the module import errors, so this will become less confusing.

It also includes a directive to send the error to the mailing list. Really, you should figure out what rpm provides the module that was missing and try to install that.

If you are getting a message that yum itself is the missing module then you probably installed it incorreclty (or installed the source rpm using make/make install). If possible, find a prebuilt rpm that will work for your system like one from Fedora or CentOS. Or, you can download the srpm and do a

rpmbuild --rebuild yum*.src.rpm
tu as fait un upgrade de version. Préfères faire une nouvelle installation, ce sera plus propre...
Bonjour,

même problème avec une mise a jour de yum ce soir...
$ yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named gpgme

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.5.1 (r251:54863, Oct 30 2007, 13:54:11) 
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq
$ tail -n 4 /var/log/yum.log 
mar 06 23:38:42 Updated: yum - 3.2.11-4.29.20080303git.fc8.hughsie.noarch
mar 06 23:38:43 Updated: libdrm - 2.3.1-1.61.20080303git.fc8.hughsie.i386
mar 06 23:38:46 Updated: PackageKit - 0.1.10-0.539.20080304git.fc8.hughsie.i386
mar 06 23:39:06 Updated: gnome-packagekit - 0.1.10-0.448.20080304git.fc8.hughsie.i386
bienvenue au club !!!!!

j'ai eu encore vraiment le temps pour regler ce pb !!!!
Chacual : aucune idée !
Merci je te donnerais ca demain.

mais en réfléchissant je pense que ca vient du repo pour packagekit...

je vois pas pourquoi il update yum par contre !
Hello Chacual

Si grnnnx a le même problème que moi :

le retour de repolist est :
[root@localhost ~]# yum repolist
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named gpgme

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.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq


[root@localhost ~]#
grnnnx : je te confirme que ça vient de packagekit.repo

http://people.freedesktop.org/~hughsient/fedora/8/i386/

il y a le package : yum-3.2.11-4.31.20080306git.fc8.hughsie.noarch.rpm
La solution est peut-être de télécharger le rpm yum de fedora et de le réinstaller avec l'outil rpm :
rpm -e yum
rpm -ivh yum-3.2.11-4.31.fc8.rpm
(en admettant que le paquet téléchargé porte exactement ce nom ...)

EDIT : Il apporte quoi ce repository packagekit ??? Il faudrait peut-être le désactiver pour ne pas retomber dans le même problème ...
# wget http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/Packages/yum-3.2.7-1.fc8.noarch.rpm
# rpm -e --nodeps yum
# rpm -ivh yum-3.2.7-1.fc8.noarch.rpm 
Préparation...              ########################################### [100%]
   1:yum                    ########################################### [100%]
j'ai ensuite viré le repo packagekit et updaté le systeme, tout semble être rentré dans l'ordre.

Merci!