PyXB reading and writing XMLdoc

238 views Asked by At

I am using PyXB to read and write XML files.
When I try to use CreateFromDocument method to read XML files and create classes. I am getting following error. -

No handlers could be found for logger "pyxb.binding.content"

1

There are 1 answers

0
Gerhard On BEST ANSWER

This is a issue in the Python library. The PyXB libraries was written to use the logging module however it has not been configured and so it throws the error. Try adding the following to your file:

import logging
logging.basicConfig()