Reputation: 13
I have trouble running gcloud
commands after gcloud components update.
I'm using VS code Ubuntu 20.04. The error I get is:
ile "/home/user/google-cloud-sdk/lib/googlecloudsdk/core/util/encoding.py", line 41, in Encode
if not six.PY2:
AttributeError: module 'six' has no attribute 'PY2'
I have installed six module.
I've installed six with:
pip install six
I've set CLOUDSDK_PYTHON=/home/user/.pyenv/versions/3.10.0/bin/python3.10.
When executing Python3.10, and import six and print(six.PY2)
everything works fine, and I don't get error. Only when executing gcloud
commands.
What could be the reason for this?
The output of pip show six
:
Name: six
Version: 1.16.0
Summary: Python 2 and 3 compatibility utilities
Home-page: https://github.com/benjaminp/six
Author: Benjamin Peterson
Author-email: [email protected]
License: MIT
Location: /home/user/.pyenv/versions/3.10.0/lib/python3.10/site-packages
Upvotes: 0
Views: 153