Skip to content

Problem to build on ros2_jazzy - Attribute Error: module 'em' has no attribute 'Interpreter' #17

@mrRobot62

Description

@mrRobot62

Hi, to start - I'm a beginner on ros2.
I have a buch of Dynamical AX12+ servos on my workbench I want to use them for a robot project.

I found your package an tried to install/build it, unfortunately it crashed on cocoon build

Starting >>> dyna_controller_messages
Starting >>> motor_controller
--- stderr: dyna_controller_messages                                                               
CMake Error at /opt/ros/jazzy/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:57 (message):
  execute_process(/home/bernd/venv/ros2/bin/python3 -m rosidl_adapter
  --package-name dyna_controller_messages --arguments-file
  /home/bernd/ros2_ws/dynamixel_hotplug_ros2_python/build/dyna_controller_messages/rosidl_adapter__arguments__dyna_controller_messages.json
  --output-dir
  /home/bernd/ros2_ws/dynamixel_hotplug_ros2_python/build/dyna_controller_messages/rosidl_adapter/dyna_controller_messages
  --output-file
  /home/bernd/ros2_ws/dynamixel_hotplug_ros2_python/build/dyna_controller_messages/rosidl_adapter/dyna_controller_messages.idls)
  returned error code 1:

  AttributeError processing template 'msg.idl.em'

  Traceback (most recent call last):

    File "<frozen runpy>", line 198, in _run_module_as_main
    File "<frozen runpy>", line 88, in _run_code
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/__main__.py", line 19, in <module>
      sys.exit(main())
               ^^^^^^
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/main.py", line 53, in main
      abs_idl_file = convert_to_idl(
                     ^^^^^^^^^^^^^^^
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/__init__.py", line 19, in convert_to_idl
      return convert_msg_to_idl(
             ^^^^^^^^^^^^^^^^^^^
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/msg/__init__.py", line 39, in convert_msg_to_idl
      expand_template('msg.idl.em', data, output_file, encoding='iso-8859-1')
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 29, in expand_template
      content = evaluate_template(template_name, data)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 65, in evaluate_template
      _interpreter = em.Interpreter(
                     ^^^^^^^^^^^^^^

  AttributeError: module 'em' has no attribute 'Interpreter'

Call Stack (most recent call first):
  /opt/ros/jazzy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:132 (rosidl_adapt_interfaces)
  CMakeLists.txt:22 (rosidl_generate_interfaces)

Can you assist me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions