我在使用PyXB为WSDL文件创建python绑定时遇到了问题。我知道:
我得到了"AttributeError:‘模块’对象没有属性'CreateFromDOM'“,也没有生成代码。对于另一个WSDL文档,我得到了相同的错误。
谁能给我个线索吗?谢谢!
全堆栈跟踪:
ERROR: Unable to convert DOM node {http://www.w3.org/2001/XMLSchema}schema to Python instance
Traceback (most recent call last):
File "/home/boehlke/.virtualenvs/env/local/lib/python2.7/site-packages/pyxb/binding/basis.py", line 2047, in append
value = mr.module().CreateFromDOM(node)
AttributeError: 'module' object has no attribute 'CreateFromDOM'发布于 2012-11-16 08:27:04
结果是"AttributeError:‘模块’对象.“是一个预期的错误。我在源代码中找到了这个注释,其中出现了错误:-)
# The module holding XMLSchema bindings # does not have a CreateFromDOM method, # and shouldn't since we need to convert # schema instances to DOM more carefully. # Other namespaces won't have a module if # the bindings were not imported; this is # probably worth a warning.
https://stackoverflow.com/questions/13394819
复制相似问题