cache.py issue on blogofile build
lucdew opened this issue · 1 comments
Hi i have encountered the following issue with:
- the simple_blog template
- blogofile 0.7.1
- the advanced configuration (copied from location returned by blogofile info).
This error occurs even without even adding my own blog posts with a blogofile build command.
I had a look at the code but since i am not very familiar with python debugging, i haven' t found out
the real issue.
Luc
The stacktrace:
ERROR:blogofile.writer:Error rendering template
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Blogofile-0.7.1-py2.7.egg/blogofile/writer.py", line 155, in template_render
return template.render(*_attrs)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 283, in render
return runtime.render(self, self.callable, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 575, in _render
*_kwargs_for_callable(callable, data))
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 607, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 633, in exec_template
callable(context, _args, *_kwargs)
File "_templates/base.mako", line 5, in render_body
${next.body()}
File "_templates/site.mako", line 14, in render_body
${next.body()}
File "memory:0xa2d90cc", line 10, in render_body
% for post in bf.config.blog.posts[:5]:
File "/usr/local/lib/python2.7/dist-packages/Blogofile-0.7.1-py2.7.egg/blogofile/cache.py", line 64, in getitem
raise TypeError("HierarchicalCache objects are not indexable nor "
TypeError: HierarchicalCache objects are not indexable nor sliceable. If you were expecting another object here, a parent cache object may be inproperly configured.
Traceback (most recent call last):
File "/usr/local/bin/blogofile", line 9, in
load_entry_point('Blogofile==0.7.1', 'console_scripts', 'blogofile')()
File "/usr/local/lib/python2.7/dist-packages/Blogofile-0.7.1-py2.7.egg/blogofile/main.py", line 135, in main
args.func(args)
File "/usr/local/lib/python2.7/dist-packages/Blogofile-0.7.1-py2.7.egg/blogofile/main.py", line 201, in do_build
writer.write_site()
File "/usr/local/lib/python2.7/dist-packages/Blogofile-0.7.1-py2.7.egg/blogofile/writer.py", line 53, in write_site
self.__write_files()
File "/usr/local/lib/python2.7/dist-packages/Blogofile-0.7.1-py2.7.egg/blogofile/writer.py", line 114, in __write_files
html_file.write(html)
If you want to pursue this issue, please raise it as a question in the blogofile-discuss Google group: http://groups.google.com/group/blogofile-discuss
People there should be able to help you.