You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, I was just trying to build the environment first. I still hasn't used any micro-ROS-specific code in my code (it's still the default code from building a new PlatformIO project). The thing is, the build is not successful until now. I have also checked this issue; I have unsourced and reboot my machine, to no avail.
All I can understand is that this issue is related to rosidl, seen from the log I pasted below.
CMake Error at /home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:57 (message):
execute_process(/home/leochen/.platformio/penv/bin/python -m rosidl_adapter
--package-name builtin_interfaces --arguments-file
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/build/builtin_interfaces/rosidl_adapter__arguments__builtin_interfaces.json
--output-dir
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/build/builtin_interfaces/rosidl_adapter/builtin_interfaces
--output-file
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/build/builtin_interfaces/rosidl_adapter/builtin_interfaces.idls)
returned error code 1:
AttributeError processing template 'msg.idl.em'
Traceback (most recent call last):
File "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 51, in evaluate_template
em.BUFFERED_OPT: True,
^^^^^^^^^^^^^^^
AttributeError: module 'em' has no attribute 'BUFFERED_OPT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/lib/python3.12/site-packages/rosidl_adapter/__main__.py", line 19, in <module>
sys.exit(main())
^^^^^^
File "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/lib/python3.12/site-packages/rosidl_adapter/main.py", line 53, in main
abs_idl_file = convert_to_idl(
^^^^^^^^^^^^^^^
File "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/lib/python3.12/site-packages/rosidl_adapter/__init__.py", line 19, in convert_to_idl
return convert_msg_to_idl(
^^^^^^^^^^^^^^^^^^^
File "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/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 "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 23, in expand_template
content = evaluate_template(template_name, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 69, in evaluate_template
_interpreter.shutdown()
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'shutdown'
Issue template
Basically, I was just trying to build the environment first. I still hasn't used any micro-ROS-specific code in my code (it's still the default code from building a new PlatformIO project). The thing is, the build is not successful until now. I have also checked this issue; I have unsourced and reboot my machine, to no avail.
All I can understand is that this issue is related to rosidl, seen from the log I pasted below.
Steps to reproduce the issue
Expected behavior
Builds perfectly
Actual behavior
Build unable to complete
Additional information
Error Log:
CMake Error at /home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:57 (message):
execute_process(/home/leochen/.platformio/penv/bin/python -m rosidl_adapter
--package-name builtin_interfaces --arguments-file
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/build/builtin_interfaces/rosidl_adapter__arguments__builtin_interfaces.json
--output-dir
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/build/builtin_interfaces/rosidl_adapter/builtin_interfaces
--output-file
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/build/builtin_interfaces/rosidl_adapter/builtin_interfaces.idls)
returned error code 1:
AttributeError processing template 'msg.idl.em'
Traceback (most recent call last):
AttributeError: module 'em' has no attribute 'BUFFERED_OPT'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
AttributeError: 'NoneType' object has no attribute 'shutdown'
Call Stack (most recent call first):
/home/leochen/ros2_tutorial/micro_ros/tutorial/.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio/build/mcu/install/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:132 (rosidl_adapt_interfaces)
CMakeLists.txt:19 (rosidl_generate_interfaces)
The text was updated successfully, but these errors were encountered: