gcloud init stop working after upgrading to Fedoar 33 Beta

I’ve just upgraded to Fedora 33 beta and gcloud stop working:
$ gcloud init
Traceback (most recent call last):
File “/usr/lib64/google-cloud-sdk/lib/gcloud.py”, line 104, in
File “/usr/lib64/google-cloud-sdk/lib/gcloud.py”, line 62, in main
from googlecloudsdk.core.util import encoding
File “/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/init.py”, line 23, in
from googlecloudsdk.core.util import importing
File “/usr/lib64/google-cloud-sdk/lib/googlecloudsdk/core/util/importing.py”, line 23, in
import imp
File “/usr/lib64/python3.9/imp.py”, line 23, in
from importlib import util
File “/usr/lib64/python3.9/importlib/util.py”, line 2, in
from . import abc
File “/usr/lib64/python3.9/importlib/abc.py”, line 17, in
from typing import Protocol, runtime_checkable
File “/usr/lib64/python3.9/typing.py”, line 26, in
import re as stdlib_re # Avoid confusion with the re we export.
File “/usr/lib64/python3.9/re.py”, line 124, in
import enum
File “/usr/lib64/google-cloud-sdk/lib/third_party/enum/init.py”, line 26, in
spec = importlib.util.find_spec(‘enum’)
AttributeError: module ‘importlib’ has no attribute ‘util’

Tried to cahnge python version to 3.7 but got the same issue.

Hello @guyca …! Welcome to the community! Please do take a few minutes to go over the introductory posts in #start-here when you have the time. They contain lots of useful information.




There’s already a ticket on it.

also, try this

export CLOUDSDK_PYTHON=python3.7