thanks Dan

This worked for me too

[root@myhost site-packages]# python -V
Python 2.6.6
[root@myhost site-packages]# lsb_release
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-
noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-
4.0-noarch
[root@myhost site-packages]# /usr/bin/ansible --version
Traceback (most recent call last):
  File "/usr/bin/ansible", line 36, in <module>
    from ansible.runner import Runner
ImportError: No module named runner


[root@myhost site-packages]# pwd
/usr/lib/python2.6/site-packages
[root@myhost site-packages]# ls -lrth | grep ansible
drwxr-xr-x.  4 root root 4.0K Sep 16 17:09 *ansible**-2.0.0-py2.6.egg*
drwxr-xr-x.  2 root root 4.0K Sep 17 17:58 ansible-1.9.2-py2.6.egg-info
drwxr-xr-x. 10 root root 4.0K Sep 17 17:58 ansible
[root@myhost site-packages]# rm -rf ansible-2.0.0-py2.6.egg 
[root@myhost site-packages]# /usr/bin/ansible --version
ansible 1.9.2
  configured module search path = None



On Monday, August 31, 2015 at 7:54:15 AM UTC-7, Dan Swartz wrote:
>
> Fixed it! Not sure exactly *how* this fixed it:
>
> sudo rm -rf /usr/local/lib/python2.7/dist-packages/ansible-2.0.0-py2.7.egg
>
> But that did the trick!
>
> On Mon, Aug 31, 2015 at 10:38 AM, Dan Swartz <[email protected] 
> <javascript:>> wrote:
>
>> *How I got here*:
>> I have been wanting to prepare for the upgrade to v2.0 for awhile now 
>> and, having just seen the alpha release, I thought I'd try it... super bad 
>> idea, it turns out. My whole environment is messed up. I had already 
>> apt-gotten it, but after this, I apt-removed it, deleted all leftover 
>> files, then reinstalled it.
>>
>> *My Current State*:
>> I reinstalled everything, unfortunately, my environment is still messed. 
>> I'm experiencing the following:
>>
>> $ ansible --version
>> Traceback (most recent call last):
>>   File "/usr/bin/ansible", line 36, in <module>
>>     from ansible.runner import Runner
>> ImportError: No module named runner
>> $ env | grep -i ansible
>> $ 
>>
>>
>> *What I need to know*: What commands/actions do I need to do to get my 
>> environment in a sane state again? I can tell you that my modules, etc, are 
>> in /usr/share/pyshared/ansible... should that be my ANSIBLE_LIBRARY? Any 
>> help would be greatly appreciated!
>>
>> *Some info*:
>>
>> # uname -a
>> Linux HOSTNAME 3.16.0-40-generic #54~14.04.1-Ubuntu SMP Wed Jun 10 
>> 17:30:45 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>> (Kubuntu)
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/ansible-project/mJ6ve0hvhbk/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/e956e6b1-0c0e-4c35-ae2c-dc32665b0d99%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/e956e6b1-0c0e-4c35-ae2c-dc32665b0d99%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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/5722b211-fc10-4991-9ea9-dcfef57ebc37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to