SimplerXMLGenerator没有属性'_write' [英] SimplerXMLGenerator has no attribute '_write'
问题描述
当我使用Pelican创建静态网页时.
When I use Pelican to create a static webpage.
CRITICAL: SimplerXMLGenerator instance has no attribute '_write'
有人说此功能已从Django中删除: https://github.com/django/django/blob/master/django/utils/xmlutils.py
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?
谢谢!
推荐答案
_write
来自python stdlib xml.sax.saxutils.XMLGenerator
.必须覆盖内置的xml
库. IIRC,PyXML
曾经这样做.
_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 :并不完全相关,但鹈鹕使用了独立版本的 feedgenerator
PS: Not entirely related but pelican uses standalone version of feedgenerator
这篇关于SimplerXMLGenerator没有属性'_write'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!