Bug 73688

Summary: redhat-config-[date|time] fails with a pyhton traceback
Product: [Retired] Red Hat Public Beta Reporter: adam allen <adamallen>
Component: dateconfigAssignee: Brent Fox <bfox>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: null   
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-10-15 02:52:57 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 adam allen 2002-09-08 21:15:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020809

Description of problem:
When running as root the redhat-config-date, redhat-config-time or dateconfig
programs they python throws back the following error message show in the results.



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


How reproducible:
Always

Steps to Reproduce:
1. redhat-config-date 
2.
3.
	

Actual Results:  Traceback (most recent call last):
  File "/usr/share/redhat-config-date/redhat-config-date.py", line 35, in ?
    mainWindow.mainWindow().stand_alone()
  File "/usr/share/redhat-config-date/mainWindow.py", line 181, in __init__
    self.timezonePage = timezone_gui.timezonePage()
  File "/usr/share/redhat-config-date/timezone_gui.py", line 50, in __init__
    self.tz = TimezoneMap(zonetab, self.default, map=path)
  File "/usr/share/redhat-config-date/timezone_map_gui.py", line 139, in __init__
    self.setCurrent(self.currentEntry)
  File "/usr/share/redhat-config-date/timezone_map_gui.py", line 180, in setCurrent
    self.markers[self.currentEntry.tz].hide()
AttributeError: 'NoneType' object has no attribute 'tz'




Expected Results:  Some nice GUI to configure the time/date

Additional info:

RPM: redhat-config-date-1.5.2-9.noarch.rpm

Comment 1 Brent Fox 2002-09-13 19:49:21 UTC
A couple of questions.  

1) Was this an upgrade from a previous release?

2) What does your /etc/sysconfig/clock file look like?

Comment 2 adam allen 2002-09-16 16:03:54 UTC
Version: redhat-config-date-1.5.2-9
Fresh install of null, with all relevant up2date applied the day the bug was
reported. 

On a seperate install of null on another machine- without any updates
redhat-config-date worked. After updated redhat-config-date stopped working.
Dropping down to redhat-config-date-1.5.1-2 and the utility launches without any
errors. 


/etc/sysconfig/clock
ZONE="GB"
UTC=true
ARC=false

Comment 3 Brent Fox 2002-10-15 02:52:51 UTC
Um, how did you get ZONE="GB" in /etc/sysconfig/clock?  That is not a valid
timezone according to /usr/share/zoneinfo/zone.tab.  I think "Europe/London" is
what you're looking for.

However, redhat-config-date should not crash on an invalid timezone.

Comment 4 Brent Fox 2002-10-22 19:29:37 UTC
This should be fixed with redhat-config-date-1.5.3-1 which should apprear in
Rawhide in the next day or so.  If this doesn't fix the problem, please reopen
this bug report.