marm AttributeError: ‘module‘ object has no attribute ‘RAW_OPT‘

编译古月居的 marm文件
出错“ AttributeError: ‘module’ object has no attribute ‘RAW_OPT’”

Traceback (most recent call last):
File “/opt/ros/melodic/share/gencpp/cmake/…/…/…/lib/gencpp/gen_cpp.py”, line 50, in
sys.argv, msg_template_map, srv_template_map)
File “/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py”, line 213, in generate_from_command_line_options
generate_from_file(argv[1], options.package, options.outdir, options.emdir, options.includepath, msg_template_dict, srv_template_dict)
File “/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py”, line 156, in generate_from_file
_generate_srv_from_file(input_file, output_dir, template_dir, search_path, package_name, srv_template_dict, msg_template_dict)
File “/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py”, line 115, in _generate_srv_from_file
search_path)
File “/opt/ros/melodic/lib/python2.7/dist-packages/genmsg/template_tools.py”, line 77, in _generate_from_spec
interpreter = em.Interpreter(output=ofile, globals=g, options={em.RAW_OPT:True,em.BUFFERED_OPT:True})
AttributeError: ‘module’ object has no attribute ‘RAW_OPT’
household_objects_database_msgs/CMakeFiles/household_objects_database_msgs_generate_messages_cpp.dir/build.make:120: recipe for target ‘/home/zh/ros_control_ws/devel/include/household_objects_database_msgs/SaveScan.h’ failed

解决如下:
z@Thpad:~$ pip uninstall em
Cannot uninstall requirement em, not installed
z@Thpad:~$ pip install empy3.3.4
Collecting empy
3.3.4
Downloading https://files.pythonhosted.org/packages/3b/95/88ed47cb7da88569a78b7d6fb9420298df7e99997810c844a924d96d3c08/empy-3.3.4.tar.gz (62kB)
100% |████████████████████████████████| 71kB 209kB/s
Building wheels for collected packages: empy
Running setup.py bdist_wheel for empy … done
Stored in directory: /home/zh/.cache/pip/wheels/bd/e0/93/4558733f591dd47c560c86ddf8e8c81f5a0ae0493c52e4c56f
Successfully built empy
Installing collected packages: empy
Successfully installed empy-4.0.1
z@Thpad:~$