I have problems creating a python binding for a WSDL file using PyXB. I do:
- pip install pyxb (currently version 1.1.5)
- pyxbwsdl http://dic.googlecode.com/files/GoogleSearch.wsdl
I get “AttributeError: ‘module’ object has no attribute ‘CreateFromDOM'” and no code is generated. For another WSDL document I get the same error.
Can someone give me a clue?
Thanks!
Full stack trace:
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'
It turned out that “AttributeError: ‘module’ object…” is an expected error. I found this comment in the source code, where the error occurs 🙂