Ansible: ImportError:2.1から2.2に更新した後、_textという名前のモジュールがありません

作成日 2016年11月22日  ·  2コメント  ·  ソース: ansible/ansible

問題の種類

  • バグレポート
コンポーネント名

  • Ansible
ANSIBLEバージョン
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+
構成
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 /環境
  • Red Hat Enterprise Linux Serverリリース6.8(Santiago)
概要
再現する手順

Update from ansible 2.1.0.0 to 2.2 by YUM from the epel-testing repo.
予期された結果

Ansibleansible-2.2.0.0-3.el6.noarchは正常に動作しています。

実績

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

最も参考になるコメント

さらにデバッグするためのヒントとして、これは/ usr / bin / ansibleが古いバージョンのansiblepythonモジュールを見つけているように見えます。 それを見つけるには、システムを見回す必要があります。

全てのコメント2件

@Kokonoeepelパッケージのバグはbugzillaに

https://fedoraproject.org/wiki/EPEL

EPELで管理されているパッケージにバグを見つけた場合は、 https: //bugzilla.redhat.com/の「FedoraEPEL」製品でバグを報告して

さらにデバッグするためのヒントとして、これは/ usr / bin / ansibleが古いバージョンのansiblepythonモジュールを見つけているように見えます。 それを見つけるには、システムを見回す必要があります。

このページは役に立ちましたか?
0 / 5 - 0 評価