Unfortunately it creates a module that refers to some 'text_type' variable that does not exists. In CreateFromDocument() I can see a line such as
if isinstance(xmld, _six.text_type): .....
This is probably my mistake ... but I cannot figure out. Can someone give me a hint ?
Thanks
P
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
PyXB 1.2.4 is almost four years old. The command you provided runs without error on the development version of PyXB, which has minimal changes from 1.2.6 which is the current release. Please update; if you have problems with 1.2.6 please open an issue on github.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Apologies if this has been answered already....
I installed pyxb on Centos 7 :
python -V: Python 2.7.5
rpm -q PyXB : PyXB-1.2.4-2.el7.noarch
I then ran the following command : pyxbgen -u http://www.xmlspif.org/schema/xmlspif.xsd -m xmlspif to generate binding classes.
Unfortunately it creates a module that refers to some 'text_type' variable that does not exists. In CreateFromDocument() I can see a line such as
if isinstance(xmld, _six.text_type): .....
This is probably my mistake ... but I cannot figure out. Can someone give me a hint ?
Thanks
P
PyXB 1.2.4 is almost four years old. The command you provided runs without error on the development version of PyXB, which has minimal changes from 1.2.6 which is the current release. Please update; if you have problems with 1.2.6 please open an issue on github.
Thanks. Will give a try today.