<---- template headericclude ----->
yum and Python - Page 2
FedoraForum.org - Fedora Support Forums and Community
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 16 to 30 of 73
  1. #16
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    Please note the edit I did to my previous post to install the python-libs package. That's what's missing now and causing the missing libpython2.6.so.1.0 error.
    If you have not done a updatedb command as root since uninstalling python-libs package, then the locate command is probably not correct.
    Use "ls /usr/lib64/libpython2.6.so.1.0" instead to see if it's really there or not.

    ---------- Post added at 04:23 PM ---------- Previous post was at 04:09 PM ----------

    I goofed on the correct command to uninstall python-2.6.2-2.fc12.x86_64 by not typing the full "release" part. Please post the output of
    Code:
    rpm -qa | grep python
    when you get the chance.
    Last edited by PabloTwo; 16th December 2011 at 10:12 PM.

  2. #17
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    PS: sorry for the smiley in the post...didn't ask for it !!!

    ---------- Post added at 10:43 PM ---------- Previous post was at 10:25 PM ----------

    starting with libpy ...there's only this :
    [root@mediceo6NB base_soft]# ls /usr/lib64/libpyglib-2.0-python.so
    libpyglib-2.0-python.so libpyglib-2.0-python.so.0 libpyglib-2.0-python.so.0.0.0

    so, there's some python in the pc ....

    [root@mediceo6NB base_soft]# rpm -qa | grep python
    gnome-python2-gconf-2.28.0-1.fc12.x86_64
    rpm-python-4.7.2-2.fc12.x86_64
    gnome-python2-gnome-2.28.0-1.fc12.x86_64
    python-decorator-3.0.1-3.fc12.noarch
    python-amara-1.2.0.2-6.fc12.noarch
    python-adns-1.2.1-6.fc12.x86_64
    libsemanage-python-2.0.45-1.fc12.x86_64
    python-markupsafe-0.9.2-3.fc12.x86_64
    notify-python-0.1.1-8.fc12.x86_64
    python-mako-0.3.4-1.fc12.noarch
    gnome-python2-gtkhtml2-2.25.3-22.fc12.x86_64
    python-iwlib-0.1-1.fc12.x86_64
    gnome-python2-2.28.0-1.fc12.x86_64
    python-urlgrabber-3.9.1-4.2.fc12.noarch
    gnome-python2-libwnck-2.28.0-2.fc12.x86_64
    python-slip-dbus-0.2.13-1.fc12.noarch
    python-docs-2.6.2-1.fc12.noarch
    dbus-python-0.83.0-6.fc12.x86_64
    python-pycurl-7.19.0-7.fc12.x86_64
    ganglia-gmond-python-3.1.2-4.fc12.x86_64
    gnome-python2-desktop-2.28.0-2.fc12.x86_64
    python-BeautifulSoup-3.0.8.1-1.fc12.noarch
    python-iniparse-0.4-1.fc12.noarch
    python-4Suite-XML-1.0.2-8.fc12.x86_64
    python-slip-0.2.13-1.fc12.noarch
    python-slip-gtk-0.2.13-1.fc12.noarch
    python-durus-3.8-3.fc12.x86_64
    python-ethtool-0.5-1.fc12.x86_64
    libbdevid-python-6.0.93-1.fc12.x86_64
    gstreamer-python-0.10.16-1.fc12.x86_64
    python-deltarpm-3.5-0.4.20090913git.fc12.x86_64
    python-enchant-1.3.1-5.fc12.x86_64
    python-cryptsetup-0.0.10-1.fc12.x86_64
    python-simplejson-2.0.9-3.fc12.x86_64
    cracklib-python-2.8.13-6.x86_64
    python-2.6.2-8.fc12.x86_64
    gnome-python2-bonobo-2.28.0-1.fc12.x86_64
    python-pyblock-0.44-1.fc12.x86_64
    python-meh-0.7-1.fc12.noarch
    libselinux-python-2.0.90-5.fc12.x86_64
    gnome-python2-gnomekeyring-2.28.0-2.fc12.x86_64
    setools-libs-python-3.3.6-4.fc12.x86_64
    python-virtinst-0.500.1-4.fc12.noarch
    gamin-python-0.1.10-5.fc12.x86_64
    python-telepathy-0.15.17-1.fc12.noarch
    python-setuptools-0.6c9-5.fc12.noarch
    python-alsaaudio-0.6-1.fc12.x86_64
    boost-python-1.39.0-9.fc12.x86_64
    gnome-python2-gnomevfs-2.28.0-1.fc12.x86_64
    python-libs-2.6.2-8.fc12.x86_64
    libproxy-python-0.2.3-12.fc12.x86_64
    python-feedparser-4.1-10.fc12.noarch
    audit-libs-python-2.0.4-1.fc12.x86_64
    gnome-python2-applet-2.28.0-2.fc12.x86_64
    python-bugzilla-0.5.1-3.fc12.noarch
    at-spi-python-1.28.1-1.fc12.x86_64
    python-httplib2-0.4.0-4.fc12.noarch
    libxml2-python-2.7.6-2.fc12.x86_64
    python-paste-1.7.4-2.fc12.noarch
    python-alsa-1.0.22-1.fc12.x86_64
    policycoreutils-python-2.0.82-5.fc12.x86_64
    python-nss-0.9-8.fc12.x86_64
    gnome-python2-canvas-2.28.0-1.fc12.x86_64
    libuser-python-0.56.13-1.fc12.x86_64
    gnome-python2-extras-2.25.3-22.fc12.x86_64
    python-beaker-1.5.3-1.fc12.noarch
    newt-python-0.52.11-1.fc12.x86_64
    abrt-addon-python-1.1.13-1.fc12.x86_64
    gnome-python2-libegg-2.25.3-22.fc12.x86_64
    libvirt-python-0.8.2-1.fc12.x86_64

    Is it what you asked?

  3. #18
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    Yes. The list says you have both python-2.6.2-8.fc12.x86_64 and python-libs-2.6.2-8.fc12.x86_64 installed. Maybe you deleted individual files when trying to remove everything python instead of using rpm to remove packages.
    Try reinstalling the python-libs-2.6.2-8.fc12.x86_64 package.
    Code:
    rpm --force -Uvh http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/python-libs-2.6.2-8.fc12.x86_64.rpm

  4. #19
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    ok, done.

    [root@mediceo6NB base_soft]# rpm --force -Uvh http://archive.fedoraproject.org/pub...c12.x86_64.rpm
    Retrieving http://archive.fedoraproject.org/pub...c12.x86_64.rpm
    Preparing... ########################################### [100%]
    1ython-libs ########################################### [100%]



    [root@mediceo6NB base_soft]# python
    Python 2.6.2 (r262:71600, Jun 4 2010, 18:28:58)
    [GCC 4.4.3 20100127 (Red Hat 4.4.3-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>>


    GREAT !!!

    Dose it mean everything's ok? in the menu I can now use the Software updates without message of error...even if I don't have to use for now...but it means tha tyum is ok?

    Thank you really so much !!! I was already thinking of reinstalling fedora.....but I have no time for that !!!

    Christine

  5. #20
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    It means that python version 2.6.2-8 is now properly installed and working. Unless you have done the modifications to your /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo so that the mirrorlist= lines are commented out or removed and a new baseurl= line is created that points to the now archived F12 repos, then no, yum won't do updates or install anything except from local files.

    ---------- Post added at 06:58 PM ---------- Previous post was at 06:39 PM ----------

    To make yum work with the archived repos, make the edits shown below:

    For the /etc/yum.repos.d/fedora.repo file, the first section "[fedora]" should look like this:
    Code:
    [fedora]
    name=Fedora $releasever - $basearch
    failovermethod=priority
    baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
    For the /etc/yum.repos.d/fedora-upates.repo file, the first section "[updates]" should look like this:
    Code:
    [updates]
    name=Fedora $releasever - $basearch - Updates
    failovermethod=priority
    baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/$releasever/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
    Then, in your /etc/yum.conf file add the line:
    Code:
    metadata_expire=7d
    That last line will keep yum from trying to "update" the repo metadata every time you use it. Since F12 is long EOL, there is no metadata to update, ever.
    Last edited by PabloTwo; 17th December 2011 at 12:44 AM.

  6. #21
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    hello PabloTwo,

    Thanks again for your help !

    So, I've checked the files, and here are how they are before I do anything ..

    the /etc/yum.repos.d/fedora.repo file

    name=Fedora $releasever - $basearch
    failovermethod=priority
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
    enabled=1
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    the /etc/yum.repos.d/fedora-upates.repo file :

    [updates]
    name=Fedora $releasever - $basearch - Updates
    failovermethod=priority
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
    and the /etc/yum.conf file :

    [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
    so I change them completely to have the same as you sent me?
    I just prefer to have you confirm this, maybe there's something in these files that is specific to my linux configuration and that I should let unchanged...

    Christine

  7. #22
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    Quote Originally Posted by yorelchr
    hello PabloTwo,

    Thanks again for your help !

    So, I've checked the files, and here are how they are before I do anything ..

    the /etc/yum.repos.d/fedora.repo file




    the /etc/yum.repos.d/fedora-upates.repo file :



    and the /etc/yum.conf file :



    so I change them completely to have the same as you sent me?
    I just prefer to have you confirm this, maybe there's something in these files that is specific to my linux configuration and that I should let unchanged...

    Christine
    Yes. You don't have to actually remove the mirrorlist= lines, but if you don't remove them then comment them out by putting a "#" in front of them. "#mirrorlist=......."

  8. #23
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    ciao PabloTwo,

    Ok, done.
    How do I check if everything's ok?
    I will try now to reinstall the program, origin of all these problems and see if it's ok.

    Thanks a lot !!!

    Christine

  9. #24
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    Quote Originally Posted by yorelchr
    ciao PabloTwo,

    Ok, done.
    How do I check if everything's ok?
    I will try now to reinstall the program, origin of all these problems and see if it's ok.

    Thanks a lot !!!

    Christine
    Just do a "yum check-update" and see if yum finds the archive repos OK now.

  10. #25
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    hi,

    here's th result

    [leroy@mediceo6NB ~]$ 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 yum

    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
    damned !!!

    [leroy@mediceo6NB ~]$ rpm -q yum
    yum-3.2.28-5.fc12.noarch
    I'm trying to understand but it's quite difficult.
    What is a repository?

  11. #26
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    A "repository", as far as yum is concerned, is where rpm packages are downloaded from.
    Post the output of:
    Code:
     rpm -qa | grep yum


    ---------- Post added at 01:55 PM ---------- Previous post was at 01:48 PM ----------

    I just rebooted into F12 from F16. Here is what I get with that command:
    Code:
    BASH:~/-> rpm -qa | grep yum
    yum-utils-1.1.26-1.fc12.noarch
    yum-metadata-parser-1.1.2-14.fc12.i686
    yum-3.2.28-5.fc12.noarch
    anaconda-yum-plugins-1.0-5.fc12.noarch
    And I get no errors when I do a yum command of any kind. There would appear to be a missing bit of python still, but the error message you got doesn't make it totally clear what. I'll try to see if I can find a python module named "yum".
    Last edited by PabloTwo; 17th December 2011 at 07:58 PM.

  12. #27
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    ok, I obatin this :

    [root@mediceo6NB leroy]# rpm -qa | grep yum
    PackageKit-yum-plugin-0.5.7-2.fc12.x86_64
    yum-utils-1.1.26-1.fc12.noarch
    yum-metadata-parser-1.1.2-14.fc12.x86_64
    PackageKit-yum-0.5.7-2.fc12.x86_64
    yum-presto-0.6.2-1.fc12.noarch
    yum-3.2.28-5.fc12.noarch
    anaconda-yum-plugins-1.0-5.fc12.noarch
    so if I understand well, python is not completely recognised byt yum? or something is missing in python? do I have just python of a package python?

    [root@mediceo6NB leroy]# rpm -q python
    python-2.6.2-8.fc12.x86_64
    [root@mediceo6NB leroy]# rpm -q python-package
    package python-package is not installed

  13. #28
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    "python-package" is NOT an rpm package. python-2.6.2-8 is INSTALLED, rpm just told you so.
    I think you need to now reinstall these packages:
    Code:
    rpm --force -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/yum-3.2.28-5.fc12.noarch.rpm
    rpm --force -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/yum-utils-1.1.26-1.fc12.noarch.rpm
    rpm --force -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/sos-2.2-0.fc12.noarch.rpm
    rpm --force -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/rpm-python-4.7.2-2.fc12.x86_64.rpm
    rpm --force -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/12/Everything/x86_64/os/Packages/yum-metadata-parser-1.1.2-14.fc12.x86_64.rpm

  14. #29
    Join Date
    May 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    Hello PabloTwo,

    I'va installed everything but it's still missing something as you can see.
    [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%]
    1:yum ########################################### [100%]
    [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%]
    1:yum-utils ########################################### [100%]
    [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%]
    1:sos ########################################### [100%]
    [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%]
    1:rpm-python ########################################### [100%]
    [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%]
    1:yum-metadata-parser ########################################### [100%]
    [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 urlgrabber

    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
    I've found some python-url grabber on-line but I don't want to make any mistake by downloading the wrong one....http://archive.fedoraproject.org/pub...c12.noarch.rpm
    http://rpmfind.net/linux/rpm2html/se...hon-urlgrabber

    thanks for your advice.
    christine

  15. #30
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,903
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: yum and Python

    Use the url's in the commands (the F12 archive repo's ) I'm providing to get the needed packages, and always look in the "updates" repo first. If you don't find it there, then check the "fedora" repo.
    Code:
    rpm --force -ivh http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/python-urlgrabber-3.9.1-4.2.fc12.noarch.rpm
    There may be a few more packages to install or update before yum is working again.

    ---------- Post added at 11:51 AM ---------- Previous post was at 11:42 AM ----------

    You can browse the F12 archived repos directly in firefox (or whatever browser your using). Use these url's:

    For [fedora] repo:
    Code:
    http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/12/Everything/x86_64/os/Packages/
    For [updates] repo:
    Code:
    http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/12/x86_64/
    When you find the package in the list you want, you can just left-click it and it will download. Or you can right-click it and then choose "copy link location" and then paste that onto the command line right after typing "rpm -Uvh " or "rpm --force -Uvh ".

    ---------- Post added at 11:59 AM ---------- Previous post was at 11:51 AM ----------

    Part of the problem here is that I am leading you to install packages from the "updates" repo and all your installed files are from the initial install and from the "fedora" repo. So, until all the "yum" and "python" related files are "updated" from the updates repo so they work together, yum will trip up and fail. Once you get all the needed packages from the update repo, yum will work again and then you can do a full update to the system using yum.
    Last edited by PabloTwo; 18th December 2011 at 05:55 PM.

Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Error With Python / Python-Twisted-Web
    By HMSS013 in forum Using Fedora
    Replies: 6
    Last Post: 11th November 2010, 05:07 AM
  2. Python, IDLE, Python-tools Gnome.
    By Deonis in forum Using Fedora
    Replies: 2
    Last Post: 12th March 2009, 03:44 AM
  3. python and python-irclib problem
    By LostSon in forum Programming & Packaging
    Replies: 3
    Last Post: 7th March 2008, 12:12 AM
  4. Replies: 0
    Last Post: 15th September 2005, 05:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]