Author: [email protected]
Date: Thu Feb  5 05:45:14 2009
New Revision: 51

Modified:
   trunk/src/SSHLibrary/pythonclient.py

Log:
Related to Issue 10: Clear requirement for paramiko, pycrypto and trilead in Installation Guide
More meaningful message when importing paramiko fails

Modified: trunk/src/SSHLibrary/pythonclient.py
==============================================================================
--- trunk/src/SSHLibrary/pythonclient.py        (original)
+++ trunk/src/SSHLibrary/pythonclient.py        Thu Feb  5 05:45:14 2009
@@ -16,9 +16,10 @@
 import os
 import stat
 import posixpath
-
-import paramiko
-
+try:
+    import paramiko
+except ImportError:
+ raise ImportError("Importing paramiko failed. Make sure you have it installed.")

 # There doesn't seem to be a simpler way to increase banner timeout
 def _monkey_patched_start_client(self, event=None):

Reply via email to