Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10299 > unrolled thread

Signal only works in main thread

Started byRVince <rvince99@gmail.com>
First post2011-07-25 12:19 -0700
Last post2011-07-25 13:39 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Signal only works in main thread RVince <rvince99@gmail.com> - 2011-07-25 12:19 -0700
    Re: Signal only works in main thread Chris Rebert <clp2@rebertia.com> - 2011-07-25 13:39 -0700

#10299 — Signal only works in main thread

FromRVince <rvince99@gmail.com>
Date2011-07-25 12:19 -0700
SubjectSignal only works in main thread
Message-ID<e13bef3d-7748-41eb-adb4-a221bdad7dcb@q15g2000yqk.googlegroups.com>
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 with a :

ValueError: signal only works in main thread

I'm at a complete loss here. Can someone please point me in the right
direction to solving this?   Thanks,
RVince

[toc] | [next] | [standalone]


#10308

FromChris Rebert <clp2@rebertia.com>
Date2011-07-25 13:39 -0700
Message-ID<mailman.1474.1311626345.1164.python-list@python.org>
In reply to#10299
On Mon, Jul 25, 2011 at 12:19 PM, RVince <rvince99@gmail.com> 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web