import ansible.constants as C ImportError: No module named ansible.constants

Hello Experts,

Background : Installing Ansible on a Host which is not connected to Internet. It’s running on SUSE Linux Enterprise Server 11 SP4

Created symbolic link:

Python 2.7.12 (default, Jun 27 2017, 23:46:35)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

  • Downloaded Ansible 2.3.1 from below link

http://download.opensuse.org/repositories/home:/garloff:/OTC/SLE_11_SP4/x86_64/ansible-2.3.1.0-73.1.x86_64.rpm.

I can see ansible libraries been deployed into /usr/lib64/python2.6/site-packages/ansible and/etc/ansible

But when i do # ansible , below error shows up. Am not sure what’s missing and how to fix this?

Traceback (most recent call last):
File “/usr/bin/ansible”, line 43, in
import ansible.constants as C
ImportError: No module named ansible.constants
CVMLNX0038:/usr/lib64/python2.6/site-packages/a

Please help? Thanls.