Comments (11)
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.
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.
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.
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.
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.
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.
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.
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.
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.
[deleted comment]
from webapp-improved.
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)
- Insecure password hash function
- auth: Rollback Unique DS entries if user.put() fails
- PathPrefixRoute redirects when rest of route is empty but then 404s.
- lazy_gettext doesn't use current locale settings HOT 1
- Only one gettext domain is loadad, others get ignored
- webapp2_extras.auth:invalid cookie signature only warning but no action taken HOT 1
- webapp2_extract.security.hash_password arbitrary hash method can lead to denial of service attack
- plim adapter as a template engine
- uri_for and positional arguments is weird
- webapp2_extras.sessions.SessionDict.__slots__ and SessionDict.container are unused?
- uri_for and Route.build only work in the context of a request
- Doc for webapp2_extras.routes.RedirectRoute has an error
- Broken code in gettingstarted/usingwebapp2.html
- json.dump(data, self.response) is incredibly slow
- Exception when password is unset
- Redirect Route strict_slash fails on POST HOT 1
- Entries under PathPrefixRoute does not show full url when calling uri_for()
- Patch for /docs/tutorials/gettingstarted/usingwebapp2.rst
- Please add a kwarg to the Route object which makes trailing slash optional HOT 4
- Webapp2_extras.sessions with backend 'datastore' not working properly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapp-improved.