Hi Eduardo, thanks for the feedback!

This problem is very strange indeed...

At my work, with pip 1.5.4 and Ansible 1.8.2, "ansible-doc --list" works!
Here, I have pip 1.5.6 and it doesn't work :(

One strange thing here is that when I make a "pip --version", insted
of simply showing the version I get this:

---
$ pip --version
/usr/local/lib/python2.7/dist-packages/pkg_resources.py:2425:
RuntimeWarning: 'apturl (0.4.1ubuntu4)' is being parsed as a legacy,
non PEP 440, version. You may find odd behavior and sort order. In
particular it will be sorted as less than 0.0. It is recommend to
migrate to PEP 440 compatible versions.
  RuntimeWarning,
/usr/local/lib/python2.7/dist-packages/pkg_resources.py:2425:
RuntimeWarning: 'python-apt (0.8.9.1ubuntu1)' is being parsed as a
legacy, non PEP 440, version. You may find odd behavior and sort
order. In particular it will be sorted as less than 0.0. It is
recommend to migrate to PEP 440 compatible versions.
  RuntimeWarning,
/usr/local/lib/python2.7/dist-packages/pkg_resources.py:2425:
RuntimeWarning: 'python-debian (0.1.21-nmu2ubuntu1)' is being parsed
as a legacy, non PEP 440, version. You may find odd behavior and sort
order. In particular it will be sorted as less than 0.0. It is
recommend to migrate to PEP 440 compatible versions.
  RuntimeWarning,
pip 1.5.6 from /usr/local/lib/python2.7/dist-packages (python 2.7)

---

This looks like an "environment polution" by my side :/

If someone has a hint, I'd be thankful!

Don't know if this will help but, this is my "uname -a":
    3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013
x86_64 x86_64 x86_64 GNU/Linux

Thanks very much!

On Wed, Dec 17, 2014 at 12:00 AM, Eduardo Bergavera
<edbergav...@dnsc.edu.ph> wrote:
> Hi Hugo,
>
> I just updated to 1.8.2 today. It's my first time to know that there is a
> command like ansible-doc. My machine is Mac OS X Yosemite 10.10.1. However,
> the command
>
> ansible-doc --list
>
> works on my machine. Here is additional info:
>
> Pip version 1.4.1
>
> Ansible 1.8.2
>
> I suggest that you remove Ansible through pip and install it again.
>
> Hope his helps!
>
>
>
> On Wednesday, December 17, 2014 9:30:05 AM UTC+8, Hugo Posca wrote:
>>
>> Hello there.
>>
>> I could not believe I missed this wonderful command, ansible-doc, for so
>> long!
>> Excited by this new discovery I used it well for reading know modules
>> like yum, apt, user and so on.
>>
>> Then, doing a 'ansible-doc --help' I saw a '--list' option, to list
>> available modules!! Wonderful!
>> Then... crash!
>>
>> ---
>> I installed ansible through pip, and:
>>
>> $ ansible --version
>> ansible 1.8.2
>>   configured module search path = None
>>
>> $ ansible-doc --version
>> ansible-doc 1.8.2
>>   configured module search path = None
>>
>> ---
>> As I said, commands like this, works:
>>
>> $ ansible-doc user
>>
>> ---
>> But '--list' don't:
>>
>> $ ansible-doc --list
>> Traceback (most recent call last):
>>   File "/usr/local/bin/ansible-doc", line 324, in <module>
>>     main()
>>   File "/usr/local/bin/ansible-doc", line 264, in main
>>     find_modules(path, module_list)
>>   File "/usr/local/bin/ansible-doc", line 213, in find_modules
>>     find_modules(module, module_list)
>>   File "/usr/local/bin/ansible-doc", line 209, in find_modules
>>     for module in os.listdir(path):
>> OSError: [Errno 5] Input/output error: 'windows'
>>
>> ---
>>
>> Any ideas? Should I create an issue in Github?
>>
>> Thanks very much for this wonderful tool!
>>
>> Kind regards,
>> Hugo
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/8c4a93a8-4f49-4022-8992-418324bdc05e%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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACJBGXC%3DGUnAsUCkEak%2BFp3NciTQdND-PKA-SpWWDN5btmKxXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to