2010年12月7日火曜日

GAE(google app engine) ssl のエラー 結局・・・

結局、
C:\Program Files\Google\google_appengine\google\appengine\tools\appengine_rpc.py
をコメントアウトしちまったよw

  1. class HttpRpcServer(AbstractRpcServer):  
  2. """Provides a simplified RPC-style interface for HTTP requests."""  
  3. DEFAULT_COOKIE_FILE_PATH = "~/.appcfg_cookies"  
  4. def __init__(self, *args, **kwargs):  
  5. self.certpath = os.path.normpath(os.path.join(  
  6. os.path.dirname(__file__), '..''..''..''lib''cacerts',  
  7. 'cacerts.txt'))  
  8. self.cert_file_available = os.path.exists(self.certpath)  
  9. super(HttpRpcServer, self).__init__(*args, **kwargs)  
  10. def _CreateRequest(self, url, data=None):  
  11. """Creates a new urllib request."""  
  12. req = super(HttpRpcServer, self)._CreateRequest(url, data)  
  13. #     if self.cert_file_available and fancy_urllib.can_validate_certs(): ←ココ  
  14. #       req.set_ssl_info(ca_certs=self.certpath)                         ←ココ  
  15. return req  def _Authenticate(self):  
  16. """Save the cookie jar after authentication."""  
  17. #     if self.cert_file_available and not fancy_urllib.can_validate_certs():←ココ  
  18. #       logger.warn("""ssl module not found.                                          ←ココ  
  19. # Without the ssl module, the identity of the remote host cannot be verified, and     ←ココ  
  20. # connections may NOT be secure. To fix this, please install the ssl module from      ←ココ  
  21. # http://pypi.python.org/pypi/ssl .                                                   ←ココ  
  22. # To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl .""")    ←ココ  
  23. super(HttpRpcServer, self)._Authenticate()    if self.cookie_jar.filename is not None and self.save_cookies:  
  24. logger.info("Saving authentication cookies to %s",  
  25. self.cookie_jar.filename)  
  26. self.cookie_jar.save()  

ぶっちゃけなんの解決にもならんかったけどw
誰か手とり足取り教えてくれー

※2011/02/02解決しましたー → GAE(google app engine) ssl のエラー 結局・・・解決した!

免責
この記事やプログラムによって生じた事故・損害などは一切保証致しません。ご自身の責任でご使用ください。

子育てブログ「おとう日記」はじめました。
興味ある方、是非ご覧下さい!
おとう日記

コピペプログラマの倉庫を作りました。
サンプルプログラムなど置いておきますのでお立ち寄り下さい。
コピペプログラマ倉庫


良ければ↓投票お願いします↓ m(._.)m ペコッ
人気ブログランキングへ

0 件のコメント:

コメントを投稿