Issue one:/usr/local/python27/lib/python2.7/site-packages/crypto/util/number.py:57:powminsecurewarning:not using Mpz_ Powm_sec. You should rebuild using LIBGMP >= 5 to avoid timing attack vulnerability.
Workaround:
If you encounter the above problems, due to the low GMP version is caused by:
To do this, we must download the source code from HTTPS://GMPLIB.ORG/DOWNLOAD/GMP/GMP-6.1.2.TAR.XZ
One, according to the description of the package:
Yum-y Groupinstall "Development tools" Yum-y install gcc libgcc glibc libffi-devel libxml2-devel libxslt-devel openssl-d Evel Zlib-devel Bzip2-devel Ncurses-devel Python-devel
Second, next, I have to install the latest GMP (at the time of writing this article) version:
wget https://gmplib.org/download/gmp/gmp-6.1.2.tar.xzxz-d gmp-6.1.2.tar.xztar-xvf Gmp-6.1.2.tar cd gmp-6.1.2./ Configure make make check <= is very important!! Make install
Third, next, I must uninstall the current version of Pycrypto (when writing this article)
If PIP is installed, then:
Pip Uninstall Pycrypto
If you compile manually, then:
CD pycrypto-2.6.1python setup.py install--record logcat Log | Xargs RM-RF
Iv. and download the new version directly from them:
wget HTTPS://FTP.DLITZ.NET/PUB/DLITZ/CRYPTO/PYCRYPTO/PYCRYPTO-2.6.1.TAR.GZTAR-ZXVF PYCRYPTO-2.6.1.TAR.GZCD Pycrypto-2.6.1./configurepython setup.py Install
Then I was able to run the Glance db_sync command from the document.
This article from the "Run on the Road" blog, reproduced please contact the author!
Python Error Summary