Bug 82483 - up2date crashes with python error
Summary: up2date crashes with python error
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: up2date
Version: 4.0
Hardware: i686
OS: Linux
Target Milestone: ---
: ---
Assignee: Daniel Veillard
QA Contact: Red Hat Satellite QA List
Depends On:
TreeView+ depends on / blocked
Reported: 2003-01-22 17:42 UTC by Steve Witten
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-01-23 16:48:26 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Steve Witten 2003-01-22 17:42:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:

I was advised by RH Support to file this defect report...

As root...

Running 'up2date --configure' yields:

Traceback (most recent call last):
  File "/usr/sbin/up2date", line 11, in ?
    import rpm
ImportError: No module named rpm

Running 'up2date --register' yields:

Traceback (most recent call last):
  File "/usr/sbin/up2date", line 11, in ?
    import rpm
ImportError: No module named rpm

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
See description.

Actual Results:  See description.

Expected Results:  No error should be reported

Additional info:

Comment 1 Mihai Ibanescu 2003-01-22 17:50:37 UTC
What is
rpm -q rpm-python


Also, what version of Red Hat Linux are you using?

Comment 2 Steve Witten 2003-01-22 17:52:35 UTC
See RH Support ticket # 225471.  Since I have no RHN, I need a way to get these
fixes without RHN.

Comment 3 Steve Witten 2003-01-22 17:53:30 UTC
stevewi@sw722142:~ $ rpm -q rpm-python

Comment 4 Steve Witten 2003-01-22 17:53:46 UTC
RH 8.0 Personal

Comment 5 Adrian Likins 2003-01-22 19:19:48 UTC
Whats the ouput of:

rpm -V rpm-python


rpm -V up2date


rpm -q rpm
rpm -V rpm

Haven't seen this error before, and since it looks pretty
serious right off the bat, I'm thinking there is something
wrong with your install (possibly rpm or rpm-python didn't
get installed somehow...). So going down that path first...

Comment 6 Steve Witten 2003-01-22 21:45:23 UTC
stevewi@sw722142:~ $ rpm -V rpm-python
Unsatisfied dependencies for rpm-python-4.0.4-7x.18: rpm = 4.0.4, popt = 1.6.4
stevewi@sw722142:~ $ rpm -V up2date
SM?....T c /etc/sysconfig/rhn/up2date
..?..... c /etc/sysconfig/rhn/up2date-keyring.gpg
SM5....T   /usr/share/rhn/up2date_client/config.pyc
stevewi@sw722142:~ $ rpm -q rpm
stevewi@sw722142:~ $ rpm -V rpm
....L...   /usr/lib/rpm/athlon-linux
....L...   /usr/lib/rpm/i386-linux
S.5.....   /usr/lib/rpm/i386-linux/macros
....L...   /usr/lib/rpm/i486-linux
....L...   /usr/lib/rpm/i586-linux
....L...   /usr/lib/rpm/i686-linux
....L...   /usr/lib/rpm/noarch-linux

Comment 7 Adrian Likins 2003-01-22 22:43:44 UTC

stevewi@sw722142:~ $ rpm -q rpm-python

Thats the wrong version of rpm-python. Thats a version
for the 7.x series. I missed that before.

Not sure how that version got on there, but you need


You can get it from: 

Was this system an upgrade from a 7.x box? Something odd happened
at some point, and you got an older version of rpm-python installed. 

Comment 8 Steve Witten 2003-01-22 23:19:22 UTC
This was an upgrade from RH 7.3.  I installed the package you mention and all
seems to be right with up2date.  Thanks a lot.  BTW, I like the Bluecurve stuff
a lot...

Comment 9 Josef Komenda 2003-01-23 16:48:26 UTC
Fixed, closing. 

Note You need to log in before you can comment on or make changes to this bug.