简体   繁体   English

Devstack 安装错误:CryptographyDeprecationwarning: int_from_bytes is deprecated, use int.from_bytes instead

[英]Devstack installation error : CryptographyDeprecationwarning: int_from_bytes is deprecated, use int.from_bytes instead

Hello I am trying to install devstack on ubuntu 20.04 and I keep getting error您好,我正在尝试在 ubuntu 20.04 上安装 devstack,但我一直收到错误消息

Cryptographydepricationwarning: int_from_bytes is deprecated use int.from_bytes instead Cryptographydepricationwarning:int_from_bytes 已弃用,请改用 int.from_bytes

Does anyone knows how to solve it?有谁知道如何解决它?

Thanks in advance提前致谢

CryptographyDepricationWarning密码学剥夺警告

you need to pin an older version of cryptography, eg cryptography<3.4, that will satisfy SecretStorage's dependency and not throw deprecation warnings.您需要固定旧版本的密码学,例如 cryptography<3.4,它将满足 SecretStorage 的依赖性并且不会抛出弃用警告。 That means you should install cryptography<3.4 into your environment, and this version of cryptography should be picked up.这意味着您应该将 cryptography<3.4 安装到您的环境中,并且应该选择此版本的 cryptography。

To Do so:为此:

pip freeze | grep "cryptography"  #show current version of cryptography
sudo pip uninstall cryptography   #uninstall it
sudo pip install cryptography==3.3 #install new version <3.4 (here I chose 3.3)

I referred to this similar issue我提到了这个类似的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM