SimplerXMLGenerator没有属性'_write' [英] SimplerXMLGenerator has no attribute '_write'

查看:85
本文介绍了SimplerXMLGenerator没有属性'_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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆