3

最近、Python を使用して Google Calendar API にアクセスしようとしていたため、サンプル プログラムをダウンロードしてコマンド ラインから実行し、ブラウザで認証を受け入れた後に次のエラーが発生しました。

  Traceback (most recent call last):
  File "sample.py", line 133, in <module>
    main(sys.argv)
  File "sample.py", line 102, in main
    credentials = run(FLOW, storage)
  File "C:\Python27\oauth2client\util.py", line 128, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Python27\oauth2client\tools.py", line 197, in run
    credential = flow.step2_exchange(code, http=http)
  File "C:\Python27\oauth2client\util.py", line 128, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Python27\oauth2client\client.py", line 1283, in step2_exchange
    headers=headers)
  File "C:\Python27\httplib2\__init__.py", line 1570, in request
    (response, content) = self._request(conn, authority, uri, request_uri, met
d, body, headers, redirections, cachekey)
  File "C:\Python27\httplib2\__init__.py", line 1317, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body,
aders)
  File "C:\Python27\httplib2\__init__.py", line 1258, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.ServerNotFoundError: Unable to find the server at accounts.google.com

なぜこれが起こっているのか誰にも分かりますか?

4

1 に答える 1

3

お使いのコンピュータは、インターネットへの IPv6 接続があると認識し、その接続を介して Google に接続しようとしているようです。残念ながら、実際には機能しません。お使いのコンピューターでIPv6 ( WindowsMacLinux ) を無効にしてみて、問題が解決するかどうかを確認してください。

于 2013-08-25T18:18:38.507 に答える