You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by as...@apache.org on 2014/01/14 09:54:26 UTC
svn commit: r1557980 - /bloodhound/trunk/installer/bloodhound_setup.py
Author: astaric
Date: Tue Jan 14 08:54:26 2014
New Revision: 1557980
URL: http://svn.apache.org/r1557980
Log:
Show better error message when bloodhound_setup is run in an environment with no Trac installed.
Modified:
bloodhound/trunk/installer/bloodhound_setup.py
Modified: bloodhound/trunk/installer/bloodhound_setup.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/installer/bloodhound_setup.py?rev=1557980&r1=1557979&r2=1557980&view=diff
==============================================================================
--- bloodhound/trunk/installer/bloodhound_setup.py (original)
+++ bloodhound/trunk/installer/bloodhound_setup.py Tue Jan 14 08:54:26 2014
@@ -31,16 +31,17 @@ import time
from createdigest import htdigest_create
-from trac.util import translation
-from trac.util.translation import _, get_negotiated_locale, has_babel
LANG = os.environ.get('LANG')
try:
+ from trac.util import translation
+ from trac.util.translation import _, get_negotiated_locale, has_babel
from trac.admin.console import TracAdmin
from trac.config import Configuration
except ImportError, e:
- print ("Post install setup requires that Bloodhound is properly installed "
- "Traceback for error follows:\n")
+ print ("Requirements should be installed before running bloodhound_setup.py.\n"
+ "You can install them with the following command:\n"
+ " pip install -r requirements.txt\n")
traceback.print_exc()
sys.exit(1)