>>> import time
>>> time.strptime(time.ctime())
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/_strptime.py", line 269, in ?
_TimeRE_cache = TimeRE()
File "/usr/lib/python2.4/_strptime.py", line 188, in
__init__
self.locale_time = LocaleTime()
File "/usr/lib/python2.4/_strptime.py", line 74, in
__init__
self.__calc_weekday()
File "/usr/lib/python2.4/_strptime.py", line 94, in
__calc_weekday
a_weekday = [calendar.day_abbr[i].lower() for i in
range(7)]
AttributeError: 'module' object has no attribute 'day_abbr'
>>> time.ctime()
'Fri Sep 15 19:06:18 2006'
The default format used by strptime() should match the
output of ctime(). Even when specifying the format I
get exactly the same error.
I have recently upgraded to gcc 4.1.1 and glibc-2.4-r3.
Using python-2.4.3.
I am not quite sure what causes this.
cheers tim
|