can you check

pip show requests

On Sat, Jul 18, 2020 at 7:08 AM Nagesh sheregar <nagesh...@gmail.com> wrote:

> Hi abhi,
>
> itsy already there:
>
> [root@s605141sl7vl402 ansible]# pip list | grep requests
> DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
> Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0
> will drop support for Python 2.7 in January 2021. More details about Python
> 2 support in pip, can be found at
> https://pip.pypa.io/en/latest/development/release-process/#python-2-support
> requests   2.24.0
> [root@s605141sl7vl402 ansible]#
>
> On Fri, Jul 17, 2020 at 8:18 PM Abhijeet Kasurde <akasu...@redhat.com>
> wrote:
>
>> On s605141sl7vl402.savvis.lab, do
>>
>> pip install requests
>>
>> On Sat, Jul 18, 2020 at 4:46 AM Nagesh sheregar <nagesh...@gmail.com>
>> wrote:
>>
>>> Hi team,
>>>
>>> can someone please help me on this
>>>
>>> TASK [vcenter : Gather all registered virtual machines]
>>> *******************************************************************************************************************************************************
>>> task path: /data01/ansible/playbooks/roles/vcenter/tasks/vminfo.yml:1
>>> <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
>>> <localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
>>> <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo
>>> /root/.ansible/tmp `"&& mkdir
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376 && echo
>>> ansible-tmp-1595027452.91-724-178923688175376="` echo
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376 `" ) &&
>>> sleep 0'
>>> Using module file
>>> /usr/lib/python2.7/site-packages/ansible/modules/cloud/vmware/vmware_vm_info.py
>>> <localhost> PUT /root/.ansible/tmp/ansible-local-583pCESFN/tmpfbE3DT TO
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376/AnsiballZ_vmware_vm_info.py
>>> <localhost> EXEC /bin/sh -c 'chmod u+x
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376/
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376/AnsiballZ_vmware_vm_info.py
>>> && sleep 0'
>>> <localhost> EXEC /bin/sh -c '/usr/bin/python2
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376/AnsiballZ_vmware_vm_info.py
>>> && sleep 0'
>>> <localhost> EXEC /bin/sh -c 'rm -f -r
>>> /root/.ansible/tmp/ansible-tmp-1595027452.91-724-178923688175376/ >
>>> /dev/null 2>&1 && sleep 0'
>>> The full traceback is:
>>> Traceback (most recent call last):
>>>   File
>>> "/tmp/ansible_vmware_vm_info_payload_pV6E6R/ansible_vmware_vm_info_payload.zip/ansible/module_utils/vmware.py",
>>> line 24, in <module>
>>>     import requests
>>> ImportError: No module named requests
>>> fatal: [localhost -> localhost]: FAILED! => {
>>>     "changed": false,
>>>     "invocation": {
>>>         "module_args": {
>>>             "folder": null,
>>>             "hostname": "10.10.10.18",
>>>             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
>>>             "port": 443,
>>>             "proxy_host": null,
>>>             "proxy_port": null,
>>>             "show_attribute": false,
>>>             "show_tag": false,
>>>             "username": "root",
>>>             "validate_certs": false,
>>>             "vm_type": "all"
>>>         }
>>>     },
>>>     "msg": "Failed to import the required Python library (requests) on
>>> s605141sl7vl402.savvis.lab's Python /usr/bin/python2. Please read module
>>> documentation and install in the appropriate location. If the required
>>> library is installed, but Ansible is using the wrong Python interpreter,
>>> please consult the documentation on ansible_python_interpreter"
>>> }
>>>
>>>
>>> [root@s605141sl7vl402 ansible]# ansible --version
>>> ansible 2.9.9
>>>   config file = /etc/ansible/ansible.cfg
>>>   configured module search path = [u'/root/.ansible/plugins/modules',
>>> u'/usr/share/ansible/plugins/modules']
>>>   ansible python module location =
>>> /usr/lib/python2.7/site-packages/ansible
>>>   executable location = /usr/bin/ansible
>>>   python version = 2.7.17 (default, Nov 15 2019, 19:24:58) [GCC 4.8.5
>>> 20150623 (Red Hat 4.8.5-16)]
>>> [root@s605141sl7vl402 ansible]#
>>>
>>>
>>>
>>> Package    Version
>>> ---------- ---------
>>> certifi    2020.6.20
>>> chardet    3.0.4
>>> idna       2.10
>>> pip        20.1.1
>>> pyvmomi    7.0
>>> requests   2.24.0
>>> setuptools 0.9.8
>>> six        1.15.0
>>> urllib3    1.25.9
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/6635dc9d-f584-43e8-924f-b2d246fa2447o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/6635dc9d-f584-43e8-924f-b2d246fa2447o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks,
>> Abhijeet Kasurde
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAFwWkHqd9rnk9neC9zy3%2Bixw3mBPQo5zFdb6gitcBGQUqoX%3DHw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAFwWkHqd9rnk9neC9zy3%2Bixw3mBPQo5zFdb6gitcBGQUqoX%3DHw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAFu5ZNxpJQcNjfUPFynDLZN2DGbNSejHLH%3DSdQ%2BXrWm3p18VUQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAFu5ZNxpJQcNjfUPFynDLZN2DGbNSejHLH%3DSdQ%2BXrWm3p18VUQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHqW%2BBCAAGym3jB_dpx11G%2BK6zzJqstvP3LknLnNosuXVw%40mail.gmail.com.

Reply via email to