#env
centos7
python 3.6.8
以下の通りアップデートをしようとすると
pip install --upgrade google-cloud-speech
以下のようなエラーが出ます。
from google.longrunning import operations_pb2 ImportError: cannot import name 'operations_pb2'
参考にさせて頂いたURL
https://cloud.google.com/datastore/docs/reference/data/rpc/google.longrunning
https://qiita.com/puriketu99/items/a1347bf5200f095e486e
https://github.com/googleapis/google-cloud-python/issues/6282
https://googleapis.github.io/google-cloud-python/latest/_modules/google/api_core/operations_v1/operations_client.html
エラーの全文は以下になります。よろしくお願いいたします。
Traceback (most recent call last): File "/usr/local/bin/pip3", line 7, in <module> from pip._internal import main File "/usr/local/lib/python3.6/site-packages/pip/_internal/__init__.py", line 40, in <module> from pip._internal.cli.autocompletion import autocomplete File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module> from pip._internal.cli.main_parser import create_main_parser File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module> from pip._internal.models.search_scope import SearchScope File "/usr/local/lib/python3.6/site-packages/pip/_internal/models/search_scope.py", line 11, in <module> from pip._internal.utils.misc import normalize_path, redact_password_from_url File "/usr/local/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 21, in <module> from pip._vendor import pkg_resources File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3241, in <module> @_call_aside File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3225, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3269, in _initialize_master_working_set for dist in working_set File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3269, in <genexpr> for dist in working_set File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2776, in activate declare_namespace(pkg) File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2275, in declare_namespace _handle_ns(packageName, path_item) File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2208, in _handle_ns loader.load_module(packageName) File "/usr/local/lib/python3.6/site-packages/google/cloud/speech.py", line 20, in <module> from google.cloud.speech_v1 import SpeechClient File "/usr/local/lib/python3.6/site-packages/google/cloud/speech_v1/__init__.py", line 17, in <module> from google.cloud.speech_v1.gapic import speech_client File "/usr/local/lib/python3.6/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 28, in <module> import google.api_core.operation File "/usr/local/lib/python3.6/site-packages/google/api_core/operation.py", line 45, in <module> from google.longrunning import operations_pb2 ImportError: cannot import name 'operations_pb2'
回答1件
あなたの回答
tips
プレビュー