'RAW_OPT’经典错误:AttributeError: module ‘em’ has no attribute ‘RAW_OPT’
1. 错误提示
编译固件显示: 'RAW_OPT’经典错误:AttributeError: module ‘em’ has no attribute ‘RAW_OPT’。
File "tools/px_generate_uorb_topic_files.py", line 530, in <module>
generate_idx, f, args.temporarydir, args.package, args.templatedir, INCL_DEFAULT)
File "tools/px_generate_uorb_topic_files.py", line 177, in generate_output_from_file
return generate_by_template(output_file, template_file, em_globals)
File "tools/px_generate_uorb_topic_files.py", line 346, in generate_by_template
em.RAW_OPT: True, em.BUFFERED_OPT: True})
AttributeError: module 'em' has no attribute 'RAW_OPT'
2. 解决办法:
打开一个终端,安装:
pip3 install empy==3.3.4