Hello:
I followed the instructions on
http://www.turbogears.org/docs/deployment/mod_python.html to start
running in production by get the following error--
================
Mod_python error: "PythonHandler mpcp"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/usr/lib/python2.4/site-packages/mpcp-1.2-py2.4.egg/mpcp.py",
line 77, in handler
setup(options)
File "/usr/lib/python2.4/site-packages/mpcp-1.2-py2.4.egg/mpcp.py",
line 61, in setup
mod = __import__(modname, globals(), locals(), [fname])
File "/opt/www/summitcamp/summitcamp_start.py", line 15, in ?
if len(sys.argv) > 1:
AttributeError: 'module' object has no attribute 'argv'
================
I found a post on Oct 13, 4:55 with the same problem, but the
resolution is not clear to me. I looks like I should have a separate
"quickstart" script for production: "Hm. len(sys.argv) ? This is
coming from the script that turbogears generated? The one you're
supposed to run as a standalone server? The script generated for me
doesn't have any reference to sys.argv. Here it is, posted below: ..."
But I have not no documentation for this.
Any help? Thanks, Andrew
Using TurboGears 0.8a4