yourcelf / btb

Codebase that powers Between the Bars, a blogging platform for people in prison. Splitting/parsing/publishing PDFs, managing paper correspondence.
http://betweenthebars.org
GNU Affero General Public License v3.0
13 stars 6 forks source link

coffee compress gives FilterError: Error: Parse error on line 571: Unexpected 'INDENT' #16

Closed arthurlutz closed 11 years ago

arthurlutz commented 11 years ago

On /moderation/ URL as admin

ERROR Internal Server Error: /moderation/ Traceback (most recent call last): File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/core/handlers/base.py ", line 111, in get_response response = callback(request, _callback_args, _callback_kwargs) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/contrib/auth/decorato rs.py", line 20, in _wrapped_view return view_func(request, _args, _kwargs) File "/home/arthur/local/btb/scanblog/moderation/views.py", line 28, in home [o.to_dict() for o in orgs] File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/shortcuts/init.py ", line 44, in render return HttpResponse(loader.render_to_string(_args, *_kwargs), File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/loader.py", line 176, in render_to_string return t.render(context_instance) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/base.py", li ne 140, in render return self._render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/test/utils.py", line 62, in instrumented_test_render return self.nodelist.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/base.py", li ne 823, in render bit = self.render_node(node, context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/debug.py", l ine 74, in render_node return node.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/loader_tags. py", line 123, in render return compiled_parent._render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/test/utils.py", line 62, in instrumented_test_render return self.nodelist.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/base.py", li ne 823, in render bit = self.render_node(node, context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/debug.py", l ine 74, in render_node return node.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/lopy", line 123, in render return compiled_parent._render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/test/utils.62, in ins trumented_test_render return self.nodelist.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/bane 823, in render return compiled_parent._render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/test/utils.62, in ins trumented_test_render return self.nodelist.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/bane 823, in render bit = self.render_node(node, context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/deine 74, in render_node return node.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/lopy", line 62, in render result = block.nodelist.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/bane 823, in render bit = self.render_node(node, context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/django/template/deine 74, in render_node return node.render(context) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/templatress.py", line 147, in render return self.render_compressed(context, self.kind, self.mode, forced=forced) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/templatress.py", line 107, in render_compressed rendered_output = self.render_output(compressor, mode, forced=forced) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/templatress.py", line 119, in render_output return compressor.output(mode, forced=forced) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/base.py0, in outp ut content = self.filter_input(forced) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/base.py2, in filt er_input for hunk in self.hunks(forced): File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/base.py7, in hunk s precompiled, value = self.precompile(value, options) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/base.py0, in prec ompile command=command, filename=filename).input(kwargs) File "/home/arthur/local/virtualenvs/btb/local/lib/python2.7/site-packages/compressor/filters line 133, in input raise FilterError(err) FilterError: Error: Parse error on line 571: Unexpected 'INDENT' at Object.parseError (/usr/lib/coffee-script/lib/coffee-script/parser.js:470:11) at Object.parse (/usr/lib/coffee-script/lib/coffee-script/parser.js:546:22) at Object.exports.compile.compile (/usr/lib/coffee-script/lib/coffee-script/coffee-script.j at compileScript (/usr/lib/coffee-script/lib/coffee-script/command.js:140:33) at Socket.compileStdio (/usr/lib/coffee-script/lib/coffee-script/command.js:167:14) at Socket.EventEmitter.emit (events.js:85:17) at Pipe.onread (net.js:416:51)

Something most be wrong with my coffee install (this works for me on another installation)

arthurlutz commented 11 years ago

It seems the coffescript version of ubuntu precise is too old.

ii coffeescript 1.2.0-2 interpreter and compiler for the CoffeeScript language

Installing from source (1.3.3) solves this problem.