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

"Old version of cryptography" warning when using gsutil installed from snap #999

Open
mohamedhafez opened this issue Apr 30, 2020 · 11 comments

Comments

@mohamedhafez
Copy link

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)
@jamgregory
Copy link

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

@danielemiliogarcia
Copy link

what about running gcloud components update? @jamgregory @mohamedhafez

@bobvanluijt
Copy link

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/

@bobvanluijt
Copy link

For me the solution was: sudo snap refresh google-cloud-sdk

@jamgregory
Copy link

@bobvanluijt - I'm not currently running the Google Cloud SDK through snap, so this wouldn't work for me.

@bobvanluijt
Copy link

@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 ;-) )

@jamgregory
Copy link

I've just checked, and SDK version 292 appears to have been released, which seems to fix this issue on Ubuntu 18.04.

@tykwak-deepbio
Copy link

I am still experiencing the warning message with snap installed google-cloud-sdk v294 (rev 133) on ubuntu 18.04.

@sephethus
Copy link

I keep getting this warning after snap refresh:

google-cloud-sdk 321.0.0 from Cloud SDK (google-cloud-sdk✓) refreshed

Any news here?

@samodadela
Copy link

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.

@biodavidjm
Copy link

Same thing here:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants