nvbn / django-bower

Easy way to use bower with your django project
https://django-bower.readthedocs.io/
518 stars 74 forks source link

Check if Bower is Installed #1

Closed uniite closed 11 years ago

uniite commented 11 years ago

When attempting to run bower_install without having bower installed, I get a cryptic error:

$ ./manage.py bower_install --traceback
Traceback (most recent call last):
  File "/my_virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/my_virtualenv/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/my_virtualenv/lib/python2.7/site-packages/djangobower/management/commands/bower_install.py", line 12, in handle
    shortcuts.bower_install(settings.BOWER_INSTALLED_APPS)
  File "/my_virtualenv/lib/python2.7/site-packages/djangobower/shortcuts.py", line 11, in bower_install
    cwd=conf.COMPONENTS_ROOT,
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
nvbn commented 11 years ago

I added properly error message, like:

BowerNotInstalled: Bower not installed, read instruction here - http://bower.io/
takeplace commented 10 years ago

Hi, I have the same error, how should I solve it<