Description

After upgrading from Python 2.4.1 to 2.4.2, the EventStats pages do not display the expected plots anymore. Instead you see just one line (and the page name):

Example

Details

MoinMoin Version

1.3.4 and 1.3.5

OS and Version

Windows 2003 Server

Python Version

2.4.2 ( <!> no bug in 2.4.1)

Server Setup

Apache 2.0.54, modpython 3.2.0b (also tested with cgi)

Server Details

-

Workaround

Do not upgrade Python to 2.4.2

Discussion

Debugging is hard because there are no errors or traceback infos reported in the log-files of modpython/Apache or moin itself. The GDchart library was tested separately. It works as expected with Python 2.4.2. So the error seems to be in moin. Any ideas how to debug this?

Do this:

  1. First upgrade to 1.3.5, we will not fix anything in 1.3.4.
    • OK, I made a clean 1.3.5 installation. First the charts were generated. But then I created a page with unicode characters (TestÄöü) and the bug showed up again. Thus, it seems to be related to encoding/decoding page names for/from the event-log.

      • GDchart does not support utf-8, probably this raise an exception which is not handled correctly and cause the output to be stoped after the title.
  2. Delete the the directory wiki/data/cache/charts
    • That did/does no help.
  3. Try to get the stats again. If you get a traceback, save the traceback page as html and attach here.
    • With moin 1.3.5 there is also no traceback generated.

Error handling in 1.3.5 is still broken in some places, you may want to get the last patch of 1.3 branch, and test with this code. Maybe it will be easier to debug.

I did some more experiments with newest moin 1.3 code (moin--main--1.3--patch-935). -- DavidLinke 2005-10-27 08:46:22

I have a debian environment with 1.5.4 (self-installed) and python2.4.4c0 and find exactly the same bug. Although my python2.4-gdchart2 package comes from Ubuntu... -- AlvaroTejero 2006-09-04 11:04:10

Plan


Category MoinMoinBugFixed

MoinMoin: MoinMoinBugs/EventStatsNotWorkingOnPython2.4.2 (last edited 2007-10-29 19:19:51 by localhost)