Ansible: ImportError: Kein Modul mit dem Namen _text nach dem Update von 2.1 auf 2.2

Erstellt am 22. Nov. 2016  ·  2Kommentare  ·  Quelle: ansible/ansible

AUSGABETYP

  • Fehlerbericht
KOMPONENTENNAME

  • 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+
AUFBAU
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 / UMWELT
  • Red Hat Enterprise Linux Server Version 6.8 (Santiago)
ZUSAMMENFASSUNG
SCHRITTE ZUM REPRODUZIEREN

Update from ansible 2.1.0.0 to 2.2 by YUM from the epel-testing repo.
ERWARTETE ERGEBNISSE

Ansible ansible-2.2.0.0-3.el6.noarch funktioniert gut.

TATSÄCHLICHE ERGEBNISSE

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

Hilfreichster Kommentar

Nur als Hinweis für Ihr weiteres Debugging - dies sieht so aus, als würde / usr / bin / ansible eine ältere Version des ansible-Python-Moduls finden. Sie müssen sich auf Ihrem System umsehen, um das zu finden.

Alle 2 Kommentare

@ Kokonoe Bugs in Epel-Paketen sollten an Bugzilla gerichtet werden

https://fedoraproject.org/wiki/EPEL

Wenn Sie einen Fehler in einem von EPEL gepflegten Paket finden, melden Sie ihn bitte unter https://bugzilla.redhat.com/ unter dem Produkt "Fedora EPEL".

Nur als Hinweis für Ihr weiteres Debugging - dies sieht so aus, als würde / usr / bin / ansible eine ältere Version des ansible-Python-Moduls finden. Sie müssen sich auf Ihrem System umsehen, um das zu finden.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen