Pelican: Getting "CRITICAL: AttributeError: 'unicode' object has no attribute 'slug'" on file

Created on 11 Jul 2017  路  4Comments  路  Source: getpelican/pelican

I've been using an older version for a while and wanted to move everything to a clean environment to make sure that I could recover properly after a major failure.

It seems like this one file is throwing this error. I was tempted to just delete it but I wanted to know why.

hyde_doc_sucks.md.zip

If possible, is there directions on how to debug in situations like this?

Sorry for the title, I was going through a phase where I didn't know how to use my big developer words to express my frustration.

Most helpful comment

You have
tag: hyde
and it should be:
tags: hyde

This was a bug introduced in the recent version. Normally tag metadata isn't anything special and would be ignored (i.e. would be left alone as a string metadata). New addition treats it will Tag object but it isn't.

All 4 comments

You have
tag: hyde
and it should be:
tags: hyde

This was a bug introduced in the recent version. Normally tag metadata isn't anything special and would be ignored (i.e. would be left alone as a string metadata). New addition treats it will Tag object but it isn't.

Thank you @avaris!
I've made the change and will close the issue. I hope that someone else will find this if they run into this issue.

+1 Thanks

This exact thing just bit me on Pelican 1.7.1. I accidentally typed Tag instead of Tags.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

networkpadawan picture networkpadawan  路  3Comments

nurupo picture nurupo  路  5Comments

mwcz picture mwcz  路  5Comments

manelclos picture manelclos  路  7Comments

karlcow picture karlcow  路  5Comments