Hi Brian,

Although we can deploy to production using 2.7, accessing /mapreduce
fails:

Traceback (most recent call last):
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/runtime/wsgi.py", line 168, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/python27_runtime/python27_lib/versions/1/google/
appengine/runtime/wsgi.py", line 217, in _LoadHandler
    __import__(cumulative_path)
ImportError: No module named application

The app.yaml is set like this:

- url: /mapreduce(/.*)?
  script: google.appengine.ext.mapreduce.application
  login: admin

Thanks for your help!

On Nov 11, 1:26 pm, Brian Quinlan <bquin...@google.com> wrote:
> Hi Pol,
>
> On Sat, Nov 12, 2011 at 7:46 AM, Pol <p...@everpix.net> wrote:
> > Indeed the problem is the parsing of app.yaml:
> > - url: /mapreduce(/.*)?  script: $PYTHON_LIB/google/appengine/ext/
> >mapreduce/main.py  login: admin- url: /ereporter.*  script:
> > $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py  login:
> > admin
> > So what do I use instead for script paths?
>
> script: google.appengine.ext.mapreduce.application
> script: google.appengine.ext.ereporter.report_generator.main.APP
>
> > Looking into the SDK
> > source, these extensions are not2.7multithreaded ready.
>
> How so?
>
> Cheers,
> Brian
>
>
>
>
>
>
>
> > On Nov 10, 6:10 pm, Brian Quinlan <bquin...@google.com> wrote:
> >> On Fri, Nov 11, 2011 at 2:44 AM, Pol <p...@everpix.net> wrote:
> >> > Hi,
>
> >> > What are the plans to get these 2 extensions compatible with Python
> >> >2.7multithreaded?
>
> >> > $PYTHON_LIB/google/appengine/ext/mapreduce/main.py
> >> > $PYTHON_LIB/google/appengine/ext/ereporter/report_generator.py
>
> >> I assume that you are seeing an error during the parsing of your appcfg.py 
> >> file?
>
> >> The error message should say that you can't use a CGI with threadsafe.
> >> The solution is to use WSGI in your handlers instead i.e.
>
> >> google.appengine.ext.mapreduce.application
> >> google.appengine.ext.ereporter/report_generator.application
>
> >> Cheers,
> >> Brian
>
> >> > Thanks,
>
> >> > - Pol
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "Google App Engine" group.
> >> > To post to this group, send email to google-appengine@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > google-appengine+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to