Ansible Installation Issue on Linux

Hi All,

M getting below error message after ansible installation. Is this error can be ignorable:

"

[root@Test0 Desktop]# ansible --version
ERROR! Unexpected Exception, this is probably a bug: (pyasn1 0.1.6 (/usr/lib/python2.7/site-packages), Requirement.parse(‘pyasn1>=0.1.7’))
the full traceback was:

Traceback (most recent call last):
File “/usr/bin/ansible”, line 85, in
mycli = getattr(import(“ansible.cli.%s” % sub, fromlist=[myclass]), myclass)
File “/usr/lib/python2.7/site-packages/ansible/cli/init.py”, line 38, in
from ansible.inventory.manager import InventoryManager
File “/usr/lib/python2.7/site-packages/ansible/inventory/manager.py”, line 29, in
from ansible.inventory.data import InventoryData
File “/usr/lib/python2.7/site-packages/ansible/inventory/data.py”, line 29, in
from ansible.plugins.cache import FactCache
File “/usr/lib/python2.7/site-packages/ansible/plugins/cache/init.py”, line 30, in
from ansible.plugins.loader import cache_loader
File “/usr/lib/python2.7/site-packages/ansible/plugins/loader.py”, line 22, in
from ansible.parsing.plugin_docs import read_docstring
File “/usr/lib/python2.7/site-packages/ansible/parsing/plugin_docs.py”, line 12, in
from ansible.parsing.yaml.loader import AnsibleLoader
File “/usr/lib/python2.7/site-packages/ansible/parsing/yaml/loader.py”, line 30, in
from ansible.parsing.yaml.constructor import AnsibleConstructor
File “/usr/lib/python2.7/site-packages/ansible/parsing/yaml/constructor.py”, line 29, in
from ansible.parsing.vault import VaultLib
File “/usr/lib/python2.7/site-packages/ansible/parsing/vault/init.py”, line 45, in
from cryptography.hazmat.backends import default_backend
File “/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/init.py”, line 7, in
import pkg_resources
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 3011, in
parse_requirements(requires), Environment()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 630, in resolve
raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (pyasn1 0.1.6 (/usr/lib/python2.7/site-packages), Requirement.parse(‘pyasn1>=0.1.7’))

"

hi,

I think it requires a python module
I mean the python module is missing
I advise please reinstall again and check if the correct python module is installed

I did installation using epel. So does that mean i have to reinstall using different epel rpm.

hi,

What flavour of unix are you working on and what version

RedHat 7

try yum installed | grep pip
or yum installed | grep python