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
In terminal when creating a package using ament_python configuration, the setup.cfg files that get autogenerated appear to use "-" instead of "_" to separate the words for the directory variables, which ends up causing all ros2 run commands on scripts in that package to fail with an error "No executable found". (Terminal and directory picture at bottom)
It seems when the command is run, the setup.cfg file is created like so:
Where the difference is a underscore vs the hyphen. (Should be script_dir vs the autogenerated script-dir)
So I believe there is an error wherever the default setup.cfg file gets configured. This did not use to be an issue, so I think something may have happened in a relatively recent push.
In terminal when creating a package using ament_python configuration, the setup.cfg files that get autogenerated appear to use "-" instead of "_" to separate the words for the directory variables, which ends up causing all ros2 run commands on scripts in that package to fail with an error "No executable found". (Terminal and directory picture at bottom)
That should not be the case; both - and _ are valid (though in later versions of setup tools, _ is preferred). Up until Humble, we always use the -, so that is not likely the cause of the problem.
Please provide a full working example with your problem. Likely the issue lies somewhere else. Thanks.
Bug report
Required Info:
Steps to reproduce issue
ros2 run
commandExpected behavior
Scripts run as expected
Actual behavior
Receive an error saying executable not found
Additional information
In terminal when creating a package using ament_python configuration, the setup.cfg files that get autogenerated appear to use "-" instead of "_" to separate the words for the directory variables, which ends up causing all ros2 run commands on scripts in that package to fail with an error "No executable found". (Terminal and directory picture at bottom)
It seems when the command is run, the setup.cfg file is created like so:
When it should be :
Where the difference is a underscore vs the hyphen. (Should be
script_dir
vs the autogeneratedscript-dir
)So I believe there is an error wherever the default setup.cfg file gets configured. This did not use to be an issue, so I think something may have happened in a relatively recent push.
This may be related to issues such as #715
Photo of error
The text was updated successfully, but these errors were encountered: