Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example fails to launch #1

Open
iliabaranov opened this issue Jul 7, 2024 · 3 comments
Open

example fails to launch #1

iliabaranov opened this issue Jul 7, 2024 · 3 comments
Assignees

Comments

@iliabaranov
Copy link

Running the robot launch example fails with:

ros2 launch rmcl_example start_robot_launch.py 
[INFO] [launch]: All log files can be found below /home/iliabara/.ros/log/2024-07-07-14-12-59-307095-Brigid-Framework16-90676
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught multiple exceptions when trying to load file of format [py]:
 - ModuleNotFoundError: No module named 'scripts'
 - InvalidFrontendLaunchFileError: The launch file may have a syntax error, or its format is unknown

This seems to be related to:
https://github.com/aock/rmcl_example/blob/main/launch/start_robot_launch.py#L8

@amock
Copy link
Owner

amock commented Jul 8, 2024

Interesting problem. I have tested it on several computers without having this problem. Just now I updated my ROS-humble and it still works. So I am not able to reproduce the problem. However, I have two guesses that might fix your problem:

  1. Maybe something is wrong with your Gazebo installation: https://robotics.stackexchange.com/questions/103799/importerror-cannot-import-name-gazeborospaths-from-scripts

  2. Or maybe you have another "scripts" package somewhere that hides Gazebo's scripts package: Cannot import name 'GazeboRosPaths' when using a custom overlay  ros-simulation/gazebo_ros_pkgs#1050 (comment)

Let me know if one of these solves your issue. Nevertheless, I don't like that there is a package-include called "scripts" in my python script anyways. So in the meantime I will try to find a workaround to avoid that.

@amock
Copy link
Owner

amock commented Jul 8, 2024

I think I have found a workaround. It is on the "avoid-gazebo-scripts" branch. You may try this solution first before you change anything on your system.

@amock amock self-assigned this Jul 8, 2024
@amock
Copy link
Owner

amock commented Aug 9, 2024

@iliabaranov have you tried it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants