在odoo10或odoo11中安装模块时出现“could not determine a constructor for the tag '!python'”

admin 2019-11-29 13719

在odoo10或odoo11中安装某些模块时,会出现如下错误:

yaml.constructor.ConstructorError:could not determine a constructor for the tag " !python "
in " <byte string > ", line 2,coulumn 3:
!python {model: ir.model.data, i  ......

这个问题是PyYAML版本太低所致,执行:

pip install -U pyyaml==3.13

升级PyYAML即可

最新回复 (0)
返回