- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@openstack-gnocchi ~]# kolla-genpwd' Q9 d( ~. p" Y! w4 A, {
Traceback (most recent call last):
& q' S: }$ Y1 H/ s$ N File "/usr/bin/kolla-genpwd", line 5, in <module>7 f# e) l. A& {5 R. f
from kolla_ansible.cmd.genpwd import main
9 Y+ }( r- l1 Y0 s8 b( k File "/usr/lib/python2.7/site-packages/kolla_ansible/cmd/genpwd.py", line 24, in <module>* m( P3 @+ d$ y6 }, u
from cryptography.hazmat.primitives import serialization
5 u7 E' T5 l( U( U _ E2 z9 ~$ K File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/serialization/__init__.py", line 7, in <module>
" g/ b$ N+ _7 p: Z$ p1 w from cryptography.hazmat.primitives.serialization.base import (
0 Y/ b- u% p! m3 e3 {; ~ File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 13, in <module>& H6 @9 Q9 @' r
from cryptography.hazmat.backends import _get_backend
( p# B$ b& ^+ @5 J; U" `! vImportError: cannot import name _get_backend
' c' M3 m3 y. _2 ]
1 h. m8 e- e8 K/ B解决办法:
* y5 w, r, ?+ \1 z& J使用pip命令安装py
, Z4 m- }; G N# z% g1 J) ~! X; h) M[root@openstack-gnocchi ~]# pip install -I cryptography5 A. T6 N: L) s" I4 Q- ]
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.8 D9 ]" a+ |$ a8 h0 K3 s3 S
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/6 \; v" p. U: p: i3 e
Collecting cryptography
e& H8 R9 Y3 \/ M, o5 i! O Downloading http://mirrors.aliyun.com/pypi/packages/bf/a0/c630e9e3b7e7ea2492db1ca47ef7f741ef1a09f19c6642ef1a16ce996d9b/cryptography-3.3.2-cp27-cp27mu-manylinux2010_x86_64.whl (2.6 MB)
# H1 i9 U4 d' C7 U% }0 i7 A |████████████████████████████████| 2.6 MB 447 kB/s " Q7 t) L" s# c; F( O
Collecting six>=1.4.11 J/ k3 y4 ?: R0 Z) u1 |
Downloading http://mirrors.aliyun.com/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
' L+ w" [ T: MCollecting enum34; python_version < "3"
" P0 Q3 T' l2 o# R6 u" D Downloading http://mirrors.aliyun.com/pypi/packages/6f/2c/a9386903ece2ea85e9807e0e062174dc26fdce8b05f216d00491be29fad5/enum34-1.1.10-py2-none-any.whl (11 kB)
, |9 Y4 k% _( d! l9 U3 UCollecting ipaddress; python_version < "3"* z; y7 K" g) H. a) r0 G6 D
Downloading http://mirrors.aliyun.com/pypi/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)5 @0 i5 [% x* N" \% [, ^# ~$ E$ l. |
Collecting cffi>=1.12- B$ a$ U& R5 ^$ O0 B, y
Downloading http://mirrors.aliyun.com/pypi/packages/26/28/fb01ff898aa7c93e4774799b3dc0a3693cfee48c5ea4e524ce30e6b10e7e/cffi-1.15.0-cp27-cp27mu-manylinux1_x86_64.whl (393 kB)
5 l& ?: y7 G2 J* ~# F |████████████████████████████████| 393 kB 478 kB/s - B( S# A X. k# M
Collecting pycparser
0 Y3 x4 _- `) P% A5 } Downloading http://mirrors.aliyun.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
3 |6 v' z; [" G |████████████████████████████████| 118 kB 476 kB/s
2 q% d4 Q( b. U2 I6 D/ }Installing collected packages: six, enum34, ipaddress, pycparser, cffi, cryptography
( I6 }' i2 O. u9 \: [Successfully installed cffi-1.15.0 cryptography-3.3.2 enum34-1.1.10 ipaddress-1.0.23 pycparser-2.21 six-1.16.0
& k% J" \4 B$ y( r# f& \# T: D[root@openstack-gnocchi ~]# kolla-genpwd4 m K, u7 ~+ D2 K$ ]3 f
/usr/lib/python2.7/site-packages/kolla_ansible/cmd/genpwd.py:22: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.6 ~( {# o% s8 t+ ?/ C
from cryptography.hazmat.backends import default_backend
7 B7 {- L1 \0 l+ v' J$ Z. s) m
' w; h% o4 t7 M7 A) \3 e3 K1 E+ l8 X: h$ }, N
然后就又调到了这个问题上:
# V$ v. H4 u8 B. D2 W# [/ khttp://www.bbs168x.cn/forum.php?mod=viewthread&tid=2240&extra=
0 P' K/ j+ K5 L& b& I& E+ @) P
) i1 g' `( h3 _. ~, ?6 X- O- s r i5 a
* i" Y" V2 B5 [& c$ f/ Q1 h |
|