我正在使用 odx 文件,我有一个 generate.py 文件要运行。我正在使用 pyXB。当我尝试跑步时,我得到了这个。
*回溯(最近一次调用):
文件“C:\Users\rohitkr\Downloads\starter_kit_adas-master\starter_kit_adas-master\devops\scripts\generate_odxf\generate_odxf.py”,第 15 行,
从模式导入 odx
文件“C:\Users\rohitkr\Downloads\starter_kit_adas-master\starter_kit_adas-master\devops\scripts\generate_odxf\schema\odx.py”,第 9 行,导入 pyxb.binding
文件“C:\Users\rohitkr\AppData\Local\Programs\Python\Python310\lib\site-packages\pyxb\binding_init _.py ”,第 8 行,来自 . 导入数据类型
文件“C:\Users\rohitkr\AppData\Local\Programs\Python\Python310\lib\site-packages\pyxb\binding\datatypes.py”,第 1266 行,在 rom 中。导入内容
_PluralBinding 类中的文件“C:\Users\rohitkr\AppData\Local\Programs\Python\Python310\lib\site-packages\pyxb\binding\content.py”,第 807 行(collections.MutableSequence):
AttributeError: 模块 'collections' 没有属性 'MutableSequence'* '''
可能是什么问题呢?提前致谢。