python - No handlers could be found for logger “paramiko.transport” with lost connection -


use fabric sudo() , meet error message !

"no handlers found logger paramiko" file "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 603, in connect raise networkerror(msg, e)

i meet same issue, think network not connect issue , use try syntax wait network ok.

the following code retry send sudo() command , not show error when network connection normally.

 loop = 10  in range(0,loop)   try:     sudo("ls -al")   except exception, exc :     print "exception %s, exc %s"(exception, exc)     print "i: %s in %s"%(i,loop) 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -