2006/2/16, Jorge Godoy <[EMAIL PROTECTED]>:
>
> Ksenia Marasanova <[EMAIL PROTECTED]> writes:
>
> > I can't describe exactly under which conditions does it happen, but it
> > "seems" that cherrypy process sometimes just *dies* in the production
> > mode (when started with ./start-projectname.py prodcfg.py &)
> >
> > Did anybody ever experiences this problem??
>
> What's in your log? Isn't it the 'NoneType' error? It happens here too, but
> I see the same thing when in development and it is this NoneType problem...
No, in my case it's ImportError, but this error occures all the time,
without killing the process... I have "default" method of the Root
controller that loads the template based on requested url. I don't
have (yet) any check on existance of template file.
So the last error from the log before process died is:
15/Feb/2006:17:14:07 HTTP INFO Page handler: <bound method
Root.default of <kolibri.controllers.Root object at
0x892a14c>>Traceback (most recent call last): File
"/usr/local/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 98, in _run self.main() File
"/usr/local/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 246, in main body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in default File
"/usr/local/www/3rdparty/tg/turbogears/controllers.py", line 184, in
expose func, tg_format, html, fragment, *args, **kw) File
"/usr/local/www/3rdparty/tg/turbogears/database.py", line 193, in
run_with_transaction retval = func(*args, **kw) File
"/usr/local/www/3rdparty/tg/turbogears/controllers.py", line 201, in
_execute_func return _process_output(tg_format, output, html,
fragment) File
"/usr/local/www/3rdparty/tg/turbogears/controllers.py", line 64, in
_process_output fragment=fragment)
File "/usr/local/www/3rdparty/tg/turbogears/view.py", line 60, in render
return engine.render(info, format, fragment, template)
File "/usr/local/www/3rdparty/tg/plugins/kid/turbokid/kidsupport.py",
line 83, in render
tclass = self.load_template(template)
File "/usr/local/www/3rdparty/tg/plugins/kid/turbokid/kidsupport.py",
line 55, in load_template
"%s.kid" % basename)
File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/pkg_resources.py",
line 676, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
File
"/usr/local/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg/pkg_resources.py",
line 119, in get_provider
__import__(moduleOrReq)
ImportError: No module named x
--
Ksenia
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---