Quantcast

TypeError when running CherryPy with Apache2 and mod_python

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

TypeError when running CherryPy with Apache2 and mod_python

Andre-53
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

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Aw: TypeError when running CherryPy with Apache2 and mod_python

daniel-441
Hello Andre,

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

regards!

--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cherrypy-users/-/bWUonCnhokUJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.
Loading...