Package Details: google-cloud-cli 502.0.0-1

Git Clone URL: https://aur.archlinux.org/google-cloud-cli.git (read-only, click to copy)
Package Base: google-cloud-cli
Description: A set of command-line tools for the Google Cloud Platform. Includes gcloud (with beta and alpha commands), gsutil, and bq.
Upstream URL: https://cloud.google.com/cli/
Keywords: cloud gcloud gcp google sdk
Licenses: Apache-2.0
Conflicts: google-cloud-sdk
Provides: google-cloud-sdk
Replaces: google-cloud-sdk
Submitter: PolarianDev
Maintainer: jvybihal
Last Packager: jvybihal
Votes: 188
Popularity: 0.38
First Submitted: 2023-03-08 09:33 (UTC)
Last Updated: 2024-11-20 07:51 (UTC)

Dependencies (2)

Required by (15)

Sources (3)

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 21 22 23 24 25 26 27 28 29 30 31 Next › Last »

tengel commented on 2016-02-17 00:59 (UTC)

Thanks for the heads up - I've pushed a new 96.0.0-2 PKGBUILD with this sed in it.

rdoursenaud commented on 2016-02-16 08:46 (UTC)

Since latest update, I get the following error: Traceback (most recent call last): File "/tmp/aur-google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/install.py", line 8, in <module> import bootstrapping File "/tmp/aur-google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 9, in <module> import setup File "/tmp/aur-google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/bin/bootstrapping/setup.py", line 41, in <module> reload(google) ImportError: No module named google There's an issue opened upstream with a workaround: https://code.google.com/p/google-cloud-sdk/issues/detail?id=538 To apply it to the PKGBUILD, add this at the end of the prepare() section: cd "${srcdir}/${pkgname}" sed -i "s/'google' in sys.modules/False/" bin/bootstrapping/setup.py

tengel commented on 2016-01-17 13:57 (UTC)

Thanks, fixed up that word boundary in sed. Did a quick grep of the bin/ directory and it looks like everything's solid again.

FrozenCow commented on 2016-01-17 13:13 (UTC)

google-cloud-sdk already contains `CLOUDSDK_PYTHON=python2`. The current PKGBUILD results in `CLOUDSDK_PYTHON=python22`. I fixed this by changing the line: sed -i 's/CLOUDSDK_PYTHON=python/CLOUDSDK_PYTHON=python2/g' {} \; to: sed -i 's/CLOUDSDK_PYTHON=python\b/CLOUDSDK_PYTHON=python2/g' {} \;

vendion commented on 2015-12-17 11:52 (UTC)

@troyengel: Ah okay I wasn't aware that it checked if CLOUDSDK_PYTHON is set or not, I didn't logout and back in after installing so /etc/profile.d/google-cloud-sdk.sh was never sourced.

justin8 commented on 2015-12-17 02:08 (UTC)

The only exception to that I've encountered was OS X (not linux, but still). And the brew installed python adds it anyway. Alternatively you can export CLOUDSDK_PYTHON=python2 and then gcloud/gsutil/bq/etc will use the right pythong without modifications. but it's a bit stupid that they don't just default to python2 and fallback to python.

tengel commented on 2015-12-17 01:03 (UTC)

@tuxfusion - you've broken your python2 install. The symlink is created as part of the package: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/python2#n95 $ pacman -Qo /usr/bin/python2 /usr/bin/python2 is owned by python2 2.7.11-1 The use of a python2 link is used across all distributions (I had to do something for work that confirmed this - RHEL/CentOS 5, 6, 7, Debian, Ubuntu, etc.) so it's an expected configuration to be on almost every Linux out there besides Arch. (just FYI)

tuxfusion commented on 2015-12-16 15:18 (UTC)

I have the same python problem. /etc/profile.d/google-cloud-sdk.sh points to "python2" which doesn't exist on my system or the repo. Manually exporting "python2.7" instead works if it's installed. executing the .sh or restarting the terminal won't help here, I suppose.

tengel commented on 2015-12-13 13:58 (UTC)

@vendion - did you log out and back in (the terminal or desktop, depending on your setup) after installing it? That's Google's code, if the variable CLOUDSDK_PYTHON is null or doesn't equal python2 that strange logic of theirs is triggered. The AUR package adds /etc/profile.d/google-cloud-sdk.sh which is sourced when you log in to set up the basic envvars which set that var to python2.

vendion commented on 2015-12-13 03:15 (UTC)

Links against the wrong Python: /usr/bin/gcloud: line 119: python22: command not found That should probably be python2 or python2.7