Traceback (most recent call last):


 "/usr/lib64/google-cloud-sdk/lib/gcloud.py", line 104, in <module>

main()


 "/usr/lib64/google-cloud-sdk/lib/gcloud.py", line 62, in main

from googlecloudsdk.core.util import encoding


 "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/__init__.py", line 23, in <module>

from googlecloudsdk.core.util import importing


 "/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/util/importing.py", line 23, in <module>

import imp


 "/usr/lib64/python3.9/imp.py", line 23, in <module>

from importlib import util


 "/usr/lib64/python3.9/importlib/util.py", line 2, in <module>

from . import abc


 "/usr/lib64/python3.9/importlib/abc.py", line 17, in <module>

from typing import Protocol, runtime_checkable


 "/usr/lib64/python3.9/typing.py", line 26, in <module>

import re as stdlib_re
# Avoid confusion with the re we export.


 "/usr/lib64/python3.9/re.py", line 124, in <module>

import enum


 "/usr/lib64/google-cloud-sdk/lib/third_party/enum/__init__.py", line 26, in <module>

spec = importlib.util.find_spec('enum')
AttributeError: module 'importlib' has no attribute 'util'

Traceback (most recent call last):


 "a.py", line 14, in <module>

ret = Script(source, len(lines), len(lines[-1]), None).completions()


 "/home/XXX/.local/lib/python3.6/site-packages/jedi/api/__init__.py", line 182, in completions


c for c in completions


 "/home/XXX/.local/lib/python3.6/site-packages/jedi/api/__init__.py", line 184, in <listcomp>


or c._name.tree_name.get_definition().type in ('import_name', 'import_from')
AttributeError: 'NoneType' object has no attribute 'type'
