[Moin-user] Abend From RecentChanges page

Mike Marty mikem at cs.wisc.edu
Tue Jan 18 21:45:18 EST 2005


I had the same problem today, but found this page on Google:

http://moinmoin.wikiwikiweb.de/MoinMoinBugs/FreshInstallOnRHEL3

Changing line 86 of RecentChanges.py works as described above.

--Mike


> Hi Folks,
>
> I've recently migrated an existing wiki off an old RH7.3 environment on
> to RHEL3. Everything seemed to be working fine until I tried to access
> RecentChanges. I've attached part of the returned python error. Can
> anyoone suggest a fix.
>
> We're running Moin 1.3.1.
>
> Many thanks,
> Innes (NZ)
>
> /usr/lib/python2.2/site-packages/MoinMoin/macro/RecentChanges.py in
> format_page_edits(macro=<MoinMoin.wikimacro.Macro instance>,
> lines=[<MoinMoin.logfile.editlog.EditLogLine instance>],
> bookmark_usecs=0)
>    84     d['time_html'] = None
>
>    85     if request.cfg.changed_time_fmt:
>
>    86         tdiff = long(tnow -
> wikiutil.version2timestamp(int(line.ed_time_usecs))) / 60 # has to be
> long for py 2.2.x
>
>    87         if tdiff < 1440:
>
>    88             d['time_html'] = _("%(hours)dh %(mins)dm ago") % {
>
> tdiff undefined, long undefined, tnow = 1106104407.224772, global
> wikiutil = <module 'MoinMoin.wikiutil' from
> '/usr/lib/python2.2/site-packages/MoinMoin/wikiutil.pyc'>,
> wikiutil.version2timestamp = <function version2timestamp>, int
> undefined, line = <MoinMoin.logfile.editlog.EditLogLine instance>,
> line.ed_time_usecs = 1106101350000000L
>
>
> OverflowError: long int too large to convert to int
>       __doc__ = 'Result too large to be represented.'
>       __getitem__ = <bound method OverflowError.__getitem__ of
> <exceptions.OverflowError instance>>
>       __init__ = <bound method OverflowError.__init__ of
> <exceptions.OverflowError instance>>
>       __module__ = 'exceptions'
>       __str__ = <bound method OverflowError.__str__ of
> <exceptions.OverflowError instance>>
>       args = ('long int too large to convert to int',)
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
>




More information about the Moin-user mailing list