Re: Thread within for loop

2017-04-02 Thread dieter
Iranna Mathapati 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 "

Re: Thread within for loop

2017-04-01 Thread Iranna Mathapati
Hi , How to fix it and now i got below error for same script *runtimeerror threads can only be started once then* *Thanks,* On Sat, Apr 1, 2017 at 1:15 PM, dieter wrote: > Iranna Mathapati writes: > > ... > > Exception in thread Thread-5: > > Traceback (most recent call last): > > ... > >

Re: Thread within for loop

2017-04-01 Thread dieter
Iranna Mathapati 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/ian

Thread within for loop

2017-04-01 Thread Iranna Mathapati
Hi team, I tried to run fallowing run, *jobs = []* *sniffer1 = threading.Thread(target=validate_traffic_stats_dy,args= (FT_item_dy,RT_item_dy,forward_path_list_dy,return_path_list_dy,nat_type_list_dy,pkt_dy_1,))* *jobs.append(sniffer1)* *sniffer2 = threading.Thr