Bug 23221
Summary: | up2date fails on run, AttributeError: Up2dateConfig (wrong config is read) | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <stas-redhat> |
Component: | up2date | Assignee: | Preston Brown <pbrown> |
Status: | CLOSED NOTABUG | QA Contact: | Jay Turner <jturner> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | srevivo |
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: | 2001-02-27 08:53:20 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
Need Real Name
2001-01-03 13:12:36 UTC
that shouldn't matter. Works fine on my RHL 6.2 box. Can I see the output of: rpm -V up2date rpm -V up2date-gnome rpm -V python rpm -V up2date SM?....T c /etc/sysconfig/rhn/up2date missing /usr/share/rhn/up2date/config.pyc S.5....T /usr/share/rhn/up2date/translate.pyc S.5....T /usr/share/rhn/up2date/up2date.py SM5....T /usr/share/rhn/up2date/up2date.pyc rpm -V up2date-gnome S.5....T /usr/sbin/up2date-config S.5....T /usr/share/rhn/up2date/checklist.pyc S.5....T /usr/share/rhn/up2date/configdlg.py S.5....T /usr/share/rhn/up2date/configdlg.pyc S.5....T /usr/share/rhn/up2date/gui.pyc S.5....T /usr/share/rhn/up2date/progress.pyc rpm -V python did not produce any output Assigned QA to jturner You are missing the compiled up2date python config class: missing /usr/share/rhn/up2date/config.pyc Doh. Yes, it is missing, because *I had to remove it to make it run*. OK, seems I did not make myself clear. Python has config. up2date has config. When up2date uses "config" it thinks it's config for up2date, but apparently it's config for python. If I change every reference of config to config2, it works. I'm not sure if removing config.pyc necessary to make it run, but renaming was necessary. I guess these two lines are the cause: sys.path.append("/usr/share/rhn/up2date/") import config I'm not a big Python pro, but I imply that if you append directory to the path, it is searched after all others? And if some previous path has config, the import will be taken from there? Am I wrong? Look: Something is _different_ about your system than ANY other Red Hat Linux system out there. I'm not sure what, but something. We don't have this problem on any of our test boxes. THOUSANDS of other people are using up2date without this issue. This config class you speak of that python has -- we don't ship any "config.py" class with python by default. so you have added something to your system. More info. [pbrown@xanadu pbrown]$ rpm -q python python-1.5.2-27.6.x [pbrown@xanadu pbrown]$ rpm -V python [pbrown@xanadu pbrown]$ rpm -ql python | grep config [pbrown@xanadu pbrown]$ rpm -ql python |grep config [pbrown@xanadu pbrown]$ |