This bit me enough times that i eventually added a task for it in my 
playbook for creating new ansible controllers.
Its NOT pretty.  But it works and i've had no ill issues from it.

#https://github.com/ansible/ansible/issues/276
 - name: Patch bug related to pycrypto
   lineinfile: dest=/usr/lib64/python2.6/site-packages/Crypto/Util/number.py
               regexp="{{item.regexp}}" line="{{item.line}}"
   with_items:
     - { regexp: "HAVE_DECL_MPZ_POWM_SEC", line: "#if _fastmath is not None 
and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:" }
     - { regexp: "PowmInsecureWarning", line: "# _warn('Not using 
mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack 
vulnerability.', PowmInsecureWarning)" }


On Monday, April 28, 2014 5:25:08 AM UTC-5, Jitendra Nalwaya wrote:
>
> *Trying to install ansible using 
> **ansible-1.3.4-0.git201404030000.el6.noarch.rpm 
> but it shows below error*
>
> *[root@xyzabc0170 installables]# rpm -ivh 
> ansible-1.3.4-0.git201404030000.el6.noarch.rpm*
> Preparing...                ########################################### 
> [100%]
>    1:ansible                ########################################### 
> [100%]
> *[root@xyzabc0170 installables]# ansible*
> Traceback (most recent call last):
>   File "/usr/bin/ansible", line 24, 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.script import InventoryScript
>   File "/usr/lib/python2.6/site-packages/ansible/inventory/script.py", 
> line 25, in <module>
>     from ansible import utils
>   File "/usr/lib/python2.6/site-packages/ansible/utils/__init__.py", line 
> 67, 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'
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/23707784-cf5b-445f-bdc4-23f8b51f69ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to