Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working anymore under Ubuntu 22.04 #57

Open
clementprevot opened this issue Sep 13, 2022 · 2 comments
Open

Not working anymore under Ubuntu 22.04 #57

clementprevot opened this issue Sep 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@clementprevot
Copy link

Orb version:

0.15.0

What happened:

I tried to update the docker base image from cimg/base:2022.08 to cimg/base:2022.09.
This new version now uses Ubuntu 22.04 as the default version (latest LTS + 4 month) and my guess is that (like many other OS/distrib) this version of Ubuntu got rid of Python < 3.10.

Now running the orb (with gcp-gcr/gcr-auth) gives this error:

ERROR: gcloud failed to load: module 'collections' has no attribute 'MutableMapping'
gcloud_main = _import_gcloud_main()
import googlecloudsdk.gcloud_main
from googlecloudsdk.api_lib.iamcredentials import util as iamcred_util
from googlecloudsdk.api_lib.util import exceptions
from googlecloudsdk.core.resource import resource_printer
from googlecloudsdk.core.resource import config_printer
from googlecloudsdk.core.resource import resource_printer_base
from googlecloudsdk.core.resource import resource_projector
from google.protobuf import json_format as protobuf_encoding
from google.protobuf import symbol_database
from google.protobuf import message_factory
from google.protobuf import reflection
from google.protobuf.internal import python_message as message_impl
from google.protobuf.internal import containers
MutableMapping = collections.MutableMapping

This usually indicates corruption in your gcloud installation or problems with your Python interpreter.

Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
/usr/bin/python3

If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.

If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
https://cloud.google.com/sdk/

Exited with code exit status 1

Expected behavior:

It should work fine.

Additional Information:

/

@clementprevot clementprevot added the bug Something isn't working label Sep 13, 2022
@inobu inobu mentioned this issue Oct 6, 2022
6 tasks
@danopia
Copy link
Contributor

danopia commented Oct 13, 2022

It looks like cimg/node:lts just rolled over today to python 3.10, which broke a lot of my pipelines.

Please update the embedded gcp-cli orb reference!

@danopia
Copy link
Contributor

danopia commented Jan 2, 2023

It appears that gcp-gcr-orb 0.15.1 includes the fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants