我在使用PyXB为WSDL文件创建python绑定时遇到问题。我知道:
我得到“AttributeError:'module'object没有属性'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'
结果发现,“AttributeError:'module'object…”是一个预期的错误。我在源代码中找到了这个注释,错误发生在这里:-)
相关问题 更多 >
编程相关推荐