Web2py + Google Cloud Endpoints: There is a way to make them work together ?

48 views
Skip to first unread message

Cláudio Bastos

unread,
Oct 14, 2014, 10:51:43 PM10/14/14
to web...@googlegroups.com
Hi, 

i'm struggling to make Web2py and Google Cloud Endpoints work together.

When I change app.yaml to include :


- url: /_ah/spi/.*
  script: my_api.application

libraries:
- name: pycrypto
  version: "2.6"

it tells me :


INFO     2014-10-14 23:42:24,845 module.py:659] default: "POST /_ah/spi/BackendService.getApiConfigs HTTP/1.1" 500 -
INFO     2014-10-14 23:42:24,846 module.py:659] default: "GET /_ah/api/discovery/v1/apis HTTP/1.1" 500 60
ERROR    2014-10-15 02:42:24,927 wsgi.py:262] 
Traceback (most recent call last):
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\runtime\wsgi.py", line 239, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\runtime\wsgi.py", line 298, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\runtime\wsgi.py", line 84, in LoadObject
    obj = __import__(path[0])
  File "C:\Devel\workspace\myproject\gaehandler.py", line 52, in <module>
    class MyApi(remote.service):
AttributeError: 'module' object has no attribute 'service'

So it's like it couldn't import protorpc module.
I checked my appengine sdk and see that there is protorpc/remote.py with Service class in there.

Does anyone know any way to make it happen?

Thanks


Victor

unread,
Nov 20, 2015, 1:52:05 AM11/20/15
to web2py-users
Hello, Carlos.
Did you manage to make this working?
Reply all
Reply to author
Forward
0 new messages