getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 450 forks source link

nikola 7.7.1 causes material-theme to not render when there are posts #2097

Closed ghost closed 9 years ago

ghost commented 9 years ago

While running nikola build with nikola on version 7.7.1 with material theme i get this error:

(venv)sugarcane:yovoy kunalgurnani$ nikola build
Scanning posts......done!
.  render_listings:output/listings/index.html
.  render_sources:output/posts/about/index.rst
.  render_archive:output/2015/index.html
.  render_archive:output/archive.html
########################################
TaskError - taskid:render_archive:output/archive.html
PythonAction Error
Traceback (most recent call last):
  File "/Users/kunalgurnani/Dev/yovoytaxi/blog/venv/lib/python3.4/site-packages/doit/action.py", line 383, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/Users/kunalgurnani/Dev/yovoytaxi/blog/venv/lib/python3.4/site-packages/nikola/nikola.py", line 1104, in render_template
    template_name, None, local_context)
  File "/Users/kunalgurnani/Dev/yovoytaxi/blog/venv/lib/python3.4/site-packages/nikola/plugins/template/jinja.py", line 92, in render_template
    output = template.render(**context)
  File "/Users/kunalgurnani/Dev/yovoytaxi/blog/venv/lib/python3.4/site-packages/jinja2/environment.py", line 989, in render
    return self.environment.handle_exception(exc_info, True)
  File "/Users/kunalgurnani/Dev/yovoytaxi/blog/venv/lib/python3.4/site-packages/jinja2/environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/kunalgurnani/Dev/yovoytaxi/blog/venv/lib/python3.4/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "themes/material-theme/templates/list.tmpl", line 2, in top-level template code
    {% extends 'base.tmpl' %}
  File "themes/material-theme/templates/base.tmpl", line 59, in top-level template code
    {% block content %}{% endblock %}
  File "themes/material-theme/templates/list.tmpl", line 12, in block "content"
    {% for text, link in items %}
ValueError: too many values to unpack (expected 2)
Kwpolska commented 9 years ago

We changed the list.tmpl template upstream. Fixing.

This is still broken in the bnw and `octopress themes. cc @lotabout, @magmax, please fix.

ilvidel commented 8 years ago

Hello. I am still getting this error in Nikola 7.7.7 Surely there's some configuration I didn't do properly. Is there anything I'm missing? $ pip list

Kwpolska commented 8 years ago

Are you running an up-to-date version of the theme?

Kwpolska commented 8 years ago

It looks like you aren’t, because I can’t reproduce. Run nikola install_theme material-theme (or nikola theme -i material-theme) and try again.

ilvidel commented 8 years ago

Hmm, I was pretty sure I was using the last version of the theme, but perhaps some files were left undeleted. I deleted everything and restarted the whole directory from scratch. Now it works. Thanks, and sorry for the hassle.

bretonio commented 8 years ago

« I deleted everything and restarted the whole directory from scratch». ilvidel, what files did you delete and from where? Did you mean you did a brand-new nikola init <project>? I tried that. No joy.

Let me see if I can install another theme, one not using jinha2.

Yes I succeed at building planetoid, for example.

Nikola 7.8.0

Kwpolska commented 8 years ago

Please run the following commands and show us the output:

nikola init -qd nikolademo
cd nikolademo
nikola theme -i material-theme
nikola build
bretonio commented 8 years ago

Sorry, I do not know how to output error messages -- traceback -- to a file for debugging. Let me know how and I will do it! I received the same error as before while building at any rate.self.lookup.parse And for some reason specifying material-theme in conf.py also break the nikola list command.

Kwpolska commented 8 years ago

Just copy everything that appears in your terminal when running those commands and paste it here.

Chris Warrick https://chriswarrick.com/

On 9 Oct 2016 22:37, "Colin Brayton" notifications@github.com wrote:

Sorry, I do not know how to output error messages -- traceback -- to a file for debugging. Let me know how and I will do it! I received the same error as before while building at any rate.self.lookup.parse And for some reason specifying material-theme in conf.py also break the nikola list command.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola/issues/2097#issuecomment-252511043, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT-m35FvuVl5gCUN4eYMrgoMKXoPZSHks5qyVCjgaJpZM4F_Wcg .

bretonio commented 8 years ago

Academic question now. Theme installed just fine on the Arch Linux half of my machine! Thx

On Mon, Oct 10, 2016 at 5:39 AM, Chris Warrick notifications@github.com wrote:

Just copy everything that appears in your terminal when running those commands and paste it here.

Chris Warrick https://chriswarrick.com/

On 9 Oct 2016 22:37, "Colin Brayton" notifications@github.com wrote:

Sorry, I do not know how to output error messages -- traceback -- to a file for debugging. Let me know how and I will do it! I received the same error as before while building at any rate.self.lookup.parse And for some reason specifying material-theme in conf.py also break the nikola list command.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <https://github.com/getnikola/nikola/issues/2097#issuecomment-252511043 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAT- m35FvuVl5gCUN4eYMrgoMKXoPZSHks5qyVCjgaJpZM4F_Wcg .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola/issues/2097#issuecomment-252562000, or mute the thread https://github.com/notifications/unsubscribe-auth/ATmAq0bifZ-X6db-yXqmt_0b1EYCXB_Fks5qyfnKgaJpZM4F_Wcg .