我在我的Mac上使用了Robot Framework的全新安装(我在Mac Air和Mac Pro上重复使用了相同的结果),当我需要使用official SSHLibrary site中的示例时 用这个命令,我认为是正确的:
robot --loglevel TRACE:TRACE login_tests/ssh.robot
它在终端返回:
Suite setup failed:
TypeError: _custom_start_client() got an unexpected keyword argument 'timeout'
我可以在日志文件中找到它:
File "/Library/Python/2.7/site-packages/SSHLibrary/library.py", line 792, in login
return self._login(self.current.login, username, password, delay)
File "/Library/Python/2.7/site-packages/SSHLibrary/library.py", line 832, in _login
login_output = login_method(username, *args)
File "/Library/Python/2.7/site-packages/SSHLibrary/abstractclient.py", line 146, in login
self._login(username, password, look_for_keys=look_for_keys)
File "/Library/Python/2.7/site-packages/SSHLibrary/pythonclient.py", line 69, in _login
timeout=float(self.config.timeout))
File "/Library/Python/2.7/site-packages/paramiko/client.py", line 338, in connect
t.start_client(timeout=timeout)
Python 2.7.10 Robot Framework 3.0(达尔文上的Python 2.7.10)
Image of the screenshot of the log file
帮助将不胜感激。
答案 0 :(得分:2)
您可能遇到了#157 on SSHLibrary上提到的问题,这是由Paramiko的新版本引起的。尝试用pip install -U paramiko==2.0.2
降级Paramiko并再次重新测试。
(如果有效,那么您应该关注此问题的新修订版本,无论是在Paramiko还是SSHLibrary上)