[Grok-dev] Grok 1.0a1 under Apache+mod_wsgi

Graham Dumpleton Graham.Dumpleton at gmail.com
Sun Feb 15 16:12:53 EST 2009

On Feb 16, 3:40 am, Santiago Videla <santiago.vid... at gmail.com> wrote:
> Hey,
> Well, here is what I did. I'm not a very good tutorials writer (and my
> English it's a little bit poor...), so maybe Uli or somebody else could
> re-write this to publish it on grok.zope.org. Or we can just wait, until
> grokproject take care of whole story. :)
> All seems to work fine, but I'm getting an error in the apache logs:
> [Sun Feb 15 14:04:55 2009] [error] Traceback (most recent call last):
> [Sun Feb 15 14:04:55 2009] [error]   File
> "/usr/lib/python2.5/logging/__init__.py", line 750, in emit
> [Sun Feb 15 14:04:55 2009] [error]     self.stream.write(fs % msg)
> [Sun Feb 15 14:04:55 2009] [error] IOError: sys.stdout access restricted by
> mod_wsgi
> I have no idea what that means. any hint?

This is covered by the documentation:


> $ wgethttp://modwsgi.googlecode.com/files/mod_wsgi-2.1.tar.gz
> $ tar xzf mod_wsgi-2.1.tar.gz
> $ cd mod_wsgi-2.1
> $ ./configure --with-python=${sandbox}/bin/python2.5
> $ make
> $ sudo make install

The latest version of mod_wsgi is 2.3. Do not use 2.1 as it has some
bugs in wsgi.file_wrapper implementation.

One should avoid having instructions which refer to specific versions
of a package because people do not bother to check then what the
latest version is and so may keep using an older buggy version. That
or at least provide a good link to where they can look for the latest


More information about the Grok-dev mailing list