Attempting to run the archive function with charm 1.4.0
or 1.5.0 on a Linux system using Python 2.4 fails with
the following traceback error:
Retrieving post counts...
Traceback (most recent call last):
File "/usr/local/bin/charm", line 14, in ?
ljcharm.main()
File
"/usr/local/lib/python2.4/site-packages/ljcharm.py",
line 4117, in main
jobj.main_menu()
File
"/usr/local/lib/python2.4/site-packages/ljcharm.py",
line 3703, in main_menu
repeat_ok = self.pick_archive_menu()
File
"/usr/local/lib/python2.4/site-packages/ljcharm.py",
line 3609, in pick_archive_menu
self.mass_archive()
File
"/usr/local/lib/python2.4/site-packages/ljcharm.py",
line 3458, in mass_archive
mstr = time.strftime("%B", (stt[0], stt[1], 1, 0,
0, 0, 0, 0, 0))
ValueError: day of year out of range
It then dumps back to the shell prompt. The above
error was produced with Charm 1.5.0 and Python 2.4.
Switching back to Python 2.3.4 works with either
version of charm, but I have not tested this with
versions prior to 1.4.0.
Logged In: YES
user_id=159820
From Python 2.4's change list:
"time.strftime() now checks that the values in its time
tuple argument are within the proper boundaries to prevent
possible crashes from the platform's C library
implementation of strftime(). Can possibly break code that
uses values outside the range that didn't cause problems
previously (such as sitting day of year to 0)."
Unfortunately, Charm uses exactly this construct a lot, when
it doesn't have a complete time tuple -- it sets the
remaining values to 0, including day of year. I'll figure
out some workaround.