I install the Cloud SDK on Ubuntu 18.04 via the snap package. when I run a gsutil command, I get the following warning:
/snap/google-cloud-sdk/129/lib/third_party/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
I'm getting the same issue with google-cloud-sdk
installed via apt on Ubuntu 18.04:
$ apt-cache policy google-cloud-sdk
google-cloud-sdk:
Installed: 291.0.0-0
Candidate: 291.0.0-0
$ apt-cache policy python-cryptography
python-cryptography:
Installed: 2.1.4-1ubuntu1.3
Candidate: 2.1.4-1ubuntu1.3
what about running gcloud components update
? @jamgregory @mohamedhafez
I'm having the same problem.
what about running
gcloud components update
? @jamgregory @mohamedhafez
results in:
ERROR: (gcloud.components.update) You cannot perform this action because this Cloud SDK installation is managed by an external package manager.
Please consider using a separate installation of the Cloud SDK created through the default mechanism described at: https://cloud.google.com/sdk/
For me the solution was: sudo snap refresh google-cloud-sdk
@bobvanluijt - I'm not currently running the Google Cloud SDK through snap, so this wouldn't work for me.
@bobvanluijt - I'm not currently running the Google Cloud SDK through snap, so this wouldn't work for me.
The point was more that updating the SDK solves the problem (regardless of the package manager ;-) )
I've just checked, and SDK version 292 appears to have been released, which seems to fix this issue on Ubuntu 18.04.
I am still experiencing the warning message with snap installed google-cloud-sdk v294 (rev 133) on ubuntu 18.04.
I keep getting this warning after snap refresh:
google-cloud-sdk 321.0.0 from Cloud SDK (google-cloud-sdk✓) refreshed
Any news here?
Same here:
$ sudo snap refresh google-cloud-sdk
google-cloud-sdk 321.0.0 from Cloud SDK (google-cloud-sdk✓) refreshed
$ gsutil ls
/var/lib/snapd/snap/google-cloud-sdk/162/lib/third_party/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
Same thing here:
```gcloud --version
Google Cloud SDK 322.0.0
alpha 2021.01.05
beta 2021.01.05
bq 2.0.64
core 2021.01.05
gsutil 4.57
and after running
sudo snap refresh google-cloud-sdk
$ gsutil ls
/snap/google-cloud-sdk/163/lib/third_party/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
```
still the same warning
Most helpful comment
For me the solution was:
sudo snap refresh google-cloud-sdk