Iranna Mathapati <iranna.gan...@gmail.com> writes:
> How to fix it and now i got below error for same script

Fixing "timeout" problems is (usually) not a Python question.

A "timeout" can have various reasons:

 * you make something fundamentally wrong - i.e. try to connect
   to something which is inaccessible (e.g. by "firewall" rules)

   You must check whether this is the case, e.g. by trying
   to access the server with other means as "pexpect".

 * the remote operation takes an extraordinary amount of time.

   You may need to adjust the "timeout" configuration used
   by the Python access library ("pexpect" in your case).
   Look at the documentation, to find out whether and how this
   is supported.

 * ...


> *runtimeerror threads can only be started once then*

Apparently, you try to start the same thread twice.
Create different "Thread" instances, instead.


> On Sat, Apr 1, 2017 at 1:15 PM, dieter <die...@handshake.de> wrote:
>
>> Iranna Mathapati <iranna.gan...@gmail.com> writes:
>> > ...
>> > Exception in thread Thread-5:
>> > Traceback (most recent call last):
>> > ...
>> >   File
>> > "/auto/n3k-qa/CODC/ianandan/pyATS2.7/lib/python2.7/site-
>> packages/pexpect/__init__.py",
>> > line 1466, in expect_list
>> >     timeout, searchwindowsize)
>> >   File
>> > "/auto/n3k-qa/CODC/ianandan/pyATS2.7/lib/python2.7/site-
>> packages/pexpect/__init__.py",
>> > line 1568, in expect_loop
>> >     raise TIMEOUT(str(err) + '\n' + str(self))
>> > TIMEOUT: Timeout exceeded.
>>
>> "Timeout" means that the "pexpect" partner did not respond sufficiently
>> fast.
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to