@sudoforge @ginjiruu
I received the same error in bash and fixed by installing https://archlinux.org/packages/core/x86_64/libxcrypt-compat/
as described here https://bbs.archlinux.org/viewtopic.php?pid=2022246#p2022246
(but now in community rather than aur)
due to dropping libcrypt.so.1
from glibc
.
Search Criteria
Package Details: google-cloud-cli 527.0.0-1
Package Actions
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: | 191 |
Popularity: | 0.67 |
First Submitted: | 2023-03-08 09:33 (UTC) |
Last Updated: | 2025-06-18 08:35 (UTC) |
Dependencies (2)
- python (python37AUR)
- python-crcmod (optional) – [gsutil] verify the integrity of GCS object contents
Required by (14)
- apollo-neo-env-manager-dev (optional)
- arkade-bin (requires google-cloud-sdk) (optional)
- gcsfuse (requires google-cloud-sdk) (optional)
- gcsfuse-bin (requires google-cloud-sdk) (optional)
- google-cloud-cli-firestore-emulator
- google-cloud-cli-gke-gcloud-auth-plugin
- google-cloud-sdk-app-engine-java (requires google-cloud-sdk)
- google-cloud-sdk-app-engine-python (requires google-cloud-sdk)
- google-cloud-sdk-app-engine-python-extras (requires google-cloud-sdk)
- google-cloud-sdk-datastore-emulator (requires google-cloud-sdk)
- k3sup-bin (requires google-cloud-sdk) (optional)
- porter-bin (requires google-cloud-sdk) (optional)
- repman (optional)
- repman-git (optional)
Sources (5)
Latest Comments
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 32 Next › Last »
cameronraysmith commented on 2022-02-25 16:19 (UTC)
mccurdyc commented on 2022-02-20 12:17 (UTC)
@sudoforge export CLOUDSDK_PYTHON=$(which python3)
also fixed it for me on zsh
. Thanks!
sudoforge commented on 2022-02-15 21:55 (UTC)
To those curious: ginjiruu was using fish
, which apparently doesn't source /etc/profile
, causing the CLOUDSDK_PYTHON
variable to be unset (among other important variables). Specifically, when CLOUDSDK_PYTHON
is unset, gcloud
uses a vendored python3
executable, which wasn't linked appropriately.
I will likely remove this bundled python in future releases.
sudoforge commented on 2022-02-15 16:32 (UTC)
@ginjiruu Please open an issue using the issue tracker, and I'll follow up with you today to debug this issue specific to your environments.
ginjiruu commented on 2022-02-15 16:07 (UTC)
@sudoforge I don't believe so. Was able to build version 371 just fine with the same shell config. First system tried was a local arch installation and the other was a wsl2 install that also succeeded on version 371 and is also having issues now
sudoforge commented on 2022-02-15 15:54 (UTC) (edited on 2022-02-15 16:03 (UTC) by sudoforge)
@ginjiruu This does not occur in a clean chroot, nor on my local system (outside of a chroot). Are you building this in a python virtual environment, or do you otherwise have a python virtual environment active in the shell session you are attempting to build it in?
Edit: And to be clear, you are encountering this error when building the package on your systems (as opposed to encountering it when running commands), correct?
ginjiruu commented on 2022-02-15 15:38 (UTC) (edited on 2022-02-15 15:40 (UTC) by ginjiruu)
Version 372.0.0-1 is giving me the error
/opt/google-cloud-sdk/platform/bundledpythonunix/bin/python3: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
despite having the various ssl packages installed. Repeated on 2 separate computers.
sudoforge commented on 2022-02-04 15:14 (UTC)
@rsaxena correct, 371.0.0-4 updates the patch to cover a new use of collections.Mapping
that was introduced in 370.0.0 and missed (because my pipeline does not test every possible command; although this is something I'm aiming to resolve in the upcoming weeks).
Somewhat hilariously, 370.0.0
actually introduced the removal of a workaround to support the collections -> collections.abc
change for newer versions of Python.
➜ diff {369,370}/platform/bq/bigquery_client.py | head -10
--- 369/platform/bq/bigquery_client.py 1980-01-01 01:00:00.000000000 -0700
+++ 370/platform/bq/bigquery_client.py 1980-01-01 01:00:00.000000000 -0700
@@ -58,9 +58,6 @@
_GCS_SCHEME_PREFIX = 'gs://'
-collections_abc = collections
-if sys.version_info > (3, 8):
- collections_abc = collections.abc
rsaxena commented on 2022-02-04 09:35 (UTC)
With the new patch (v. 371.0.0-4) it is working for me, Python 3.10.2
ayr-ton commented on 2022-02-03 15:18 (UTC)
The current version is failing with Python 3.10.1:
└─[$] bq
Traceback (most recent call last):
File "/opt/google-cloud-sdk/platform/bq/bq.py", line 63, in <module>
import bigquery_client
File "/opt/google-cloud-sdk/platform/bq/bigquery_client.py", line 6755, in <module>
class ApiClientHelper(object):
File "/opt/google-cloud-sdk/platform/bq/bigquery_client.py", line 6761, in ApiClientHelper
class Reference(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'
└─[$] python -V
Python 3.10.1
I will investigate more later and provide details if I find the reason.
Pinned Comments