Python Error Summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.