Ros2 Bag record cannot launch properly

asked 2023-07-15 23:13:34 -0500

Hello,

I have recently installed ROS2 Iron Irwini on my windows 11 Family machine. I am currently running through the tutorials. When trying to do the "Recording and playing back data", I cannot proceed. I try to run the bag recording, but this error is thrown:

PS C:\Users\Alexis\Documents\bag_files> ros2 bag record /turtle1/cmd_vel
Failed to load entry point 'record': DLL load failed while importing _reader: Le module spécifié est introuvable.
Traceback (most recent call last):
File "C:\dev\ros2_iron\Scripts\ros2-script.py", line 33, in <module>
sys.exit(load_entry_point('ros2cli==0.25.1', 'console_scripts', 'ros2')())
File "C:\dev\ros2_iron\Lib\site-packages\ros2cli\cli.py", line 50, in main
add_subparsers_on_demand(
File "C:\dev\ros2_iron\Lib\site-packages\ros2cli\command\__init__.py", line 250, in add_subparsers_on_demand
extension.add_arguments(
File "C:\dev\ros2_iron\Lib\site-packages\ros2bag\command\bag.py", line 26, in add_arguments
add_subparsers_on_demand(
File "C:\dev\ros2_iron\Lib\site-packages\ros2cli\command\__init__.py", line 237, in add_subparsers_on_demand
extension = command_extensions[name]
KeyError: 'record'

The french on line 2 simply means "The specified module could not be found".

Apparently, a dll is missing or perhaps missing from a PATH variable somewhere. I had some complications with Python so my installation ended up being a bit messier than nominal (Python was installing in a directory that ROS didn't recognize, forcing me to reinstall it manually to the correct location. I also had to add some paths manually to PATH)

Any help is appreciated!

EDIT: additionally, simply running "ros2 bag" returns this error:

PS C:\Users\Alexis\Documents\bag_files> ros2 bag
Failed to load entry point 'burst': DLL load failed while importing _reader: Le module spécifié est introuvable.
Failed to load entry point 'convert': DLL load failed while importing _reader: Le module spécifié est introuvable.
Failed to load entry point 'info': DLL load failed while importing _reader: Le module spécifié est introuvable.
Failed to load entry point 'play': DLL load failed while importing _reader: Le module spécifié est introuvable.
Failed to load entry point 'record': DLL load failed while importing _reader: Le module spécifié est introuvable.
Failed to load entry point 'reindex': DLL load failed while importing _reader: Le module spécifié est introuvable.

So it is possibly the whole bag package that has a problem? I'm really not sure how to proceed.

edit retag flag offensive close merge delete