Dan Kvasnicka wrote:
> >
> > Sorry to make you the tester on this, but I *am*
on vacation. ;)
> >
>
> OK, I'll just describe things I've recently bumped
into, taking into
> consideration that you're on vacation ;)
>
> When using the tutorial now, I get Internal Server
Error caused by
> NameError while processing modpython_gateway:
>
> Traceback (most recent call last):
> File
"/usr/lib/python2.4/site-packages/mod_python/apache.py&
quot;, line
> 299, in HandlerDispatchn result = object(req)
> File
"/usr/lib/python2.4/site-packages/modpython_gateway.py&
quot;, line
> 193, in handlern module = __import__(module_name,
globals(),
> locals(), [''])
> File
"/usr/lib/python2.4/site-packages/cherrypy/__init__.py&
quot;, line 88,
> in ?n
_cprequest.Request(_http.Host("localhost", 80),
> NameError: name '_cprequest' is not defined
>
> I checked __init__ in cherrypy and _cprequest is not
imported in that
> module at all, but is used. (So it's probably not the
cause I thought
> before -- with module names duplicity)
You know, I've wondered about that before and was never
successful in
tracking it down, since it always worked even without the
import. Guess
that's biting you now. Have you tried simply importing
_cprequest
inside __init__?
> When I replace modpython_gateway by cherrypy's native
_cpmodpy, there
> is no error but I get blank screen -- the module with
my app is not
> imported at all. I checked mod_python manual and I'm
not sure about
> your usage of PythonOption in "PythonOption import
> myapp.cherrypy::startapp". I don't think this line
will result in
> importing anything. But I might be wrong.
Right; bah. I suck at docs. That's a holdover from old code.
Use
"PythonOption wsgi.startup module::func" now
instead.
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|