Fixed
Status Update
Comments
wu...@google.com <wu...@google.com> #2
try to to add codes below to your bash profile and restart your terminal:
export CLOUDSDK_PYTHON=python3.8
[Deleted User] <[Deleted User]> #3
I discovered this error was because of some malformed YAML in the environment file. Seems like you could provide a better error message here...
wu...@google.com <wu...@google.com> #4
please file a support case in your cloud console if you need support for your specific case or logs.
[Deleted User] <[Deleted User]> #5
I do not need a support case. I am reporting this crash in the gcloud
CLI utility...
Thanks.
wu...@google.com <wu...@google.com> #6
I have forward the issue to the team. any update will be post here.
wu...@google.com <wu...@google.com> #7
the team noticed that the issue has been fixed
Description
information in the report you file. In order to help diagnose the issue,
we've included some installation information in this report. Please look
through and redact any information you consider personal or sensitive
before submitting this issue.
What steps will reproduce the problem?
Try to deploy a function with a google.storage.object.finalize event-type trigger. Observe the crash.
What is the expected output? What do you see instead?
I expected the function to be deployed...
Please provide any additional information below.
gcloud was installed via the Fedora/CentOS/RHEL installation instructions on your documentation page.
My system is running Fedora 33.
I invoked gcloud with Python version 3.8.6.
Trace:
gcloud_main.py:185
gcloud_cli.Execute()
calliope/cli.py:1009
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
calliope/cli.py:1046
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
calliope/exceptions.py:522
core_exceptions.reraise(exc)
core/exceptions.py:146
six.reraise(type(exc_value), exc_value, tb)
six/__init__.py:693
raise value
calliope/cli.py:952
args = self.__parser.parse_args(_ApplyFlagsFile(argv))
calliope/parser_extensions.py:701
namespace, unknown_args, _ = self._ParseKnownArgs(args, namespace)
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
calliope/parser_extensions.py:665
namespace, unknown_args, error_context = self._ParseKnownArgs(
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
argparse/__init__.py:1735
namespace, args = self._parse_known_args(args, namespace)
argparse/__init__.py:1923
positionals_end_index = consume_positionals(start_index)
argparse/__init__.py:1900
take_action(action, args)
argparse/__init__.py:1809
action(self, namespace, argument_values, option_string)
calliope/parser_extensions.py:1231
super(CommandGroupAction, self).__call__(
argparse/__init__.py:1111
namespace, arg_strings = parser.parse_known_args(arg_strings, namespace)
calliope/parser_extensions.py:665
namespace, unknown_args, error_context = self._ParseKnownArgs(
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
argparse/__init__.py:1735
namespace, args = self._parse_known_args(args, namespace)
argparse/__init__.py:1923
positionals_end_index = consume_positionals(start_index)
argparse/__init__.py:1900
take_action(action, args)
argparse/__init__.py:1809
action(self, namespace, argument_values, option_string)
calliope/parser_extensions.py:1231
super(CommandGroupAction, self).__call__(
argparse/__init__.py:1111
namespace, arg_strings = parser.parse_known_args(arg_strings, namespace)
calliope/parser_extensions.py:665
namespace, unknown_args, error_context = self._ParseKnownArgs(
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
argparse/__init__.py:1735
namespace, args = self._parse_known_args(args, namespace)
argparse/__init__.py:1941
start_index = consume_optional(start_index)
argparse/__init__.py:1881
take_action(action, args, option_string)
argparse/__init__.py:1793
argument_values = self._get_values(action, argument_strings)
calliope/parser_extensions.py:1150
return super(ArgumentParser, self)._get_values(action, arg_strings)
argparse/__init__.py:2219
value = self._get_value(action, arg_string)
argparse/__init__.py:2248
result = type_func(arg_string)
command_lib/util/args/map_util.py:92
for key, value in map_file_dict.items():
AttributeError: 'str' object has no attribute 'items'
Installation information:
Google Cloud SDK [318.0.0]
Platform: [Linux, x86_64] uname_result(system='Linux', node='chansey', release='5.8.17-300.fc33.x86_64', version='#1 SMP Thu Oct 29 15:55:40 UTC 2020', machine='x86_64', processor='x86_64')
Locale: ('en_CA', 'UTF-8')
Python Version: [3.8.6 (default, Nov 12 2020, 11:09:54) [GCC 10.2.1 20201016 (Red Hat 10.2.1-6)]]
Python Location: [${HOME}/.pyenv/versions/3.8.6/bin/python3]
Site Packages: [Disabled]
Installation Root: [${SDK_ROOT}]
Installed Components:
gsutil: [4.54]
kubectl: [1.16.13]
alpha: [2020.11.06]
core: [2020.11.06]
beta: [2020.11.06]
bq: [2.0.62]
System PATH: [${HOME}/.pyenv/versions/3.8.6/bin:${HOME}/.pyenv/libexec:${HOME}/.pyenv/plugins/python-build/bin:${HOME}/.pyenv/plugins/pyenv-virtualenv/bin:${HOME}/.pyenv/plugins/pyenv-update/bin:${HOME}/.pyenv/plugins/pyenv-installer/bin:${HOME}/.pyenv/plugins/pyenv-doctor/bin:${HOME}/.pyenv/plugins/python-build/bin:${HOME}/.pyenv/plugins/pyenv-virtualenv/bin:${HOME}/.pyenv/plugins/pyenv-update/bin:${HOME}/.pyenv/plugins/pyenv-installer/bin:${HOME}/.pyenv/plugins/pyenv-doctor/bin:${HOME}/.pyenv/plugins/pyenv-virtualenv/shims:${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${HOME}/.cargo/bin:${HOME}/.pyenv/plugins/pyenv-virtualenv/shims:${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${HOME}/.cargo/bin:${HOME}/.cargo/bin:${HOME}/.cargo/bin:/usr/share/Modules/bin:/usr/lib64/ccache:${HOME}/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:${HOME}/bin:${HOME}/bin:${HOME}/go/bin:${HOME}/.node/bin:${HOME}/bin:${HOME}/.local/bin:${HOME}/go/bin:${HOME}/.node/bin:${HOME}/bin:${HOME}/.local/bin]
Python PATH: [${SDK_ROOT}/lib/third_party:${SDK_ROOT}/lib:${HOME}/.pyenv/versions/3.8.6/lib/python38.zip:${HOME}/.pyenv/versions/3.8.6/lib/python3.8:${HOME}/.pyenv/versions/3.8.6/lib/python3.8/lib-dynload]
Cloud SDK on PATH: [False]
Kubectl on PATH: [False]
Installation Properties: [${SDK_ROOT}/properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
Active Configuration Path: [${CLOUDSDK_CONFIG}/configurations/config_default]
Account: [k..e@u..a]
Project: [v..0]
Current Properties:
[core]
account: [k..e@u..a]
disable_usage_reporting: [True]
project: [v..0]
Logs Directory: [${CLOUDSDK_CONFIG}/logs]
Last Log File: [${CLOUDSDK_CONFIG}/logs/2020.11.12/11.22.52.144742.log]
git: [git version 2.28.0]
ssh: [OpenSSH_8.4p1, OpenSSL 1.1.1g FIPS 21 Apr 2020]