2

Google Cloud Storage バケット オブジェクトの変更に関する通知を設定しようとしていますが、このコマンドで gsutil にサービス アカウントを使用させようとすると行き詰まります。

gcloud auth activate-service-account service-account-email --key-file path/to/key.p12

コマンドラインに表示されるエラーは次のとおりです。

ERROR: (gcloud.auth.activate-service-account) PyOpenSSL is not available. If you have already installed PyOpenSSL, you will need to enable site packages by setting the environment variable CLOUDSDK_PYTHON_SITEPACKAGES to 1. If that does not work, See https://developers.google.com/cloud/sdk/crypto for details.

この指示に従って、 pyOpenSSL を取得しました。そのパッケージについてpipに尋ねると、インストールされていることがわかります

$ pip show pyopenssl
---
Name: pyOpenSSL
Version: 0.14
Location: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Requires: cryptography, six

env コマンドを呼び出すと、環境変数も表示されます

$ env
...
CLOUDSDK_PYTHON_SITEPACKAGES=1

私は何か間違ったことをしていますか?

4

1 に答える 1