Note that there are some explanatory texts on larger screens.

plurals
  1. POCant compress files with django-pipeline and YUI
    text
    copied!<p>When I run <strong>python manage.py collectstatic</strong>, I get:</p> <pre><code>Traceback (most recent call last): File "manage.py", line 10, in &lt;module&gt; execute_from_command_line(sys.argv) File "/Users/fceruti/Development/Arriendas.cl/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line utility.execute() File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle return self.handle_noargs(**options) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 163, in handle_noargs collected = self.collect() File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 119, in collect dry_run=self.dry_run) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/storage.py", line 30, in post_process packager.pack_stylesheets(package) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/packager.py", line 90, in pack_stylesheets variant=package.variant, **kwargs) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/packager.py", line 100, in pack content = compress(paths, **kwargs) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/compressors/__init__.py", line 72, in compress_css css = self.concatenate_and_rewrite(paths, output_filename, variant) File "/Users/fceruti/Development/Arriendas.cl/venv/lib/python2.7/site-packages/pipeline/compressors/__init__.py", line 135, in concatenate_and_rewrite content = self.read_file(path) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/compressors/__init__.py", line 208, in read_file file = default_storage.open(path, 'rb') File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/django/core/files/storage.py", line 33, in open return self._open(name, mode) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/storage.py", line 114, in _open storage = self.find_storage(name) File "/Users/fceruti/Development/xxxxx/venv/lib/python2.7/site-packages/pipeline/storage.py", line 111, in find_storage raise ValueError("The file '%s' could not be found with %r." % (name, self)) ValueError: The file 'css/960_24_col.css' could not be found with &lt;pipeline.storage.PipelineFinderStorage object at 0x101da4d50&gt;. </code></pre> <p>When I run <strong>python manage.py findstatic css/960_24_col.css</strong>, I get</p> <pre><code>Found 'css/960_24_col.css' here: /Users/fceruti/Development/xxxxxxx/Arriendas/static/css/960_24_col.css </code></pre> <p>My settings are:</p> <pre><code>STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static') STATICFILES_DIRS = ( ('css', os.path.join(STATIC_ROOT, 'css')), ('img', os.path.join(STATIC_ROOT, 'img')), ('js', os.path.join(STATIC_ROOT, 'js')), ('fonts', os.path.join(STATIC_ROOT, 'fonts')), ) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) PIPELINE = True PIPELINE_CSS = { 'app': { 'source_filenames': ( 'css/960_24_col.css', 'css/base.scss', ), 'output_filename': 'css/app.css', 'extra_context': { 'media': 'screen,projection', }, }, } PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor' PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor' PIPELINE_YUI_CSS_ARGUMENTS = '' PIPELINE_YUI_JS_ARGUMENTS = '' PIPELINE_YUI_BINARY = os.path.join(PROJECT_ROOT, 'libs/yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar') STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' PIPELINE_SASS_BINARY = '/usr/bin/sass' </code></pre> <p>When I add</p> <pre><code>PIPELINE_COMPILERS = ( 'pipeline.compilers.sass.SASSCompiler', ) </code></pre> <p>And run the webpage, I get:</p> <pre><code>Exception Type: CompilerError Exception Value: Unable to apply SASSCompiler compiler </code></pre> <p>What am I doing wrong? </p> <p>EDIT:</p> <p>The softwares I'm using are:</p> <ul> <li>Sass 3.1.19 (Brainy Betty)</li> <li>YUI compressor 2.4.7</li> <li>django-pipeline==1.2.11</li> <li>Django 1.4</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload