[Mailman-Users] OverflowError: long int too large to convert to int

2005-09-07 Thread Marcel Meyer
Hello list,

I wasn't able to find any workable solution for the following problem.
BTW: the gnu.org guys seem to have a similar problem. Just have a look
at the archives of the mailman list.

Some lists are no longer (worked before - no configuration or software
update occured) delivered. All messages are shunted. The errorlog says
the following:


[...]
OverflowError: long int too large to convert to int

Sep 07 17:29:51 2005 (26676) SHUNTING: 
1126101607.0405271+753bd030bc66483e3e04217efb7ca1ed6d944a92
Sep 07 20:00:08 2005 (26676) Uncaught runner exception: long int too large to 
convert to int
Sep 07 20:00:08 2005 (26676) Traceback (most recent call last):
  File /usr/local/mailman/Mailman/Queue/Runner.py, line 111, in _oneloop
self._onefile(msg, msgdata)
  File /usr/local/mailman/Mailman/Queue/Runner.py, line 167, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File /usr/local/mailman/Mailman/Queue/IncomingRunner.py, line 130, in 
_dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File /usr/local/mailman/Mailman/Queue/IncomingRunner.py, line 153, in 
_dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
  File /usr/local/mailman/Mailman/Handlers/ToDigest.py, line 91, in process
send_digests(mlist, mboxfp)
  File /usr/local/mailman/Mailman/Handlers/ToDigest.py, line 132, in 
send_digests
send_i18n_digests(mlist, mboxfp)
  File /usr/local/mailman/Mailman/Handlers/ToDigest.py, line 306, in 
send_i18n_digests
msg = scrubber(mlist, msg)
  File /usr/local/mailman/Mailman/Handlers/Scrubber.py, line 170, in process
dir = calculate_attachments_dir(mlist, msg, msgdata)
  File /usr/local/mailman/Mailman/Handlers/Scrubber.py, line 131, in 
calculate_attachments_dir
datedir = safe_strftime(fmt, now)
  File /usr/local/mailman/Mailman/Handlers/Scrubber.py, line 115, in 
safe_strftime
return time.strftime(fmt, floatsecs)
OverflowError: long int too large to convert to int

Sep 07 20:00:08 2005 (26676) SHUNTING: 
1126116005.4532559+6adb036804dde89bc6ccf0e0d805165055f34e49
[...]


We're using python-2.3.5 and mailman-2.1.5-r4 (the r4 comes from the gentoo 
ebuild).

Thank you very much for every reaction (and be it a RTFM with URL!).

Marcel


-- 
Marcel Meyer
| Netzwerk- und Rechnerorganisation
| Fachschaft Mathematik/Physik/Informatik
| Technische Universität München


pgpONHavGvusc.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp

Re: [Mailman-Users] OverflowError: long int too large to convert to int

2005-09-07 Thread Tokio Kikuchi
Marcel Meyer wrote:

 Some lists are no longer (worked before - no configuration or software
 update occured) delivered. All messages are shunted. The errorlog says
 the following:
 
 
 [...]
 OverflowError: long int too large to convert to int
 

   File /usr/local/mailman/Mailman/Handlers/Scrubber.py, line 131, in 
 calculate_attachments_dir
 datedir = safe_strftime(fmt, now)
   File /usr/local/mailman/Mailman/Handlers/Scrubber.py, line 115, in 
 safe_strftime
 return time.strftime(fmt, floatsecs)
 OverflowError: long int too large to convert to int

Looks like we need this patch:

Index: Scrubber.py
===
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Scrubber.py,v
retrieving revision 2.27
diff -u -r2.27 Scrubber.py
--- Scrubber.py 28 Aug 2005 05:31:27 -  2.27
+++ Scrubber.py 7 Sep 2005 23:40:33 -
@@ -113,7 +113,7 @@
 def safe_strftime(fmt, floatsecs):
 try:
 return time.strftime(fmt, floatsecs)
-except (TypeError, ValueError):
+except (TypeError, ValueError, OverflowError):
 return None


-


-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp