[Mailman-Users] Archiving doesn't work under Mac OS X 10.1

Peter Bengtson peter.bengtson at musikelit.nu
Sat Feb 22 15:40:31 CET 2003

Some time ago, I reported that archiving doesn't work in Mailman 2.1.1 
under Mac OS X 10.1. Every attempt to archive a message would result in 
the following entry in 'logs/error':

> Feb 22 00:15:42 2003 (1950) SHUNTING: 
> 1045869340.680055+e0e16d1c92bfc3454ac70ca2586b40b6f9ba5a4e
> Feb 22 15:20:28 2003 (1950) Uncaught runner exception: 'module' object 
> has no attribute 'strptime'
> Feb 22 15:20:28 2003 (1950) Traceback (most recent call last):
>   File "/Users/mailman/Mailman/Queue/Runner.py", line 105, in _oneloop
>     self._onefile(msg, msgdata)
>   File "/Users/mailman/Mailman/Queue/Runner.py", line 155, in _onefile
>     keepqueued = self._dispose(mlist, msg, msgdata)
>   File "/Users/mailman/Mailman/Queue/ArchRunner.py", line 73, in 
> _dispose
>     mlist.ArchiveMail(msg)
>   File "/Users/mailman/Mailman/Archiver/Archiver.py", line 207, in 
> ArchiveMail
>     h.close()
>   File "/Users/mailman/Mailman/Archiver/pipermail.py", line 304, in 
> close
>     self.update_dirty_archives()
>   File "/Users/mailman/Mailman/Archiver/pipermail.py", line 518, in 
> update_dirty_archives
>     self.update_archive(i)
>   File "/Users/mailman/Mailman/Archiver/HyperArch.py", line 1038, in 
> update_archive
>     self.__super_update_archive(archive)
>   File "/Users/mailman/Mailman/Archiver/pipermail.py", line 424, in 
> update_archive
>     self._update_simple_index(hdr, archive, arcdir)
>   File "/Users/mailman/Mailman/Archiver/pipermail.py", line 434, in 
> _update_simple_index
>     self.write_index_header()
>   File "/Users/mailman/Mailman/Archiver/HyperArch.py", line 955, in 
> write_index_header
>     print self.html_head()
>   File "/Users/mailman/Mailman/Archiver/HyperArch.py", line 640, in 
> html_head
>     d = {"listname": html_quote(mlist.real_name, self.lang),
>   File "/Users/mailman/Mailman/Archiver/HyperArch.py", line 638, in 
> quotetime
>     return html_quote(i18n.ctime(s), self.lang)
>   File "/Users/mailman/Mailman/i18n.py", line 98, in ctime
>     year, mon, day, hh, mm, ss, wday, ydat, dst = time.strptime(date)
> AttributeError: 'module' object has no attribute 'strptime'

Further research shows that the offending function, strptime, doesn't 
exist in Mac OS X 10.1 - the function isn't defined, which causes 
HAVE_STRPTIME to become undefined by ./configure. (I don't know the 
situation under 10.2.). Doing a

	import time

results in an error message, saying that strptime is an unknown entity.

At first I thought this might be a bug which only showed up when 
archiving was set to something else than the distribution defaults, but 
changing or removing the date clobbering settings in mm_cfg.py didn't 
improve the situation. All archiving still seems to break.

A clean install of Python (2.2.2) doesn't improve the situation, either.

If 'strptime' is unavailable in 10.1, then all Mailman users under Mac 
OS X 10.1 wouldn't be able to archive any messages at all. Are there 
very few users on Mac OS X, or don't people generally use automatic 
archiving? I would be interested to hear from anybody who has got it to 
work under Mailman 2.x and Mac OS X 10.1.

Archiving used to work flawlessly - I have quite extensive archives 
produced by a now defunct mailing list - but in one of the later 
versions, presumable where the archiving routines were rewritten or 
updated, it stopped working.

Should Mailman assume that 'strptime' is available? Is there a 

Any ideas or pointers most welcome.

	/ Peter Bengtson

More information about the Mailman-Users mailing list