Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我PyXB用来读写XML文件。 当我尝试使用CreateFromDocument方法来读取XML文件和创建类时。我收到以下错误。-
PyXB
XML
CreateFromDocument
找不到记录器“pyxb.binding.content”的处理程序
这是 Python 库中的一个问题。PyXB 库被编写为使用日志记录模块,但尚未配置,因此会引发错误。尝试将以下内容添加到您的文件中:
import logging logging.basicConfig()