Ansible installation error sorting

Source: Internet
Author: User

1. An error occurred while calling the ansible command after installation.

Successfully installed ansible

Cleaning up...

[[Email protected] python_src] # ansible -- version

Traceback (most recent call last ):

File "/usr/bin/ansible", line 25, in <module>

From ansible. Runner import runner

File "/usr/lib/python2.6/Site-packages/ansible/runner/_ init _. py", line 55, in <module>

From crypto. Random import atfork

File "/usr/lib64/python2.6/Site-packages/crypto/random/_ init _. py", Line 29, in <module>

From crypto. Random import _ userfriendlyrng

File "/usr/lib64/python2.6/Site-packages/crypto/random/_ userfriendlyrng. py", line 38, in <module>

From crypto. Random. Fortuna import fortunaaccumulator

File "/usr/lib64/python2.6/Site-packages/crypto/random/Fortuna/fortunaaccumulator. py", line 39, in <module>

Import fortunagenerator

File "/usr/lib64/python2.6/Site-packages/crypto/random/Fortuna/fortunagenerator. py", line 34, in <module>

From crypto. util. Number import ceil_shift, exact_log2, exact_div

File "/usr/lib64/python2.6/Site-packages/crypto/util/number. py", line 56, in <module>

If _ fastmath is not none and not _ fastmath. have_decl_mpz_powm_sec:

Attributeerror: 'module' object has no attribute 'have _ decl_mpz_powm_sec'


Solution:

Locate the 56 rows in/usr/lib64/python2.6/Site-packages/crypto/util/number. py.

if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:

Comment out

#if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:


2. Install the paramiko component

[[Email protected] python_src] # Pip install paramiko-1.15.1.tar.gz

Unpacking./paramiko-1.15.1.tar.gz

Running setup. py egg_info for package from file: // usr/local/src/python_src/paramiko-1.15.1.tar.gz

Requirement already satisfied (use -- upgrade to upgrade): pycrypto >= 2.1 ,! = 2.4 in/usr/lib64/python2.6/Site-packages (from paramiko = 1.15.1)

Downloading/unpacking ECDSA> = 0.11 (from paramiko = 1.15.1)

Cannot fetch Index base URL https://pypi.python.org/simple/

Cocould not find any downloads that satisfy the requirement ECDSA> = 0.11 (from paramiko = 1.15.1)

Cleaning up...

No distributions at all found for ECDSA >=0.11 (from paramiko = 1.15.1)

Storing complete log in/root/. Pip/PIP. Log

The ECDSA component is missing as prompted. Install the ECDSA component before installing the paramiko component.

PIP install ecdsa-0.11.tar.gz

Download link: https://pypi.python.org/pypi


This article is from the "kaerser" blog, please be sure to keep this source http://3699524.blog.51cto.com/3689524/1568887

Ansible installation error sorting

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.