Python PYXB-命名空间组的生成需要生成文件

Python PYXB-命名空间组的生成需要生成文件,python,pyxb,Python,Pyxb,PYXB-在运行时生成类定义时,iam面临以下期望 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) 上面的代码给出了这个错误 raise pyxb.BindingGenerationError(

PYXB-在运行时生成类定义时,iam面临以下期望

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)
上面的代码给出了这个错误

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

看看有人在同一时间问了同样的问题。奇怪。

实际上是我。