changeset 2306:90a17c8544ad

fix #379 part 2, replace traceback with error message
author RogerHaase
date Sun, 17 Nov 2013 14:01:14 -0700
parents 783cfc8ac628
children 773f0e488722 636b2ee1c5fe 4bcb0c04a6a4
files quickinstall.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/quickinstall.py	Sat Nov 16 14:32:15 2013 -0700
+++ b/quickinstall.py	Sun Nov 17 14:01:14 2013 -0700
@@ -14,7 +14,15 @@
 import os.path
 import subprocess
 import sys
-import virtualenv
+try:
+    import virtualenv
+except ImportError:
+    sys.exit("""
+Error: import virtualenv failed, either
+  virtualenv is not installed (see installation docs)
+or
+  the virtual environment must be deactivated before rerunning quickinstall.py
+""")
 
 
 class QuickInstall(object):