Skip to main content
 首页 » 编程设计

python之PyEZ: 'EntryPoint' 对象没有属性 'resolve'

2025年05月04日10zhoujg

PyEZ 用户面临主题行错误方面的问题

from jnpr.junos import Device 
>>> dev = Device(host='xxx',user='xxxx',passwd='xxx') 
>>> dev.open() 
No handlers could be found for logger "ncclient.transport.ssh" 
Traceback (most recent call last): 
  File "<stdin>", line 1, in <module> 
  File "/Library/Python/2.7/site-packages/jnpr/junos/device.py", line 483, in open 
    raise cnx_err 
jnpr.junos.exception.ConnectError: ConnectError(host: esc-elit-01.dcbg.juniper.net, msg: 'EntryPoint' object has no attribute 'resolve')  

请您参考如下方法:

使用以下命令安装 cryptography 1.2.1

sudo pip install cryptography==1.2.1 

或升级分发

sudo pip install -U distribute 

引用:

https://github.com/mozilla/sops/issues/67

https://github.com/ARMmbed/yotta/issues/764