For folks updating from the bundled python version, you need to reboot for the bundled python environment to not be used. If you can't reboot, then follow @arth's solution of passing export CLOUDSDK_PYTHON=$(which python3)
to solve it temporarily.
Search Criteria
Package Details: google-cloud-cli-component-gke-gcloud-auth-plugin 529.0.0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/google-cloud-cli.git (read-only, click to copy) |
---|---|
Package Base: | google-cloud-cli |
Description: | gke-gcloud-auth-plugin |
Upstream URL: | https://cloud.google.com/cli/ |
Keywords: | cloud gcloud gcp google sdk |
Licenses: | Apache-2.0 |
Conflicts: | google-cloud-cli-gke-gcloud-auth-plugin |
Provides: | google-cloud-cli-gke-gcloud-auth-plugin |
Submitter: | PolarianDev |
Maintainer: | jvybihal |
Last Packager: | jvybihal |
Votes: | 191 |
Popularity: | 0.48 |
First Submitted: | 2023-03-08 09:33 (UTC) |
Last Updated: | 2025-07-02 09:53 (UTC) |
Required by (0)
Sources (4)
bacteriostat commented on 2025-07-04 19:10 (UTC) (edited on 2025-07-04 19:11 (UTC) by bacteriostat)
arth commented on 2025-06-30 11:13 (UTC)
I've only mentioned it in case someone else experiences it. I don't think it's an issue with this package itself.
jvybihal commented on 2025-06-30 11:10 (UTC)
@arth I am quite confident it is not. I don't set it myself at all and gcloud has no problem finding python3 path. But if you find it to be a problem with the package after all, please dont hesitate to report it.
arth commented on 2025-06-30 11:03 (UTC) (edited on 2025-06-30 11:05 (UTC) by arth)
@jvybihal maybe it's required to set by gcloud itself:
# if $CLOUDSDK_PYTHON is not set, look for bundled python else
# prefer python3 over python
if [ -z "$CLOUDSDK_PYTHON" ]; then
# Is bundled python present and working?
ARCH=$(uname -m 2>/dev/null)
if [ -x "$CLOUDSDK_ROOT_DIR/platform/bundledpythonunix/bin/python3" ] && \
[ "$ARCH" = "x86_64" ] && \
"$CLOUDSDK_ROOT_DIR/platform/bundledpythonunix/bin/python3" --version > /dev/null 2>&1;
then
CLOUDSDK_PYTHON="$CLOUDSDK_ROOT_DIR/platform/bundledpythonunix/bin/python3"
CLOUDSDK_PYTHON_SITEPACKAGES=1
else
GLOBAL_CONFIG="$HOME/.config/gcloud"
jvybihal commented on 2025-06-30 10:59 (UTC)
@arth maybe recheck /etc/profile.d/google-cloud-cli.sh and/or if there is a .pacnew file. It looks, that you might have set python path to budled python somewhere. The package did that in the profile.d dir.
arth commented on 2025-06-30 10:55 (UTC)
Thanks for maintaining this package!
I encountered the following problem when using the CLI without the bundled Python installation:
/usr/bin/gcloud: line 199: /opt/google-cloud-cli/platform/bundledpythonunix/bin/python3: No such file or directory
I was able to fix it with the following workaround in my .zshrc:
export CLOUDSDK_PYTHON=$(which python3)
jvybihal commented on 2025-06-30 06:37 (UTC)
I did a split of the package to 3 packages: google-cloud-cli
, google-cloud-cli-bq
, google-cloud-cli-gsutil
. There is also package containing the bundled python for those who want it or as a dependency to the gsutil (current version 5.24 does not work with python 3.13 out-of-the-box, although 5.25 which is already available on github should).
I am also testing to include other "components".
If there will be interest, it's also possible to split the manpages to another package. So for those who don't want them, the install time can get faster and size significantly smaller.
I have tried not to break anyones installation, so please try to install the 3 mentioned packages and it should work the same as before.
You don't need bundled python for the gcloud to work, and I would advice to use gsutil
only if yo really have to. The prefered way is to use gcloud storage
anyway.
jvybihal commented on 2025-06-29 12:49 (UTC)
@artafinde the gcloud
is not the main problem. It worked with 3.13 fine for a long time. gsutil
on the other hand still does not. I just tested:
$ gsutil version
Error: gsutil requires Python version 3.8-3.12, but a different version is installed.
You are currently running Python 3.13
Follow the steps below to resolve this issue:
1. Switch to Python 3.8-3.12 using your Python version manager or install an appropriate version.
2. If you are unsure how to manage Python versions, visit [https://cloud.google.com/storage/docs/gsutil_install#specifications] for detailed instructions.
from the docs: //gsutil versions 5.35 or later require Python 3.9 to 3.13, which you can obtain by using your Python version manager or by installing an appropriate version.//
gcloud component is still gsutil 5.34, so hopefully there will be version bump soon. I already have PKGBUILD without the bundled python staged.
artafinde commented on 2025-06-27 07:10 (UTC) (edited on 2025-06-27 07:11 (UTC) by artafinde)
According to docs the gcloud now should support 3.13, right?
ScottE commented on 2025-06-09 16:21 (UTC)
Great to see the install time drop from many minutes to just a few seconds with the debug flag change. Thank you!
Pinned Comments
jvybihal commented on 2025-06-30 06:37 (UTC)
I did a split of the package to 3 packages:
google-cloud-cli
,google-cloud-cli-bq
,google-cloud-cli-gsutil
. There is also package containing the bundled python for those who want it or as a dependency to the gsutil (current version 5.24 does not work with python 3.13 out-of-the-box, although 5.25 which is already available on github should). I am also testing to include other "components".If there will be interest, it's also possible to split the manpages to another package. So for those who don't want them, the install time can get faster and size significantly smaller.
I have tried not to break anyones installation, so please try to install the 3 mentioned packages and it should work the same as before.
You don't need bundled python for the gcloud to work, and I would advice to use
gsutil
only if yo really have to. The prefered way is to usegcloud storage
anyway.