[Twisted-Python] failure to connect to sshsimpleserver.py

Jean-Paul Calderone exarkun at divmod.com
Tue Sep 23 18:06:07 EDT 2008

On Tue, 23 Sep 2008 16:58:48 -0500, Glen Mabey <glen.mabey at swri.org> wrote:
>I'm just starting to use twisted (having quickly read through the book 
>"Twisted: Network Programming Essentials"), and I am unable to  successfully 
>use one of the example scripts:  doc/conch/examples/ sshsimpleserver.py .
>I am using python 2.5.2 and today's svn of twisted and pycrypto on  RedHat 
>AS5 x84-64.  I experienced similar results with 8.1.0 .

This looks a lot like a bug in PyCrypto:

>I am able to start the server with no problem, but when I start a  client 
>that connects to it, I get:
> [snip]
>           File "/usr/DiamondBack/stow/pycrypto-20080923_git-py2.5/lib/ 
>python2.5/site-packages/Crypto/PublicKey/pubkey.py", line 76, in sign
>             return self._sign(M, K)
>         exceptions.TypeError: _sign() takes exactly 2 arguments (3 given)

This is a file in PyCrypto itself, calling a method in PyCrypto itself,
and passing the wrong arguments.

You might want to try using the last release of PyCrypto instead of the
latest development snapshot.  You might also want to file a bug with the
PyCrypto maintainer (it seems there's a new one now) to get this fixed.


More information about the Twisted-Python mailing list