Add gcloud to tool-info
What does this merge request do and why?
Recently my ELI5 project started to fail with:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/gosiaksionek/.asdf/installs/python/3.12.4/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/Users/gosiaksionek/eli5/eli5/main.py", line 3, in <module>
from eli5.cli import app
File "/Users/gosiaksionek/eli5/eli5/cli/__init__.py", line 2, in <module>
from eli5.cli.app import *
File "/Users/gosiaksionek/eli5/eli5/cli/app.py", line 25, in <module>
from eli5.cli import codesuggestions, datasets, duochat
File "/Users/gosiaksionek/eli5/eli5/cli/codesuggestions/__init__.py", line 1, in <module>
from eli5.cli.codesuggestions import evaluate
File "/Users/gosiaksionek/eli5/eli5/cli/codesuggestions/evaluate.py", line 7, in <module>
from eli5 import codesuggestions
File "/Users/gosiaksionek/eli5/eli5/codesuggestions/__init__.py", line 1, in <module>
from eli5.codesuggestions import clients, evaluators
File "/Users/gosiaksionek/eli5/eli5/codesuggestions/clients/__init__.py", line 7, in <module>
from eli5.codesuggestions.clients.vertexai import *
File "/Users/gosiaksionek/eli5/eli5/codesuggestions/clients/vertexai.py", line 10, in <module>
auth_token = subprocess.run(
^^^^^^^^^^^^^^^
File "/Users/gosiaksionek/.asdf/installs/python/3.12.4/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'gcloud auth print-access-token' returned non-zero exit status 126.
This addition fixed it.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.