Hello, 

I had similar error: 

ansible
Unexpected Exception: 'module' object has no attribute 
'_init_cffi_1_0_external_module'
the full traceback was:

Traceback (most recent call last):
  File "/home/pablo/setup/ansible/bin/ansible", line 74, in <module>
    from ansible.cli.adhoc import AdHocCLI as mycli
  File "/home/pablo/setup/ansible/lib/ansible/cli/adhoc.py", line 28, in 
<module>
    from ansible.executor.task_queue_manager import TaskQueueManager
  File 
"/home/pablo/setup/ansible/lib/ansible/executor/task_queue_manager.py", 
line 29, in <module>
    from ansible.executor.play_iterator import PlayIterator
  File "/home/pablo/setup/ansible/lib/ansible/executor/play_iterator.py", 
line 29, in <module>
    from ansible.playbook.block import Block
  File "/home/pablo/setup/ansible/lib/ansible/playbook/__init__.py", line 
25, in <module>
    from ansible.playbook.play import Play
  File "/home/pablo/setup/ansible/lib/ansible/playbook/play.py", line 27, 
in <module>
    from ansible.playbook.base import Base
  File "/home/pablo/setup/ansible/lib/ansible/playbook/base.py", line 35, 
in <module>
    from ansible.parsing.dataloader import DataLoader
  File "/home/pablo/setup/ansible/lib/ansible/parsing/dataloader.py", line 
33, in <module>
    from ansible.parsing.vault import VaultLib
  File "/home/pablo/setup/ansible/lib/ansible/parsing/vault/__init__.py", 
line 68, in <module>
    from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
  File 
"/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/kdf/pbkdf2.py",
 
line 12, in <module>
    from cryptography.hazmat.primitives import constant_time
  File 
"/usr/lib64/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.py",
 
line 9, in <module>
    from cryptography.hazmat.bindings._constant_time import lib
AttributeError: 'module' object has no attribute 
'_init_cffi_1_0_external_module'


with all dependencies for ansible installed. 

It was solved after removing: sudo dnf remove python-cryptography 

it solved the issue immediatelly. 

looks like there are some conflicts with python-crypt and 
python-cryptography.



El viernes, 15 de enero de 2016, 18:07:53 (UTC-3), tkuratomi escribió:
>
> If you're encountering this with the PPAs, the 2.0.0.1 
> python-setuptools was missing as a dependency in the debs that we 
> built for the PPA.  That can cause this error as well. The 2.0.0.2 PPA 
> build should have fixed that problem. 
>
> -Toshio 
>
> On Fri, Jan 15, 2016 at 12:05 PM, Srdjan Grubor <[email protected] 
> <javascript:>> wrote: 
> > I fixed this issue on my Ubuntu 15.10 machine by installing 
> python-paramiko, 
> > python-selinux, and python-crypto 
> > 
> > Try installing all dependencies from regular ansible package (apt-cache 
> show 
> > ansible) - you might have some missing. 
> > 
> > On Tuesday, September 22, 2015 at 9:52:41 AM UTC-5, [email protected] 
> wrote: 
> >> 
> >> Hi all. I hope you can help me investigating the problem why my ansible 
> >> installation does not want to run. 
> >> I get the following traceback in latest stable "release" as well as git 
> >> checkout: 
> >> 
> >> seadmin@aconf1a:/sw/ansible_gitclone/ansible/bin> ./ansible 
> >> Traceback (most recent call last): 
> >>   File "./ansible", line 40, in <module> 
> >>     from ansible.utils.display import Display 
> >>   File "/sw/ansible/lib/ansible/utils/display.py", line 35, in <module> 
> >>     from ansible import constants as C 
> >>   File "/sw/ansible/lib/ansible/constants.py", line 30, in <module> 
> >>     from ansible.parsing.splitter import unquote 
> >>   File "/sw/ansible/lib/ansible/parsing/__init__.py", line 32, in 
> <module> 
> >>     from ansible.parsing.vault import VaultLib 
> >>   File "/sw/ansible/lib/ansible/parsing/vault/__init__.py", line 53, in 
> >> <module> 
> >>     from Crypto.Hash import SHA256, HMAC 
> >>   File "build/bdist.linux-x86_64/egg/Crypto/Hash/HMAC.py", line 66, in 
> >> <module> 
> >>   File "build/bdist.linux-x86_64/egg/Crypto/Util/strxor.py", line 7, in 
> >> <module> 
> >>   File "build/bdist.linux-x86_64/egg/Crypto/Util/strxor.py", line 3, in 
> >> __bootstrap__ 
> >>   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 
> 90, 
> >> in <module> 
> >> AttributeError: 'module' object has no attribute '_vendor' 
> >> 
> >> My older 2.0.0 ansible installation is running properly. 
> > 
> > -- 
> > 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] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/89fbe424-4247-4138-af5d-db02a64b08a0%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/a460af2c-f4e7-4edd-89d3-1d951c1109b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to