hyde/docs — Issue #12: issues with less
Author: zachcp
Created: 2012-03-07 17:45:45+00:00
State: open

Hello hyde developers,

I just downloaded the Hyde/docs as a test site (good looking - so a good place to start!). I also download the lessc binary and place it in the hyde-docs root directory. When I run 'hyde -v gen ' I get an error that I an not sure how to troubleshoot and I am wondering if anyone else has encountered this:

12:40:44 hyde.engine.LessCSSPlugin Calling executable [/home/test/Projects/05_Web_Dev/hyde-docs/lessc] with arguments [u'/var/folders/wk/wkcy6OjjFEWw6J9lUJcZCE+++TM/-Tmp-/tmp2FdD0m', u'/var/folders/wk/wkcy6OjjFEWw6J9lUJcZCE+++TM/-Tmp-/tmpBhZeZJ']
Traceback (most recent call last):
File "/usr/local/bin/hyde", line 9, in
load_entry_point('hyde==0.8.5a15', 'console_scripts', 'hyde')()
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/main.py", line 10, in main
Engine().run()
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/engine.py", line 39, in run
super(Engine, self).run(args)
File "/Library/Python/2.6/site-packages/commando.py", line 198, in run
args.run(self, args)
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/engine.py", line 118, in gen
gen.generate_all(incremental=incremental)
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/generator.py", line 205, in generate_all
self.__generate_node__(self.site.content, incremental)
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/generator.py", line 303, in __generate_node__
self.__generate_resource__(resource, incremental)
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/generator.py", line 339, in __generate_resource__
resource, text) or text
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/plugin.py", line 47, in __call_plugins__
res = function(*args)
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/ext/plugins/less.py", line 110, in text_resource_complete
self.call_app(args)
File "/Library/Python/2.6/site-packages/hyde-0.8.5a15-py2.6.egg/hyde/plugin.py", line 392, in call_app
subprocess.check_output(args)
AttributeError: 'module' object has no attribute 'check_output'

I will try to get around this by using the css files as-is and removing the lessc but it would be nice to know how to use less with hyde for the long term.

thanks
zach cp