LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-20-2003, 06:50 AM   #1
gkoutsog
Member
 
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/os.py", line 50, in ?
import posixpath
File "/usr/lib/python2.2/posixpath.py", line 14, in ?
import stat
ImportError: No module named stat


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

Thanks
 
Old 09-20-2003, 10:34 AM   #2
usernamenumber
Member
 
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/stat.py. 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, 11:09 AM   #3
gkoutsog
Member
 
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.
 
  


Reply


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 12:05 PM
Up2Date & YUM ~zoey~ Linux - Newbie 1 09-06-2004 10:30 AM
Up2date & Nvidia gibbylinks Fedora 1 04-25-2004 12:59 PM
python 2.3, rhpl, rhn-applet-gui and up2date thehundredthone Fedora 0 04-04-2004 05:20 AM
up2date python problem trevilli Fedora 2 03-19-2004 06:25 AM


All times are GMT -5. The time now is 06:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration