dominis / ansible-shell

Interactive ansible shell
GNU General Public License v3.0
544 stars 95 forks source link

Cannot be used after installation #53

Closed zhaolx01 closed 10 months ago

zhaolx01 commented 6 years ago
root@lixia:~/soft/ansible-shell# ansible-shell
Traceback (most recent call last):
  File "/usr/local/bin/ansible-shell", line 4, in <module>
    __import__('pkg_resources').run_script('ansible-shell==0.0.5', 'ansible-shell')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1511, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/ansible_shell-0.0.5-py2.7.egg/EGG-INFO/scripts/ansible-shell", line 36, in <module>

ImportError: No module named runner
root@lixia:~/soft/ansible-shell# 
iambocai commented 6 years ago

As of Ansible 2.1 ansible-shell is part of the official ansible release: https://github.com/ansible/ansible/blob/devel/lib/ansible/cli/console.py

Pysis868 commented 1 month ago

Usage: https://github.com/dominis/ansible-shell/issues/52#issuecomment-300336252