Whoops. You are using 2.2, so that probably needs to be 'production'
not 'embedded'. I think 'embedded' may be a 3.0 thing. Not sure if you
also have set set 'autoreload.on' to False and 'server.log_to_screen'
to False as well with 2.2.

Graham

On Oct 23, 9:28 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> You need to disable the autoreload feature of CherryPy when run inside
> of mod_python.
>
> In your CherryPy configuration file set the 'server.environment'
> setting in the global section to 'embedded'. Do not use 'development'.
>
> At least, from memory I think that is right. :-)
>
> Graham
>
> On Oct 23, 9:20 pm, Leandro Severino <[EMAIL PROTECTED]> wrote:
>
> > The error:
>
> > MOD_PYTHON ERROR
>
> > ProcessId:      17358
> > Interpreter:    'sitetg.com.br'
>
> > ServerName:     'sitetg.com.br'
> > DocumentRoot:   '/var/www/virtual/sitetg.com.br/htdocs'
>
> > URI:            '/'
> > Location:       '/'
> > Directory:      None
> > Filename:       '/var/www/virtual/sitetg.com.br/htdocs/'
> > PathInfo:       ''
>
> > Phase:          'PythonFixupHandler'
> > Handler:        'sitetg_modpython'
>
> > Traceback (most recent call last):
>
> >   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
> > 1537, in HandlerDispatch
> >     default=default_handler, arg=req, silent=hlist.silent)
>
> >   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
> > 1202, in _process_target
> >     module = import_module(module_name, path=path)
>
> >   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line
> > 304, in import_module
> >     return __import__(module_name, {}, {}, ['*'])
>
> >   File "/usr/lib/python2.5/site-packages/
> > turbogearsbrasil_modpython.py", line 13, in <module>
> >     cherrypy.server.start(initOnly=True, serverClass=None)
>
> >   File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
> > cherrypy/_cpserver.py", line 72, in start
> >     Engine.start(self)
>
> >   File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
> > cherrypy/_cpengine.py", line 91, in start
> >     autoreload.main(self._start, freq=freq)
>
> >   File "/usr/lib/python2.5/site-packages/CherryPy-2.2.1-py2.5.egg/
> > cherrypy/lib/autoreload.py", line 63, in main
> >     sys.exit(restart_with_reloader())
>
> > SystemExit: 2


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to