Menu

text_type

Help
2018-08-31
2018-09-01
  • Jakobi Pascal

    Jakobi Pascal - 2018-08-31

    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

     
  • Peter A. Bigot

    Peter A. Bigot - 2018-09-01

    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.

     
  • Jakobi Pascal

    Jakobi Pascal - 2018-09-01

    Thanks. Will give a try today.

     

Log in to post a comment.