[Python-modules-team] Bug#409168: libapache2-mod-python: mod_python psp unusable in sarge version

Michael Hanke michael.hanke at gmail.com
Wed Jan 31 12:31:10 CET 2007

Package: libapache2-mod-python
Version: 3.1.3-3
Severity: important
Tags: sarge


I'm trying to get some psp stuff running on a sarge machine that was
developed on an etch machine. I had to discover that psp as provided by
the sarge package libapache2-mod-python is mostly unusable. 

One cannot do this:

hanke at gloin:~/public_html/python$ cat test.psp
from mod_python import apache
from mod_python import psp

content = psp.PSP(req, string='test')


Because it will result in:

Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.3/site-packages/mod_python/psp.py", line 297, in handler

  File "/usr/lib/python2.3/site-packages/mod_python/psp.py", line 208, in run
    exec code in global_scope

  File "/home/hanke/public_html/python/test.psp", line 3, in ?
    from mod_python import psp

ImportError: cannot import name psp

It seems to me that the problem is already fixed upstream. See:


and more recent package versions (etch version) do not show the error.

It would be nice of a backport of a recent version could be provided as
it is not really easy to backport python-related packages these days.



GPG key:  1024D/3144BE0F Michael Hanke
ICQ: 48230050

More information about the Python-modules-team mailing list