One ansible troubleshooting

Source: Internet
Author: User

When running ansbile, the following error occurs:
[[Email protected] pyhook-2014-06-09-17: 47: 17-2454] # ansible
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 37, in <module>
Import ansible. Inventory
File "/usr/lib/python2.6/Site-packages/ansible/inventory/_ init _. py", line 27, in <module>
From ansible. Inventory. ini import inventoryparser
File "/usr/lib/python2.6/Site-packages/ansible/inventory/INI. py", line 21, in <module>
From ansible. Inventory. Host import host
File "/usr/lib/python2.6/Site-packages/ansible/inventory/host. py", line 19, in <module>
From ansible import utils
File "/usr/lib/python2.6/Site-packages/ansible/utils/_ init _. py", line 88, in <module>
From keyczar. Keys import aeskey
File "/usr/lib/python2.6/Site-packages/keyczar/keys. py", line 34, in <module>
From crypto. publickey import DSA
File "/usr/lib64/python2.6/Site-packages/crypto/publickey/DSA. py", line 88, in <module>
From crypto. publickey import _ DSA, _ slowmath, pubkey
File "/usr/lib64/python2.6/Site-packages/crypto/publickey/_ DSA. py", line 30, in <module>
From crypto. publickey. pubkey import *
File "/usr/lib64/python2.6/Site-packages/crypto/publickey/pubkey. py", line 30, in <module>
From crypto. util. Number import *
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:
Rpm-Qa | grep Python-Crypto Delete All retrieved items
Then reinstall ansible
Reference: http://stackoverflow.com/questions/20881768/fastmath-error-in-python-have-decl-mpz-powm-sec

This article is from the "yaoshenshen" blog and will not be reproduced!

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.