-4

PYXB - When generating class definitions at runtime, iam facing following expection

import pyxb.binding.generate

path = "E:/schema/schema.xsd"
code = pyxb.binding.generate.GeneratePython(schema_location=path)
rv = compile(code, 'test', 'exec')
xsd = eval(rv)

above code gives this error

raise pyxb.BindingGenerationError('Generation of namespace groups requires generate-to-files')
pyxb.exceptions_.BindingGenerationError: Generation of namespace groups requires generate-to-file

1 Answers1

0

See the PyXB help forum where somebody coincidently asked exactly this same question at the same time. Odd.

pabigot
  • 989
  • 7
  • 8