Bug 75352
Summary: | redhat-config-packages crashes on startup | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michael Phillips, Jr. <mp53> |
Component: | redhat-config-packages | Assignee: | Jonathan Blandford <jrb> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | ddumas, dsummersl, john.raif, lanny, mrmunshower, ray_seys |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-12-31 07:49:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael Phillips, Jr.
2002-10-07 16:02:40 UTC
Is the package correctly installed (rpm -V redhat-config-packages) Also, if you just run redhat-config-packages from a terminal, do you get the error? I ran rpm -V redhat-config-packages. The package was verified without error. I ran redhat-config-packages at a gnome-terminal prompt with a gnome-session and a kde-terminal prompt with a kde-session. I get the same error with the traceback reported in my bug report. If I comment out the following lines from class MainWindow in file MainWindow.py: line 34: i = gtk.Invisible() line 35: i.selection_owner_set("_NAUTILUS_DISABLE_MOUNT_WINDOW") and then rerun the program from a terminal prompt, the program launches without error! It looks like I am getting a null object pointer from gtk.Invisible(). I don't know why that is happening. I commented out lines 34-35, but the app still crashes. Here is the trace I get from the console: Traceback (most recent call last): File "/usr/share/redhat-config-packages/MainWindow.py", line 163, in ? comps = im.readCompsViaMethod(hdlist, progress.update) File "/usr/share/redhat-config-packages/method.py", line 488, in readCompsViaMethod update_method = update_method) File "/usr/share/redhat-config-packages/comps.py", line 387, in __init__ self.readCompsFile(file, self.packages) File "/usr/share/redhat-config-packages/comps.py", line 471, in readCompsFile self.setupStateDicts(packages) File "/usr/share/redhat-config-packages/comps.py", line 420, in setupStateDicts for prov in h[rpm.RPMTAG_PROVIDES]: TypeError: iteration over non-sequence Traceback (most recent call last): File "/usr/share/redhat-config-packages/MainWindow.py", line 163, in ? comps = im.readCompsViaMethod(hdlist, progress.update) File "/usr/share/redhat-config-packages/method.py", line 488, in readCompsViaMethod update_method = update_method) File "/usr/share/redhat-config-packages/comps.py", line 387, in __init__ self.readCompsFile(file, self.packages) File "/usr/share/redhat-config-packages/comps.py", line 471, in readCompsFile self.setupStateDicts(packages) File "/usr/share/redhat-config-packages/comps.py", line 420, in setupStateDicts for prov in h[rpm.RPMTAG_PROVIDES]: TypeError: iteration over non-sequence On my system I was able to get the app working by skipping 'gdm'... I added the following to /usr/share/redhat-config-packages/comps.py: (line 420) if (pkg == "gdm"): continue I don't know why - but h[rpm.RPMTAG_PROVIDES] is type 'NoneType' when pkg == "gdm" I'm getting the following error on my Athlon w/512 mem RH 8.0 Traceback (most recent call last): File "/usr/share/redhat-config-packages/MainWindow.py", line 163, in ? comps = im.readCompsViaMethod(hdlist, progress.update) File "/usr/share/redhat-config-packages/method.py", line 488, in readCompsViaMethod update_method = update_method) File "/usr/share/redhat-config-packages/comps.py", line 387, in __init__ self.readCompsFile(file, self.packages) File "/usr/share/redhat-config-packages/comps.py", line 471, in readCompsFile self.setupStateDicts(packages) File "/usr/share/redhat-config-packages/comps.py", line 420, in setupStateDicts for prov in h[rpm.RPMTAG_PROVIDES]: TypeError: iteration over non-sequence I tried commenting out lines 34 and 35 in MainWindow.py but still got the same error. Also tried to add if (pkg == "gdm"): continue to line 420 but again the same error redhat-config-packages crashes in the same way from launching from the menu or the console I inadvertently left the following out of my report: rpm -V redhat-config-packages S.5....T /usr/share/redhat-config-packages/MainWindow.py .......T /usr/share/redhat-config-packages/comps.py I inadvertently left the following out of my report: rpm -V redhat-config-packages S.5....T /usr/share/redhat-config-packages/MainWindow.py .......T /usr/share/redhat-config-packages/comps.py My box is doing the same thing. rpm -V redhat-config-packages runs with no output so i'll assume all is well. From term window: Traceback (most recent call last): File "/usr/share/redhat-config-packages/MainWindow.py", line 163, in ? comps = im.readCompsViaMethod(hdlist, progress.update) File "/usr/share/redhat-config-packages/method.py", line 488, in readCompsViaMethod update_method = update_method) File "/usr/share/redhat-config-packages/comps.py", line 387, in __init__ self.readCompsFile(file, self.packages) File "/usr/share/redhat-config-packages/comps.py", line 471, in readCompsFile self.setupStateDicts(packages) File "/usr/share/redhat-config-packages/comps.py", line 420, in setupStateDicts for prov in h[rpm.RPMTAG_PROVIDES]: TypeError: iteration over non-sequence Redhat 8.0 on an AMD with all updates applied. My best guess is it is confused about the kernel-source file. RPM claims it's installed and not installed. If I try to erase it, it is not installed. If I try to install, it's already installed. rpmdb --rebuilddb didn't fix. Had previously used redhat-config-packages, OK. After rpm -Uvh evolution-1.2 redhat-config-packages gives same Traceback as above. rpm -V redhat-config-packages gives its not installed. rpm -Uvh redhat-config-packages gives its installed. Hmmm...i get this message when i run redhat-config-packages Traceback (most recent call last): File "/usr/share/redhat-config-packages/MainWindow.py", line 7, in ? import method File "/usr/share/redhat-config-packages/method.py", line 6, in ? import comps File "/usr/share/redhat-config-packages/comps.py", line 420 for prov in h[rpm.RPMTAG_PROVIDES]: ^ IndentationError: unindent does not match any outer indentation level pygtk 1.99.13 had a change which caused instantiation of gtkInvisible() widgets to fail. The patch is in upstream CVS and our pygtk 1.99.14 packages. Per Eve: running command ps -ea | grep python doesn't work, nothing happens running from terminal console redhat-config-packages and rpm -V redhat-config-packages both produce the same result of the Package Management utility opening briefly, then closing without ever display packages that are know to be installed Tried all of the above methods but all failed I then added various sys.stderr.write("messages") and found that the app actually failed on rpm.opendb(0,inspath) in the file hdrlist.py rpm.opendb is a call to a function which is part of the librpm404 package so I did a rpm -V librpm404 and got one line output presumably signifying a change I then downloaded librpm404 from redhat and reinstalled rpm -U --replacepkgs librpm404.version.numbers.rpm then i ran redhat-config-packages and it got further than before but still bailed out. so I reinstalled redhat-config-packages and it all works fine now |