From: Waylan L. <way...@ic...> - 2014-10-05 02:45:08
|
Jamie, You haven't provided enough info for me to say for certain, but I would guess that at least one of the third party extensions needs to be updated to take advantage of the new additions to the extension API. Btw, there are a couple adjustments you might want to make to your code: 1) Use keyword arguments: `extensions=[...]` 2) Use full paths to the extensions using Python dot syntax: 'markdown.extensions.extra' instead of 'extra' ... Or better yet, import the extension class and pass in an instance (which would also alleviate your reported problem). See the Release notes for details: https://pythonhosted.org/Markdown/release-2.5.html Note that your current code is pending depreciation and will no longer work in a couple more releases. Regarding 2) above, the recommended way is to import the class. See the docs for details: https://pythonhosted.org/Markdown/reference.html#extensions Waylan Limberg > On Oct 4, 2014, at 5:40 PM, Jamie McGowan <jam...@gm...> wrote: > > Hi there, > > I use python-markdown in an app I made. A number of users have reported issues that seem to have been caused by the latest update to python-markdown. > > This is the error message: > File "/usr/lib/python3.4/site-packages/markdown/extensions/__init__.py", line 75, in setConfigs > for key, value in items: > TypeError: 'NoneType' object is not iterable > > I include the extensions like so: > > markdown.markdown(text, ['extra', 'nl2br', 'urlize', 'Highlighting', 'Strikethrough', 'markdown_checklist', 'superscript', 'subscript']) > > Commenting out lines 25-44 of "markdown/extensions/__init__.py" seems to fix the issue (as a temporary fix). > > Any ideas to what I am doing wrong or how should I fix it. > > Thanks for your help, > Jamie > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Python-markdown-discuss mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |