google glass quickstart for python -
i having trouble getting quickstart working properly. new python , gae , not full-time programmmer, have developed before. however, have python 2.7 , gae installed (win7), quickstart not tell me in app directory put generated "session.secret" file. put in app root "mirror-quickstart-python" folder. when try run app on dev webserver via gae launcher, throws errors (log shown below).
i have deployed sample app (guestbook), here: http://smlqadtest.appspot.com/ think close. far in python, had learn jinja2, pip, distribute_setup.py, , bunch of other stuff. looks needs pil, too, on win64 there seems issues witch lead me down rathole. not sure need that. anyway, i'd love on getting going! thanks! scott
=========gae launcher log console output=========== 2013-07-07 22:47:50 running command: "['c:\\python27\\python.exe', 'c:\\program files (x86)\\google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=9080', '--admin_port=8001', 'c:\\users\\sml\\documents\\github\\mirror-quickstart-python']" info 2013-07-07 22:47:53,789 devappserver2.py:528] skipping sdk update check. warning 2013-07-07 22:47:53,808 api_server.py:314] not initialize images api; missing python "pil" module. info 2013-07-07 22:47:53,821 api_server.py:138] starting api server at: http://localhost:61560 info 2013-07-07 22:47:53,825 dispatcher.py:164] starting server "default" running at: http://localhost:9080 info 2013-07-07 22:47:53,831 admin_server.py:117] starting admin server at: http://localhost:8001 info 2013-07-08 05:48:09,594 discovery.py:190] url being requested: https://www.googleapis.com/discovery/v1/apis/mirror/v1/rest?userip=127.0.0.1 info 2013-07-07 22:48:11,641 server.py:593] default: "get / http/1.1" 302 - error 2013-07-08 05:48:11,651 webapp2.py:1528] property "client_id" not configured. traceback (most recent call last): file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1511, in __call__ rv = self.handle_exception(request, response, e) file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1505, in __call__ rv = self.router.dispatch(request, response) file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1253, in default_dispatcher return route.handler_adapter(request, response) file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.3\webapp2.py", line 1077, in __call__ return handler.dispatch() file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.3\webapp2.py", line 547, in dispatch return self.handle_exception(e, self.app.debug) file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.3\webapp2.py", line 545, in dispatch return method(*args, **kwargs) file "c:\users\sml\documents\github\mirror-quickstart-python\oauth\handler.py", line 55, in flow = self.create_oauth_flow() file "c:\users\sml\documents\github\mirror-quickstart-python\oauth\handler.py", line 42, in create_oauth_flow flow = flow_from_clientsecrets('client_secrets.json', scope=scopes) file "lib\oauth2client\util.py", line 128, in positional_wrapper return wrapped(*args, **kwargs) file "lib\oauth2client\client.py", line 1343, in flow_from_clientsecrets client_type, client_info = clientsecrets.loadfile(filename, cache=cache) file "lib\oauth2client\clientsecrets.py", line 145, in loadfile return _loadfile(filename) file "lib\oauth2client\clientsecrets.py", line 108, in _loadfile return _validate_clientsecrets(obj) file "lib\oauth2client\clientsecrets.py", line 85, in _validate_clientsecrets 'property "%s" not configured.' % prop_name) invalidclientsecretserror: property "client_id" not configured. info 2013-07-07 22:48:11,673 server.py:593] default: "get /auth http/1.1" 500 228 info 2013-07-07 22:48:11,786 server.py:593] default: "get /favicon.ico http/1.1" 404 154 =============================================
the error message indicates haven't set client id project:
error ... property "client_id" not configured.
edit client_secrets.json
, populate values take api console per this step in setup process.
for example, if apis console looks this: client_secrets.json
this:
{ "web": { "client_id": "1234.apps.googleusercontent.com", "client_secret": "its_a_secret_to_everybody", "redirect_uris": [ ], "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://accounts.google.com/o/oauth2/token" } }
Comments
Post a Comment