Package: libapache2-mod-python
Version: 3.1.3-3
Severity: important
Tags: sarge
Hi,
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:
[EMAIL PROTECTED]:~/public_html/python$ cat test.psp
<%
from mod_python import apache
from mod_python import psp
content = psp.PSP(req, string='test')
content.run()
req.write('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
p.run()
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:
http://issues.apache.org/jira/browse/MODPYTHON-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
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.
Thanks,
Michael
--
GPG key: 1024D/3144BE0F Michael Hanke
http://apsy.gse.uni-magdeburg.de/hanke
ICQ: 48230050
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]