SimplerXMLGenerator has no attribute '_write'

我与影子孤独终老i 提交于 2020-01-04 14:21:01

问题


When I use Pelican to create a static webpage.

CRITICAL: SimplerXMLGenerator instance has no attribute '_write'

someone says this function has been removed from django: https://github.com/django/django/blob/master/django/utils/xmlutils.py

really? And how to fix this?

Thanks!


回答1:


_write comes from the python stdlib xml.sax.saxutils.XMLGenerator. Something must be overriding the built-in xml library. IIRC, PyXML used to do that.

PS: Not entirely related but pelican uses standalone version of feedgenerator



来源:https://stackoverflow.com/questions/29873161/simplerxmlgenerator-has-no-attribute-write

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!