I thought the same thing so I tried mv'ing conflicting files.

PYTHONPATH=/Users/jtr2/Development/github/ansible/lib:

Histogram:lib jtr2$ pwd

/Users/jtr2/Development/github/ansible/lib

Histogram:lib jtr2$ find . -name ec2.py -print

./ansible/module_utils/ec2.py

./ansible/modules/core/cloud/amazon/ec2.py

./ansible/utils/module_docs_fragments/ec2.py

mv ansible/utils/module_docs_fragments/ec2.py 
ansible/utils/module_docs_fragments/ec2.py.bak

But I still get the same result.  I'm scratching my head.

Any other ideas?

On Tuesday, January 19, 2016 at 10:42:30 AM UTC-6, Brian Coca wrote:
>
> some other ec2.py is being found in the python path and ansible is 
> trying to use it instead of the module 
>
> On Tue, Jan 19, 2016 at 11:09 AM, Jim Razmus II <[email protected] 
> <javascript:>> wrote: 
> > I'm running a simple play to create an ec2 instance and encountering the 
> > error mentioned in the subject.  Something must be wrong with my setup 
> but I 
> > don't know what it could be.  I'm running Ansible from a clone of the 
> repo 
> > on github.  I've sourced the hacking/env_setup file and have many other 
> > plays using other ec2_* modules that work.  I have boto and boto3 
> installed 
> > and I'm running on Mac OS 10.11.2. 
> > 
> > I'd sincerely appreciate any pointers on how to correct my setup. 
> > 
> > I've tried some of the plays documented with the ec2 module and always 
> get 
> > the same error.  Here's the play I'm trying to run: 
> > 
> > - ec2: 
> > 
> >     image: "{{ linux_image }}" 
> > 
> >     instance_type: "{{ instance_type }}" 
> > 
> >     key_name: "{{ key_name }}" 
> > 
> >     region: "{{ region }}" 
> > 
> >     state: present 
> > 
> >     vpc_subnet_id: "{{ public_subnet_a }}" 
> > 
> > 
> > The variables have appropriate values assigned.  I've even tried the 
> play 
> > with hard coded values and get the same error. 
> > 
> > What baffles me is that ec2 fails while all the other ec2_* modules 
> work. 
> > What am I missing? 
> > 
> > Thanks in advance, 
> > Jim 
> > 
> > -- 
> > 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/5caf6cd0-c3c5-47b4-aedf-818fee7e3512%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/038d03d4-6334-4ff9-9745-b4263c842971%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to