Ansible: ImportError: No module named _text after updating from 2.1 to 2.2

Created on 22 Nov 2016  ·  2Comments  ·  Source: ansible/ansible

ISSUE TYPE

  • Bug Report
COMPONENT NAME

  • Ansible
ANSIBLE VERSION
Name        : ansible
Arch        : noarch
Version     : 2.2.0.0
Release     : 3.el6
Size        : 22 M
Repo        : installed
From repo   : epel-testing
Summary     : SSH-based configuration management, deployment, and task execution system
URL         : http://ansible.com
License     : GPLv3+
CONFIGURATION
inventory      = /etc/ansible/hosts
remote_tmp     = $HOME/.ansible/tmp
pattern        = *
forks          = 5
poll_interval  = 15
sudo_user      = drone
transport      = smart
module_lang    = C
gathering = implicit
host_key_checking = False
sudo_exe = sudo
timeout = 10
log_path = /var/log/ansible.log
jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
display_skipped_hosts = True
action_plugins     = /usr/share/ansible_plugins/action_plugins
callback_plugins   = /usr/share/ansible_plugins/callback_plugins
connection_plugins = /usr/share/ansible_plugins/connection_plugins
lookup_plugins     = /usr/share/ansible_plugins/lookup_plugins
vars_plugins       = /usr/share/ansible_plugins/vars_plugins
filter_plugins     = /usr/share/ansible_plugins/filter_plugins
fact_caching = memory
[privilege_escalation]
[paramiko_connection]
[ssh_connection]
pipelining = True
scp_if_ssh = True

OS / ENVIRONMENT
  • Red Hat Enterprise Linux Server release 6.8 (Santiago)
SUMMARY
STEPS TO REPRODUCE

Update from ansible 2.1.0.0 to 2.2 by YUM from the epel-testing repo.
EXPECTED RESULTS

Ansible ansible-2.2.0.0-3.el6.noarch working fine.

ACTUAL RESULTS

ansible --version
Traceback (most recent call last):
  File "/usr/bin/ansible", line 46, in <module>
    from ansible.module_utils._text import to_text
ImportError: No module named _text

affects_2.2 bug

Most helpful comment

Just as a hint for your further debugging -- this looks like /usr/bin/ansible is finding an older version of the ansible python module. You'll have to look around on your system to find that.

All 2 comments

@Kokonoe Bugs in epel packages should be directed to bugzilla

https://fedoraproject.org/wiki/EPEL

If you find a bug in a EPEL maintained package, please report it to https://bugzilla.redhat.com/ under the "Fedora EPEL" product.

Just as a hint for your further debugging -- this looks like /usr/bin/ansible is finding an older version of the ansible python module. You'll have to look around on your system to find that.

Was this page helpful?
0 / 5 - 0 ratings