<p>I am getting an error while running the following command. I have updated gcloud SDK but still facing same error.</p>

<pre><code>kubectl get nodes


Unable to connect to the server: error executing access token command "/Users/salayhin/google-cloud-sdk/bin/gcloud config config-helper --format=json": err=exit status 1 output= stderr=Traceback (most recent call last):
  File "/Users/salayhin/google-cloud-sdk/lib/gcloud.py", line 95, in &lt;module&gt;
    main()
  File "/Users/salayhin/google-cloud-sdk/lib/gcloud.py", line 54, in main
    from googlecloudsdk.core.util import encoding
  File "/Users/salayhin/google-cloud-sdk/lib/googlecloudsdk/__init__.py", line 23, in &lt;module&gt;
    from googlecloudsdk.core.util import lazy_regex
  File "/Users/salayhin/google-cloud-sdk/lib/googlecloudsdk/core/util/lazy_regex.py", line 25, in &lt;module&gt;
    from googlecloudsdk.core.util import lazy_regex_patterns
ImportError: cannot import name lazy_regex_patterns
</code></pre>

<p>It seems like it's just an error from the Google Cloud SDK happening <a href="https://github.com/google-cloud-sdk/google-cloud-sdk/blob/master/lib/googlecloudsdk/core/util/lazy_regex.py#L25" rel="nofollow noreferrer">here</a> indicating that you are probably missing <a href="https://github.com/google-cloud-sdk/google-cloud-sdk/blob/master/lib/googlecloudsdk/core/util/lazy_regex_patterns.py" rel="nofollow noreferrer">this file</a> on the same directory.</p>

<p>I would recommend re-install the <a href="https://cloud.google.com/sdk/" rel="nofollow noreferrer">Google Cloud SDK</a> on whatever system you are using.</p>
