I didn't list my configs before, but following the wsgi mod_python
walkthrough on trac I get this error on windows after configuring apache,
modpython and installing my TG app using python setup.py install.

-------------------------
ERROR
-------------------------

Unrecoverable error in the server.
Traceback (most recent call last):
  File
"C:\Python24\lib\site-packages\cherrypy-2.2.1-py2.4.egg\cherrypy\_cpwsgi.py"
, line 68, in wsgiApp
    environ['wsgi.url_scheme'])
  File
"C:\Python24\lib\site-packages\cherrypy-2.2.1-py2.4.egg\cherrypy\_cpengine.p
y", line 170, in request
    raise cherrypy.NotReady("The CherryPy server has stopped.")
NotReady: The CherryPy server has stopped.

-------------------------
CONFIGS
-------------------------

-------------------------
HTTPD.CONF
-------------------------

AddDefaultCharset utf-8

<Location /python/>
        SetHandler python-program
        PythonHandler modpython_gateway::handler
        PythonOption wsgi.application cherrypy._cpwsgi::wsgiApp
        #PythonFixupHandler acs.acs_modpython   
        PythonOption import acs_modpython
        PythonDebug on
</Location>

<Directory /python>
        AllowOverride None
        Options -ExecCGI -Indexes -Multiviews +FollowSymLinks
        Order allow,deny
        Allow from all
</Directory>

---------------------------
ACS_MODPYTHON.PY
---------------------------

#!/usr/bin/env python

import pkg_resources
pkg_resources.require("TurboGears")

import cherrypy
import turbogears

turbogears.update_config(modulename="app.cfg")
turbogears.update_config(configfile="C:/tg/ACS/acs/prod.cfg")

from yourapp.controllers import Root

cherrypy.root = Root()
cherrypy.server.start(initOnly=True, serverClass=None)


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007
2:52 PM
 


--~--~---------~--~----~------------~-------~--~----~
 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