cyberdelia/django-pipeline — Issue #19: manage.py synccompress - No such file or directory
Author: rfkrocktk
Created: 2011-10-11 19:27:39+00:00
State: open

I've got a pretty simple application configuration going here:

STATIC_URL = '/static/'
STATIC_ROOT = '/tmp/myproject/static/'
STATICFILES_FINDERS = (
'pipeline.finders.PipelineFinder',
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)

# ...
PIPELINE = not DEBUG
PIPELINE_AUTO = True
PIPELINE_VERSION = True

PIPELINE_COMPILERS = (
'pipeline.compilers.less.LessCompiler',
)

PIPELINE_CSS = {
'all': {
'source_filenames': (
'styles/*.less',
),
'output_filename': 'styles/application.?.css',
}
}

PIPELINE_JS = {
'all': {
'source_filenames': (
'scripts/jquery-1.6.2.min.js',
'scripts/bootstrap-*.js',
'scripts/jquery.*.js',
'scripts/application.js',
),
'output_filename': 'scripts/application.?.js',
}
}

# ...

INSTALLED_APPS = (
# ...
'pipeline',
'myproject.web',
)

When I go to run the `synccompress` task, I get the following:

Traceback (most recent call last):
File "bin/django", line 22, in
djangorecipe.manage.main('myproject.settings')
File "/home/rfkrocktk/Desktop/myproject/eggs/djangorecipe-0.99-py2.7.egg/djangorecipe/manage.py", line 16, in main
management.execute_manager(mod)
File "/home/rfkrocktk/Desktop/myproject/eggs/Django-1.3-py2.7.egg/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/rfkrocktk/Desktop/myproject/eggs/Django-1.3-py2.7.egg/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/rfkrocktk/Desktop/myproject/eggs/Django-1.3-py2.7.egg/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/rfkrocktk/Desktop/myproject/eggs/Django-1.3-py2.7.egg/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/management/commands/synccompress.py", line 39, in handle
packager.pack_stylesheets(package, sync=sync, force=force)
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/packager.py", line 47, in pack_stylesheets
variant=variant, **kwargs)
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/packager.py", line 55, in pack
package['output'], package['paths'])
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/versioning/__init__.py", line 45, in need_update
version = self.version(paths)
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/versioning/__init__.py", line 20, in version
return getattr(self.versioner, 'version')(paths)
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/versioning/mtime/__init__.py", line 11, in version
[int(time.mktime(storage.modified_time(path).timetuple())) for path in paths]
File "/home/rfkrocktk/Desktop/myproject/eggs/django_pipeline-1.1.18.1-py2.7.egg/pipeline/storage.py", line 29, in modified_time
return datetime.fromtimestamp(os.path.getmtime(self.path(name)))
File "/usr/lib/python2.7/genericpath.py", line 54, in getmtime
return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/myproject/static/s'

What am I doing wrong here?