getpelican / pelican-plugins

Collection of plugins for the Pelican static site generator
Other
1.39k stars 846 forks source link

summary plugin does not produce anything in Python 3 #865

Closed ahmetb closed 6 years ago

ahmetb commented 7 years ago

Specifically if I use python3.6 or 3.3, I get empty summaries in my index.html. When I switch to python2.7 it works fine again.

I did not see any errors/warnings in the output. pelican -v did not give any useful signals either.

joshmorel commented 7 years ago

I couldn't reproduce the issue - my guess is it has to do with the theme instead of the plugin. Looking at your blog (nice design and content!) it seems like you solved it. What was the resolution?

ahmetb commented 7 years ago

Interesting. I haven't resolved it. I reverted back to python2.7.

I simply build in the python:2.7-slim Docker image and when I switch to any python:3* image, it silently stops producing any summaries and I get back empty strings.

joshmorel commented 7 years ago

If you want to dubug further the things I would look at:

There is some interaction between Python version, Pelican version, Jinja2 version and Jinja2 templates which is not working as expected. I've found even that other Plugins can cause unexpected issues. You may just want to stick with python2.7 for now.... But with more details I could help dig.

justinmayer commented 6 years ago

Closing due to inactivity. Please feel free to comment here if you feel the issue should be re-opened.