Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/sh: sass: command not found #1

Closed
kulbir opened this issue Nov 7, 2013 · 4 comments
Closed

/bin/sh: sass: command not found #1

kulbir opened this issue Nov 7, 2013 · 4 comments

Comments

@kulbir
Copy link

kulbir commented Nov 7, 2013

Hi,

I've cloned the repo then i installed packages using pip install -r requirements.txt. After that I created superuser using management command.
Full traceback added.
Thanks


Environment:

Request Method: GET
Request URL: http://localhost:8000/

Django Version: 1.5.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'core',
'south',
'djcelery',
'compressor')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Template error:
In template /Users/sandhu/projects/feedly_pin/templates/core/_base.html, error at line 25
/bin/sh: sass: command not found

15 :

16 :

17 :

18 :

19 :

20 :

21 : {# Tile icon for Win8 (144x144 + tile color) #}

22 :

23 :

24 :

25 : {% compress css %}

26 :

27 : {% endcompress %}

28 :

29 :

30 :

31 : {% block nav %}

32 : {% include "core/_nav.html" with location='trending' %}

33 : {% endblock nav %}

34 :

35 :

Traceback:
File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/Users/sandhu/projects/feedly_pin/core/views.py" in trending
  2. response = render_to_response('core/trending.html', context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/shortcuts/init.py" in render_to_response
  3. return HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  4.     return t.render(Context(dictionary))
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/base.py" in render
  5.         return self._render(context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/base.py" in _render
  6.     return self.nodelist.render(context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/base.py" in render
  7.             bit = self.render_node(node, context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/debug.py" in render_node
  8.         return node.render(context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  9.     return compiled_parent._render(context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/base.py" in _render
  10.     return self.nodelist.render(context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/base.py" in render
  11.             bit = self.render_node(node, context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/django/template/debug.py" in render_node
  12.         return node.render(context)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render
  13.     return self.render_compressed(context, self.kind, self.mode, forced=forced)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render_compressed
  14.         rendered_output = self.render_output(compressor, mode, forced=forced)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render_output
  15.     return compressor.output(mode, forced=forced)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/css.py" in output
  16.                 ret.append(subnode.output(_args, *_kwargs))
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/css.py" in output
  17.     return super(CssCompressor, self).output(_args, *_kwargs)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/base.py" in output
  18.     content = self.filter_input(forced)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/base.py" in filter_input
  19.     for hunk in self.hunks(forced):
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/base.py" in hunks
  20.             precompiled, value = self.precompile(value, **options)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/base.py" in precompile
  21.                             **kwargs)
    
    File "/Users/sandhu/Envs/feedly/lib/python2.7/site-packages/compressor/filters/base.py" in input
  22.             raise FilterError(err)
    

Exception Type: FilterError at / Exception Value: /bin/sh: sass: command not found

@tbarbugli
Copy link
Owner

Hi,
you probably need to install compass, there is a gemfile to handle ruby dependencies; if you are not familiar with it you can install it via rubygem directly with this gem install compass

@kulbir
Copy link
Author

kulbir commented Nov 7, 2013

Yeah it worked. I'll update README.md file. Thanks

@kulbir kulbir closed this as completed Nov 7, 2013
@onebraveman
Copy link

thanks, it help me to solve the problem

@chusteven
Copy link

chusteven commented Jan 13, 2022

sorry; late to the party... do i need to pip install -r requirements/base.txt before i start the docker-compose stuff? or after? if after, shouldn't it be in the Dockerfile?? same question re: gem install * stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants