[paramiko] paramiko 1.7.6 demos bug?

Tim Fulcher trfulcher at googlemail.com
Mon Nov 16 14:42:01 PST 2009


Hi

I just started playing around with paramiko 1.7.6 on python 2.5, windows xp.
I tried the demo_simple.py in the demos folder but it gives exception -

*** Connecting...
*** Caught exception: <type 'exceptions.TypeError'>: unbound method
missing_host_key() must be called with WarningPolicy instance as first
argument (got SSHClient instance instead)
Traceback (most recent call last):
  File "c:\documents and settings\802520980\My
Documents\resolve\pythonscripts\paramiko-1.7.6\demos\demo_simple.py", line
69, in <module>
    client.connect(hostname, port, username, password)
  File "build\bdist.win32\egg\paramiko\client.py", line 311, in connect
    self._policy.missing_host_key(self, server_hostkey_name, server_key)
TypeError: unbound method missing_host_key() must be called with
WarningPolicy instance as first argument (got SSHClient instance instead)

Of course, if I set line 66 to
client._policy = paramiko.WarningPolicy()

it seems to work better.

I dunno, is that correct? Not a hugely auspicious start, have to see what
happens next!

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lag.net/pipermail/paramiko/attachments/20091116/f2f202d9/attachment.html>


More information about the paramiko mailing list