cannot find openerp module during installation

I am installing Bahmni v0.88 on centos 6.8. I get this error after running bahmni -i install local:

TASK [bahmni-erp : Copy file to remote location if it is available] ************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-erp/tasks/main.yml:34 skipping: [localhost] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}

TASK [bahmni-erp : Install openerp database dump if provided and database does not exist] *** task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-erp/tasks/main.yml:42 skipping: [localhost] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}

TASK [bahmni-erp : Install bahmni-erp from bahmni-repo] ************************ task path: /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-erp/tasks/main.yml:47 fatal: [localhost]: FAILED! => {“changed”: true, “failed”: true, “msg”: “Error: Package: bahmni-erp-0.88-32.noarch (bahmni)\n Requires: mx\n”, “rc”: 1, “results”: [“Loaded plugins: fastestmirror\nSetting up Install Process\nLoading mirror speeds from cached hostfile\n * base: mirror.freethought-internet.co.uk\n * epel: fedora.kiewel-online.ch\n * extras: mirror.freethought-internet.co.uk\n * updates: mirror.freethought-internet.co.uk\nResolving Dependencies\n–> Running transaction check\n—> Package bahmni-erp.noarch 0:0.88-32 will be installed\n–> Processing Dependency: python-feedparser for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: python-mock for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: python-unittest2 for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: pywebdav for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: poppler-utils for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: byacc for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: kernel-devel for package: bahmni-erp-0.88-32.noarch\n–> Processing Dependency: gcc-c++ for package: bahmni-erp-0.88-32.noarch\n–> … Finished Dependency Resolution\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n”]} to retry, use: --limit @/opt/bahmni-installer/bahmni-playbooks/all.retry

PLAY RECAP ********************************************************************* localhost : ok=240 changed=144 unreachable=0 failed=1

Traceback (most recent call last): File “/usr/bin/bahmni”, line 9, in load_entry_point(‘bahmni==0.1’, ‘console_scripts’, ‘bahmni’)() File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 722, in call return self.main(*args, **kwargs) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 697, in main rv = self.invoke(ctx) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/core.py”, line 535, in invoke return callback(*args, **kwargs) File “/usr/lib/python2.6/site-packages/click-6.7-py2.6.egg/click/decorators.py”, line 17, in new_func return f(get_current_context(), *args, **kwargs) File “/usr/lib/python2.6/site-packages/bahmni-0.1-py2.6.egg/bahmni.py”, line 79, in install return subprocess.check_call(command, shell=True) File “/usr/lib64/python2.6/subprocess.py”, line 505, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars ‘@/etc/bahmni-installer/rpm_versions.yml’ --extra-vars ‘@/etc/bahmni-installer/setup.yml’’ returned non-zero exit status 2

########################################################################

Below is the cat of /opt/bahmni-installer/bahmni-playbooks/roles/bahmni-erp/tasks/main.yml:

  • name: Install python-gdata yum: name=python-gdata-2.0.11-1.el6.noarch state=present

  • name: install nonblockingloghandler pip: name=nonblockingloghandler state=present

  • name: Check if postgres yum repo rpm is present stat: path={{postgres_repo_rpm_location}} register: postgresRepoRpm

  • name: Download postgres yum repo rpm if not present command: “wget -q -O {{ postgres_repo_rpm_location }} {{postgres_repo_download_url}} creates={{ postgres_repo_rpm_location }}” when: postgresRepoRpm.stat.exists == false

  • name: Install postgresql yum repository yum: name={{postgres_repo_rpm_location}} state=present

  • name: Install python-psycopg2 yum: name=python-psycopg2 state=present

  • name: Check if bahmni-erp rpm needs an update command: yum list installed bahmni-erp register: installed_bahmni_erp ignore_errors: true

  • name: Uninstall bahmni-erp rpm yum: name=“bahmni-erp” state=absent when: installed_bahmni_erp.stdout.find("{{ bahmni_erp_version }}") == -1

  • name: Check if openerp database dump is provided in /etc/bahmni-installer/deployment-artifacts local_action: stat path=/etc/bahmni-installer/deployment-artifacts/openerp_backup.sql register: openerp_backup_file

  • name: Copy file to remote location if it is available copy: src=/etc/bahmni-installer/deployment-artifacts/openerp_backup.sql dest=/etc/bahmni-installer/deployment-artifacts/openerp_backup.sql mode=644 owner={{ bahmni_user }} group={{ bahmni_group }} when: openerp_backup_file.stat.exists == True

  • name: Install openerp database dump if provided and database does not exist script: restore_openerp_dump.sh sudo: yes when: openerp_backup_file.stat.exists == True

  • name: Install bahmni-erp from bahmni-repo yum: name=“bahmni-erp-{{ bahmni_erp_version }}” state=present

  • name: Stop Openerp service: name=openerp state=stopped when: passive is not defined or passive != ‘yes’ tags: stop_bahmni

  • name: Copy openerp server template template: src=openerp-server.conf.j2 dest=/etc/openerp/openerp-server.conf owner=openerp group=openerp mode=0655

  • name: Get matched IpTable rule shell: iptables -nL --line-numbers | grep BAHMNIERP -m 1 | cut -c 1-2 register: matchedRule

  • name: delete matching rule if exists shell: iptables -D INPUT {{ matchedRule.stdout }} when: matchedRule.stdout!=""

  • name: Allow openerp port through firewall command: /sbin/iptables -I INPUT 1 -p tcp --dport {{ openerp_port }} -j ACCEPT -m comment --comment “BAHMNIERP”

  • name: save iptables command: service iptables save

  • name: Switch off chkconfig for Openerp on passive service: name=openerp state=stopped enabled=no when: passive is defined and passive == ‘yes’

  • name: Change ssl.conf file blockinfile: dest: /etc/httpd/conf.d/ssl.conf marker: “#” insertafter: “#erp-ssl” state: present block: | {% if openerp_url is defined and openerp_url.startswith(‘https’) %} {% for erp_host in groups[‘bahmni-erp’] %} {% if hostvars[erp_host].get(‘passive’, ‘no’) == hostvars[item].get(‘passive’, ‘no’) %} RewriteCond %{HTTP_HOST} ={{ openerp_url | regex_replace(’(?:https?://)?([^/:]+)?.’, ‘\1’) }} RewriteRule (.) http://{{ erp_host }}:{{ openerp_port }}$1 [P] {% endif %} {% endfor %} {% endif %} delegate_to: “{{ item }}” with_items: “{{groups[‘bahmni-emr’]}}”

  • name: Start Openerp and enable at boot service: name=openerp enabled=yes state=started when: passive is not defined or passive != ‘yes’ tags: start_bahmni #####################################################################

what is the problem pls. I have tried 5 fresh installations creating a new centos 6.8 each time. I can only view the main page on my browser but when i click to go to bahmni or openelis, it says not found. Please I need help @ssmusoke @sravanthi17

Please follow the solution mentioned here