windows安装后运行错误
-
c:\dev\ros2_jazzy\ros2-windows>local_setup.bat
c:\dev\ros2_jazzy\ros2-windows>ros2 run demo_nodes_py listener
Traceback (most recent call last):
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rosidl_generator_py\import_type_support_impl.py", line 46, in import_type_support
return importlib.import_module(module_name, package=pkg_name)
File "C:\Python38\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 657, in _load_unlocked
File "<frozen importlib._bootstrap>", line 556, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1101, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed while importing rcl_interfaces_s__rosidl_typesupport_c: 找不到指定的模块。During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\dev\ros2_jazzy\ros2-windows\lib\demo_nodes_py\listener-script.py", line 33, in <module>
sys.exit(load_entry_point('demo-nodes-py==0.33.3', 'console_scripts', 'listener')())
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\demo_nodes_py\topics\listener.py", line 35, in main
node = Listener()
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\demo_nodes_py\topics\listener.py", line 25, in init
super().init('listener')
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rclpy\node.py", line 211, in init
self._parameter_event_publisher = self.create_publisher(
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rclpy\node.py", line 1548, in create_publisher
check_is_valid_msg_type(msg_type)
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rclpy\type_support.py", line 35, in check_is_valid_msg_type
check_for_type_support(msg_type)
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rclpy\type_support.py", line 29, in check_for_type_support
msg_or_srv_type.class.import_type_support()
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rcl_interfaces\msg_parameter_event.py", line 36, in import_type_support
module = import_type_support('rcl_interfaces')
File "c:\dev\ros2_jazzy\ros2-windows\Lib\site-packages\rosidl_generator_py\import_type_support_impl.py", line 48, in import_type_support
raise UnsupportedTypeSupport(pkg_name)
rosidl_generator_py.import_type_support_impl.UnsupportedTypeSupport: Could not import 'rosidl_typesupport_c' for package 'rcl_interfaces'
[ros2run]: Process exited with failure 1