我有麻烦建立ansible-jupyter内核。错误是:
ImportError: No module named ansible_runner
我的设置:
我用miniconda与以下包一个最小的环境:
- ipykernel
- jupyter
- python >=2.7,<2.8
- pip:
- ansible-jupyter-widgets
- ansible-kernel==0.9.0
通常我使用jupyterlab使用python 3,但我有同样的问题,并从所要求的笔记本电脑和python2的ansible-jupyter内核回购的Dockerfile。
随着上述指定我做的以下环境:
python -m ansible_kernel.install --sys-prefix
jupyter notebook --no-browser --debug --ip=0.0.0.0
下面是标准输出完整的错误:
Traceback (most recent call last):
File "/home/df115/projects/ansible/envs/_default/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/df115/projects/ansible/envs/_default/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/df115/projects/ansible/envs/_default/lib/python2.7/site-packages/ansible_kernel/__main__.py", line 5, in <module>
from .kernel import AnsibleKernel
File "/home/df115/projects/ansible/envs/_default/lib/python2.7/site-packages/ansible_kernel/kernel.py", line 43, in <module>
import ansible_runner
ImportError: No module named ansible_runner
先感谢您!
马修大号丹尼尔是绝对正确的。
对不起,我的想法是ansible亚军是ansible内核的一部分。我不知道这是自己的软件包。我本身用Google搜索“ansible亚军”。
谢谢!