I cannot use ros2 run command on fedora 38. I got the error below when i tried to run demo_nodes.
[erhangk@fedora ~]$ ros2 run demo_nodes_cpp talker
Failed to load entry point 'run': bad marshal data (unknown type code)
Traceback (most recent call last):
File "/usr/lib64/ros2/bin/ros2", line 33, in <module>
sys.exit(load_entry_point('ros2cli==0.18.7', 'console_scripts', 'ros2')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/ros2/lib/python3.11/site-packages/ros2cli/cli.py", line 50, in main
add_subparsers_on_demand(
File "/usr/lib64/ros2/lib/python3.11/site-packages/ros2cli/command/__init__.py", line 237, in add_subparsers_on_demand
extension = command_extensions[name]
~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'run'
Thanks for the info, i know what the issue is, i need to repackage everything to fix it. I am currently on vacation so it might be delayed until September.
okay, i fixed the issue. I also needed to restructure the packages a bit to allow for multiple ros versons. So the naming scheme from f38 onwards is ros2--.
I’m trying to launch my own package called atlas_description.
When I run ros2 launch atlas_description viewatlas.launch.py
I get the error: [ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught exception when trying to load file of format [py]: No module named 'xacro'
I already have xacro installed (checked via pip).
Additionally when I try ros2 launch robots viewatlas.launch.py
I get the error: Package 'robots' not found: "package 'robots' not found, searching: ['/home/stevens/robotws/install/atlas_description', '/usr/lib64/ros2-humble']"
Any ideas as to what’s going on? I’m new to ROS2 and how COPR works, thanks.
Recently tried installing ROS2 and while trying to run the demos from the official website, the cpp talker works just fine, the python listener does not however.
Traceback (most recent call last):
File "/usr/lib64/ros2-humble/lib/demo_nodes_py/listener", line 33, in <module>
sys.exit(load_entry_point('demo-nodes-py==0.20.3', 'console_scripts', 'listener')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/ros2-humble/lib/python3.11/site-packages/demo_nodes_py/topics/listener.py", line 37, in main
node = Listener()
^^^^^^^^^^
File "/usr/lib64/ros2-humble/lib/python3.11/site-packages/demo_nodes_py/topics/listener.py", line 27, in __init__
super().__init__('listener')
File "/usr/lib64/ros2-humble/lib/python3.11/site-packages/rclpy/node.py", line 199, in __init__
self._parameter_event_publisher = self.create_publisher(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/ros2-humble/lib/python3.11/site-packages/rclpy/node.py", line 1290, in create_publisher
check_is_valid_msg_type(msg_type)
File "/usr/lib64/ros2-humble/lib/python3.11/site-packages/rclpy/type_support.py", line 35, in check_is_valid_msg_type
check_for_type_support(msg_type)
File "/usr/lib64/ros2-humble/lib/python3.11/site-packages/rclpy/type_support.py", line 31, in check_for_type_support
raise NoTypeSupportImportedException()
rclpy.exceptions.NoTypeSupportImportedException: no type_support imported
[ros2run]: Process exited with failure 1
Am I missing any package? Everything (according to the official website) dependency is installed.