我試圖爲構建靜態OSERROR在/ [錯誤2]沒有這樣的文件或目錄的Django資產
./manage.py assets build --settings=marketplace.settings.dev
運行命令,我也得到回溯:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/web/market/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/home/web/market/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/web/market/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/web/market/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
output = self.handle(*args, **options)
File "/home/web/market/local/lib/python2.7/site-packages/django_assets/management/commands/assets.py", line 88, in handle
impl.run_with_argv(args)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/script.py", line 547, in run_with_argv
return self.run_with_ns(ns)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/script.py", line 537, in run_with_ns
return cmd.invoke(ns.command, args)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/script.py", line 371, in invoke
return function(**args)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/script.py", line 171, in __call__
disable_cache=no_cache)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/bundle.py", line 563, in build
disable_cache=disable_cache))
File "/home/web/market/local/lib/python2.7/site-packages/webassets/bundle.py", line 498, in _build
force, disable_cache=disable_cache, extra_filters=extra_filters)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/bundle.py", line 384, in _merge_and_apply
filters_to_pass_down, disable_cache=disable_cache)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/bundle.py", line 453, in _merge_and_apply
return filtertool.apply(final, selected_filters, 'output')
File "/home/web/market/local/lib/python2.7/site-packages/webassets/merge.py", line 269, in apply
return self._wrap_cache(key, func)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/merge.py", line 216, in _wrap_cache
content = func().getvalue()
File "/home/web/market/local/lib/python2.7/site-packages/webassets/merge.py", line 249, in func
getattr(filter, type)(data, out, **kwargs_final)
File "/home/web/market/local/lib/python2.7/site-packages/webassets/filter/coffeescript.py", line 45, in output
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
我能得到一些有關如何解決這個問題的建議?