miracle2k/webassets — Issue #109: FilterError when using lessc on OS X
Author: mattupstate
Created: 2012-02-27 16:24:45+00:00
State: open

This might be specific to my system and permissions may have changed, but I'm suddenly getting a `FilterError` when compiling any less css files. It was working fine before, but I have a feeling some permissions may have changed on my system without me exactly knowing. I get the following error stack now:

File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/bundle.py", line 448, in urls
urls.extend(bundle._urls(env, extra_filters, *args, **kwargs))
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/bundle.py", line 430, in _urls
urls.extend(c.urls(env, *args, **kwargs))
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/bundle.py", line 448, in urls
urls.extend(bundle._urls(env, extra_filters, *args, **kwargs))
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/bundle.py", line 421, in _urls
*args, **kwargs)
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/bundle.py", line 349, in _build
extra_filters=extra_filters)
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/bundle.py", line 294, in _merge_and_apply
output_path=output_path))
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/merge.py", line 150, in apply_filters
func(data, out, **kwargs)
File "/Users/mattwright/.virtualenv/cdw-flask/lib/python2.7/site-packages/webassets/filter/less.py", line 80, in input
stderr, stdout, proc.returncode))
FilterError: less: subprocess had error: stderr=/Library/Ruby/Gems/1.8/gems/less-2.0.7/bin/lessc:20:in `read': No such file or directory - /var/folders/wg/7b6cfvc13lb5nj_fr0nyt_680000gn/T/assets_temp_1330359108.css (Errno::ENOENT)
from /Library/Ruby/Gems/1.8/gems/less-2.0.7/bin/lessc:20
from /usr/bin/lessc:19:in `load'
from /usr/bin/lessc:19
, stdout=, returncode=1

The temp file isn't being written for some reason but the error isn't descriptive enough to tell me why. I'm not sure if this is a webassets or lessc related thing. Any clues?