Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-20-2003, 07:50 AM   #1
Registered: Sep 2003
Location: Greece
Distribution: RedHat,Mandrake
Posts: 38

Rep: Reputation: 15
Angry Python & Up2date

For quite a while now I'm facing some wierd problems with
the up2date service. I keep getting the meesage below:

[12:20 giorgos@anoubis giorgos ]# up2date-nox -u
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/usr/sbin/up2date-nox", line 10, in ?
import sys, os
File "/usr/lib/python2.2/", line 50, in ?
import posixpath
File "/usr/lib/python2.2/", line 14, in ?
import stat
ImportError: No module named stat

I'm running RedHat 9, kernel 2.4.20-19.9
up2date up2date- for the new SSL)
and python-2.2.2-26.

Old 09-20-2003, 11:34 AM   #2
Registered: Sep 2003
Location: Somerville, MA
Distribution: Fedora/RHEL currently. Red Hat, Slackware, Debian, SuSe and Mandrake at other times
Posts: 104

Rep: Reputation: 15
Hmm... I'm not much of a python person, but I think the 'stat' module is /usr/lib/python2.2/ See if it exists and/or run

rpm -V python

to see if anything else is missing. Maybe something happened to that file. You should be able to fix it by getting the python rpm and doing

rpm -Uvh --force --nodeps python-whatever.rpm

That will reinstall python, replacing any missing or corrupted files.
Old 09-21-2003, 12:09 PM   #3
Registered: Sep 2003
Location: Greece
Distribution: RedHat,Mandrake
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks very much. Problem Solved.
I never thought to verify the package just made a query and saw it was installed. But with rpm -V found out that something had been missing.


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
YUM & Up2date problem surfduke Fedora 8 02-25-2005 01:05 PM
Up2Date & YUM ~zoey~ Linux - Newbie 1 09-06-2004 11:30 AM
Up2date & Nvidia gibbylinks Fedora 1 04-25-2004 01:59 PM
python 2.3, rhpl, rhn-applet-gui and up2date thehundredthone Fedora 0 04-04-2004 06:20 AM
up2date python problem trevilli Fedora 2 03-19-2004 07:25 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration