3

GAE (Python 2.7 を使用する OS X 10.6.8 で 1.7.6) の使用を開始する際に問題があり、Amazon サービスと比較するとひどいものです。ただし、せめてサンプルアプリをデプロイしてもらいたいです。他の問題に取り組んだ後、小さなサンプル アプリケーションをデプロイする準備が整いました。デプロイしようとすると、次のような SSL エラーが表示されます。

 *** Running appcfg.py with the following flags:
    --no_cookies --email=mathsboy@gmail.com --passin update
02:15 PM Host: appengine.google.com
02:15 PM Application: tew-helloworld; version: 1
Traceback (most recent call last):
  File "google_appengine/appcfg.py", line 171, in <module>
    run_file(__file__, globals())
  File "google_appengine/appcfg.py", line 167, in run_file
    execfile(script_path, globals_)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4155, in <module>
    main(sys.argv)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4146, in main
    result = AppCfgApp(argv).Run()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2334, in Run
    self.action(self)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3881, in __call__
    return method()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2892, in Update
    updatecheck.CheckForUpdates()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/sdk_update_checker.py", line 258, in CheckForUpdates
    runtime=runtime))
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py", line 393, in Send
    f = self.opener.open(req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1207, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 383, in do_open
    url_error.reason.args[1])
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (_ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed): 
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***

別のスレッドで、このファイルを OS X で見つけることができませんが、cacerts.txt を削除する必要があるというアドバイスがありました。また、コードをアップロードするには、 cacert テキスト ファイルを削除します。でも多分私はバカです。

ここで私が直面しているもう 1 つの問題は、Python バージョンの管理が難しいため、OS X が GAE でうまく動作しないことです。Python、EPD、ActiveState、MacPorts の複数のバージョンをインストールした後、私は今、完全に混乱しています。これらのどれも、以前の問題を解決するという保証にもかかわらず、私が以前の問題を解決するのに役立ちませんでした. これが Google のアプリケーション管理の状態であることは、本当に恐ろしいことです。GAE は 90 年代半ばのマイクロソフトの多くの人によって構築されたようです....上記の問題に関するアドバイスをいただければ幸いです。乾杯

4

2 に答える 2

1

エラーの末尾から 4 行目。リンクの下の関連する手順。

http://code.google.com/appengine/kb/general.html#rpcssl

確認してください(ドキュメントから):

To do this you must have the ssl Python module installed on your system.

于 2013-03-27T08:38:18.770 に答える