[PEAK] problems with peak.web

Tiago Cogumbreiro cogumbreiro at gmail.com
Wed Mar 23 17:08:49 EST 2005


Hello again list,

I've tried running the 'trivial_web' example against Peak 0.5a3 and it
didn't work, this is the error message:

$ sh webapp.cgi
/usr/lib/python2.4/site-packages/protocols/zope_support.py:60:
DeprecationWarning: isImplementedBy has been renamed to providedBy
  if self.subject.isImplementedBy(obj):
Mar 23 21:02:52 morpheus peak.web.app[7830]: ERROR:
Mar 23 21:02:52 morpheus peak.web.app[7830]: Traceback (most recent
call last):Mar 23 21:02:52 morpheus peak.web.app[7830]:   File
"/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line
138, in publish
Mar 23 21:02:52 morpheus peak.web.app[7830]:     result =
publication.callObject(request, object)
Mar 23 21:02:52 morpheus peak.web.app[7830]:   File
"/usr/lib/python2.4/site-packages/peak/web/publish.py", line 193, in
callObject
Mar 23 21:02:52 morpheus peak.web.app[7830]:     return ob.render()
Mar 23 21:02:52 morpheus peak.web.app[7830]:   File
"/usr/lib/python2.4/site-packages/peak/web/places.py", line 111, in
render
Mar 23 21:02:52 morpheus peak.web.app[7830]:     return page.render(self)
Mar 23 21:02:52 morpheus peak.web.app[7830]:   File
"/usr/lib/python2.4/site-packages/peak/web/places.py", line 341, in
render
Mar 23 21:02:52 morpheus peak.web.app[7830]:     return
mapply(self.subject, request.getPositionalArguments(), request)
Mar 23 21:02:52 morpheus peak.web.app[7830]:   File
"/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line
104, in mapply
Mar 23 21:02:52 morpheus peak.web.app[7830]:     raise TypeError,
'Missing argument to %s(): %s' % (
Mar 23 21:02:52 morpheus peak.web.app[7830]: TypeError: Missing
argument to index_html(): ctx
Status: 500 The engines can't take any more, Jim!
Content-Length: 109
Content-Type: text/html;charset=utf-8
X-Powered-By: Zope (www.zope.org), Python (www.python.org)

<html><head><title>TypeError</title></head>
<body><h2>TypeError</h2>
A server error occurred.
</body></html>
Traceback (most recent call last):
  File "/usr/bin/peak", line 4, in ?
    commands.runMain( commands.Bootstrap )
  File "/usr/lib/python2.4/site-packages/peak/running/commands.py",
line 70, in runMain
    result = factory().run()
  File "/usr/lib/python2.4/site-packages/peak/running/commands.py",
line 211, in run
    return self._run() or 0
  File "/usr/lib/python2.4/site-packages/peak/running/commands.py",
line 855, in _run
    return self.cgiCommand.runCGI(
  File "/usr/lib/python2.4/site-packages/peak/web/publish.py", line
389, in runCGI
    return self.publish(request) or 0
  File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 152, in publish
    publication.endRequest(request, object)
AttributeError: 'Interaction' object has no attribute 'endRequest'


----end of output---

Why is it that I needed to install zope-libs to have the cgi working?
Will I have to do this when I need to deploy a peak product? Is there
a way to change the CGI "engine"?


-- 
Tiago Cogumbreiro <cogumbreiro at users.sf.net>

http://s1x.homelinux.net/



More information about the PEAK mailing list