致命:[cor001]:失败!=>{“changed”:false,“msg”:“junoseznc(aka PyEZ)>=2.1.7是此模块所必需的。然而,朱诺塞兹尼克不知道

2024-09-29 21:35:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我得到这个错误时,试图运行我的剧本,即使我已经安装pyEZ。 有人能帮我修一下吗?你知道吗

MCBOOK:~ user2018$ ansible-playbook simpletest.yml

[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths , use [defaults] inventory=/path/to/file|dir instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [simpletest]


TASK [get facts] ****************************************************************************************************************************************************************************************************** fatal: [cor-001]: FAILED! => {"changed": false, "msg": "junos-eznc (aka PyEZ) >= 2.1.7 is required for this module. However, junos-eznc does not appear to be currently installed. See https://github.com/Juniper/py-junos-eznc#installation for details on installing junos-eznc."} to retry, use: --limit @/Users/farhad.kamran/simpletest.retry

PLAY RECAP ************************************************************************************************************************************************************************************************************ cor-001 : ok=0 changed=0 unreachable=0 failed=1

MCBOOK:~ user2018$ python

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 12:01:12) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import jnpr.junos

jnpr.junos.__version__

'2.1.8dev1'

Tags: oroftoforisbeansiblecan
1条回答
网友
1楼 · 发布于 2024-09-29 21:35:11

"junos-eznc (aka PyEZ) >= 2.1.7 is required for this module

尝试安装2.1.7版本。我可以看到你有2.1.8dev1。。。你知道吗

可能它与您的环境或依赖项不兼容。。。你知道吗

相关问题 更多 >

    热门问题