TypeError when running CherryPy with Apache2 and mod_python

9 views
Skip to first unread message

Andre

unread,
Mar 25, 2011, 11:04:58 AM3/25/11
to cherrypy-users
Greetings CheeryPy users!

I'm attempting to run a simple cherrypy webapp served by Apache2
(https) via mod_python.
(I chose the mod_python method cause I already have a website hosted
on this server and I would like my cherrypy webapp to share the same
https port, authentication, etc...)

To start I simply based my test app on the instructions at
http://www.cherrypy.org/wiki/ModPython


Everything looks fine until I try to access one of the exposed
method. The browser returns:

Unrecoverable error in the server.

and the log file contains:

[25/Mar/2011:10:38:38] ENGINE Bus STARTING
[25/Mar/2011:10:38:38] ENGINE Started monitor thread
'_TimeoutMonitor'.
[25/Mar/2011:10:38:38] ENGINE Bus STARTED
[25/Mar/2011:10:38:38] MOD_PYTHON Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/cherrypy/_cpmodpy.py",
line 228, in handler
response.body, response.stream)
File "/usr/local/lib/python2.7/site-packages/cherrypy/_cpmodpy.py",
line 241, in send_response
req.status = int(status[:3])
TypeError: 'int' object is not subscriptable

This is running on an OpenSuse 11.4 system, with the following:
apache2-mod_python-3.3.1-161.3.1.x86_64
apache2-2.2.17-3.1.x86_64

Anyone else experienced this problem before? Could this be related to
the fact that I'm running it over HTTPS?

Any help with this will be much appreciated.

Best regards,
Andre

daniel

unread,
Jul 19, 2011, 11:29:25 AM7/19/11
to cherryp...@googlegroups.com
Hello Andre,

I ran into the same bug today. It has been fixed.
see: http://www.cherrypy.org/ticket/1051

regards!
Reply all
Reply to author
Forward
0 new messages