On Fri, Oct 14, 2011 at 12:10:09AM +1030, Emlyn wrote:
> I'm trying to give python 2.7 a go, with an app that uses
> deferred.defer. I'm getting this error when I try to upload it:
> 
> Error 400: --- begin server output ---
> Error when loading application configuration:
> Invalid object:
> Threadsafe cannot be enabled with CGI handler:
> $PYTHON_LIB/google/appengine/ext/deferred/handler.py
> 
> Is there a workaround? Or should I even be using deferred.defer in this 
> context?

The easiest way to solve this problem is to remove the explicit handler
you are defining, and use the builtin directive as described in
http://code.google.com/appengine/docs/python/config/appconfig.html#Builtin_Handlers

If you are running the deferred handler at non-default url, you will
need to specify the WSGI application in your app.yaml. This is
google.appengine.ext.deferred.application

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to