2

빠른 시작이 올바르게 작동하는 데 문제가 있습니다. 저는 파이썬과 GAE에 익숙하지 않습니다. 전 풀 타임 프로그래머는 아니지만 이전에 개발 한 적이 있습니다. 그러나, 파이썬 2.7 및 GAE 제대로 (win7) 설치되어 있지만 빠른 시작 응용 프로그램 디렉터리에 생성 된 "session.secret"파일을 넣을 곳을 말해주지 않습니다. 나는 그것을 응용 프로그램 루트 "mirror-quickstart-python"폴더에 넣었습니다. GAE 실행기를 통해 dev 웹 서버에서 응용 프로그램을 실행하려고하면 오류가 발생합니다 (아래 표시된 로그).파이썬을위한 google glass 빠른 시작

다른 샘플 앱 (방명록)을 성공적으로 배포했습니다. 여기에 http://smlqadtest.appspot.com/입니다. 그래서 가까이에 있다고 생각합니다. 파이썬으로 이것을 멀리하기 위해서, 나는 Jinja2, pip, distribute_setup.py와 다른 것들을 배워야했다. 그것도 PIL을 필요로하는 것처럼 보이지만, Win64에서는 문제 마녀가 나를 이끌어내는 것처럼 보입니다. 그러나 나는 그것이 필요한지 확신하지 못한다. 어쨌든, 나는 이것을 얻는 데 도움이 될 것입니다! 감사!

ERROR ... Property "client_id" is not configured. 

편집 client_secrets.json하고에 this step 당 API 콘솔에서 취할 값으로 채 웁니다 : 스콧

=========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-quickst​art-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] Could not initialize images API; you are likely missing the 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/mirro​r/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" is not configured. 

Traceback (most recent call last): 

File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\weba​pp2.py", line 1511, in __call__ 

rv = self.handle_exception(request, response, e) 

File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\weba​pp2.py", line 1505, in __call__ 

rv = self.router.dispatch(request, response) 

File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\weba​pp2.py", line 1253, in default_dispatcher 

return route.handler_adapter(request, response) 

File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\weba​pp2.py", line 1077, in __call__ 

return handler.dispatch() 

File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.3\weba​pp2.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\weba​pp2.py", line 545, in dispatch 

return method(*args, **kwargs) 

File "C:\Users\sml\Documents\GitHub\mirror-quickstart-p​ython\oauth\handler.py", line 55, in get 

flow = self.create_oauth_flow() 

File "C:\Users\sml\Documents\GitHub\mirror-quickstart-p​ython\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" is not configured.' % prop_name) 

InvalidClientSecretsError: Property "client_id" is 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 

============================================= 

답변

3

오류 메시지는 당신이 당신의 프로젝트에 대한 클라이언트 ID를 설정하지 않은 것을 나타냅니다 설치 과정.

예를 들어, API를 콘솔은 다음과 같습니다 경우 : enter image description here 은 다음 client_secrets.json이 같을 것이다 :

{ 
    "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" 
    } 
} 
+1

감사, 제니! 나는 생각 했었지만, 'session.secret'파일이 잘못된 디렉토리에있을 수도 있습니다. 처음부터 다시 시작했고 'beginner tips'블로그 게시물을 읽으세요. https://plus.google.com/u/0/110113915393251652573/posts/PSDJUyJNwJE – user2570699