Компьютерная система: macOS Mojave, 10.14.4
при запуске gcloud init выдает ошибку
ERROR: gcloud failed to load: Error when calling the metaclass bases
Cannot create a consistent method resolution
order (MRO) for bases ordereddict, MutableMapping, CommentedBase
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import display
from googlecloudsdk.core.resource import resource_printer
from googlecloudsdk.core.resource import yaml_printer
from googlecloudsdk.core.yaml import dict_like
from googlecloudsdk.core import yaml_location_value
from ruamel import yaml
from ruamel.yaml.main import * # NOQA
from ruamel.yaml.loader import BaseLoader, SafeLoader, Loader, RoundTripLoader # NOQA
from ruamel.yaml.constructor import (
from ruamel.yaml.comments import * # NOQA
class CommentedMap(MutableMapping, ordereddict, CommentedBase):
cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
Cannot create a consistent method resolution
This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
Please verify that the following is the path to a working Python 2.7 executable:
/Users/IDK/.pyenv/versions/2.7.0/bin/python
If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 executable.
If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/
Каталог интерпретатора Python вычисляется
import sys
print(sys.executable)
и
Python -V
Возврат
Python 2.7
не уверен, стоит ли упоминать что-то еще?
, запустив
pip freeze
я получаю
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
однако мне нужен Python 2.7 для поддержки gcp ....
Другие обновления здесь,
при запуске команды,
./install.sh
Welcome to the Google Cloud SDK!
Traceback (most recent call last):
File "/Users/IDK/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
import bootstrapping
File "/Users/IDK/google-cloud- sdk/bin/bootstrapping/bootstrapping.py", line 44, in <module>
from googlecloudsdk.core.credentials import store as c_store
File "/Users/IDK/google-cloud- sdk/lib/googlecloudsdk/core/credentials/store.py", line 36, in <module>
from googlecloudsdk.core.credentials import creds
File "/Users/IDK/google-cloud-sdk/lib/googlecloudsdk/core/credentials/creds.py", line 40, in <module>
import sqlite3
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2 .7/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Vers ions/2.7/lib/python2.7/lib-dynload/_sqlite3.so, 2): Symbol not found: _sqlite3_enable_load_extension
Referenced from: /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2. 7/lib/python2.7/lib-dynload/_sqlite3.so
Expected in: /usr/lib/libsqlite3.dylib
in /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2. 7/lib/python2.7/lib-dynload/_sqlite3.so