Re: Signal only works in main thread

2011-07-25 Thread Miki Tebeka
Seems like pyssh (which is very old AFAIK) uses signal. Looks like you're creating the SSHController instance (which uses pyssh) not in the main thread, and Python won't allow you to place signal handlers outside the main thread. You can probably move the SSHContorller creation to the main threa

Re: Signal only works in main thread

2011-07-25 Thread Chris Rebert
On Mon, Jul 25, 2011 at 12:19 PM, RVince wrote: > I am instantiating an SSH client class using this class: > > http://www.goldb.org/sshpython.html You might consider using Paramiko instead: http://www.lag.net/paramiko/ Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list

Signal only works in main thread

2011-07-25 Thread RVince
I am instantiating an SSH client class using this class: http://www.goldb.org/sshpython.html With the following code: sSHController = SSHController('xxx', 'root', 'password', '#') sSHController.login() Whereupon, at login(), it fails wi