Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Cho1409 opened this issue Nov 22, 2016 · 2 comments
Closed

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

Cho1409 opened this issue Nov 22, 2016 · 2 comments
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bug This issue/PR relates to a bug.

Comments

@Cho1409
Copy link

Cho1409 commented Nov 22, 2016

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

@ansibot ansibot added bug_report affects_2.2 This issue/PR affects Ansible v2.2 labels Nov 22, 2016
@jctanner
Copy link
Contributor

@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.

@abadger
Copy link
Contributor

abadger commented Nov 23, 2016

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.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants