Git Product home page Git Product logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
I'm guessing this happens because:

- protorpc.service_handlers.ServiceHandler extends webapp.RequestHandler (which 
is webapp2.RequestHandler in the new runtime).
- webapp2_extras.protorpc.ServiceHandler extends webapp2.RequestHandler and 
protorpc.service_handlers.ServiceHandler.

I can provide a workaround for the new runtime.

Did you try to use protorpc directly? 

Original comment by rodrigo.moraes on 26 Aug 2011 at 11:53

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
Also: can I have a copy of the google.appengine.ext.webapp code used in the 2.7 
runtime? These things pass my tests but I'm of course using the current SDK 
webapp.

Original comment by rodrigo.moraes on 27 Aug 2011 at 9:15

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
Sorry for taking so long to answer to this.

I've been thinking on the subject and the best would be probably to remove 
webapp2_extras.protorpc. It is only usable with the 2.5 runtime, and has no 
reason to exist when webapp2 replaces webapp: it is protorpc that needs to 
support webapp2 in the 2.7 runtime, as it it did with webapp.

Original comment by rodrigo.moraes on 17 Sep 2011 at 8:28

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
I am trying to migrate from python2.5 to python2.7 in Google App Engine (SDK 
1.6). And got an error when trying GET ProtoRPC service on dev environment:

  File ".../google_appengine/google/appengine/runtime/wsgi.py", line 174, in Handle
    result = handler(self._environ, self._StartResponse)
  File ".../google_appengine/lib/webapp2/webapp2.py", line 1519, in __call__
    response = self._internal_error(e)
  File ".../google_appengine/lib/webapp2/webapp2.py", line 1511, in __call__
    rv = self.handle_exception(request, response, e)
  File ".../google_appengine/lib/webapp2/webapp2.py", line 1505, in __call__
    rv = self.router.dispatch(request, response)
  File ".../google_appengine/lib/webapp2/webapp2.py", line 1253, in default_dispatcher
    return route.handler_adapter(request, response)
  File ".../google_appengine/lib/webapp2/webapp2.py", line 1040, in __call__
    return self.handler(request, *args, **kwargs)
TypeError: __call__() takes exactly 1 argument (4 given)

If I change: "from protorpc.webapp import service_handlers" to "from 
webapp2_extras.protorpc import service_handlers"
then error the same as described above.

Application created with code as below:
application = 
webapp2.WSGIApplication(service_handlers.service_mapping([('/service', 
SomeService),]))

Could you provide some workaround how to use ProtoRPC with python2.7 in Google 
App Engine?

Original comment by [email protected] on 9 Nov 2011 at 9:12

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
I believe the ProtoRPC project should provide a way.

The webapp2_extras.protorpc package will be removed as it makes no sense to 
maintain it anymore.


Original comment by rodrigo.moraes on 10 Nov 2011 at 1:11

  • Changed state: WontFix

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
I have the same issue as Comment #4. Per Comment $5, I have created an issue 
for this under protorpc (Issue #38) : 
http://code.google.com/p/google-protorpc/issues/detail?id=38

Original comment by [email protected] on 24 Jan 2012 at 5:47

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
webapp2_extras.protorpc was removed from version 2.4. 

I'd like to support this but there's a bit too much magic involved, so better 
to have it as a separated, actively maintained project (or if protorpc project 
supports it by default).

Original comment by rodrigo.moraes on 24 Jan 2012 at 11:57

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
In the meantime, does anybody have a workaround for this?

Original comment by [email protected] on 6 Feb 2012 at 1:48

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
I'd like to mention that ProtoRPC is moving away from the webapp handler (in 
part because of the problem discussed here) and to a simpler WSGI based model.  
There is inadequate documentation at this time, however, I've updated the 
original ProtoRPC project page with an example that uses the new WSGI library.  
You can see it here:

  http://code.google.com/p/google-protorpc/

There is also support for multiple service handlers, however, the forms 
interface has not yet been ported.

Original comment by [email protected] on 30 Mar 2012 at 8:07

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
[deleted comment]

from webapp-improved.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 8, 2024
I copied and pasted your example on http://code.google.com/p/google-protorpc/ 
and it doesn't work. The new app.yaml files with .app require you to have an 
attribute called app. So I modified my file to use app = 
webapp.WSGIApplication(service_mappings), but then I get the same error as #4. 
Does protorpc on app engine actually work with 2.7 runtime at this point?

Original comment by [email protected] on 4 Apr 2012 at 3:20

from webapp-improved.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.