[ros-users] [Discourse.ros.org] [General] ROS2: Cannot run my Python script, "No executable found" error

Dirk Thomas ros.discourse at gmail.com
Wed Feb 7 16:54:34 UTC 2018

[quote="ArkadiuszN, post:1, topic:3912"]
After building and trying to run it I get: `No executable found`.

You didn't mention what exact command you invoked when you got this error message.

If you are trying to call `ros2 run ...` that won't work since that command expects the executable to be in the path `<install-prefix>/lib/<pkgname>`. Your script `rtcm_publisher_old` is likely being installed into `<install-prefix>/bin` and is therefore already on the `PATH`. You should be able to invoke the executable directly using just the name.

[Visit Topic](https://discourse.ros.org/t/ros2-cannot-run-my-python-script-no-executable-found-error/3912/2) or reply to this email to respond.

More information about the ros-users mailing list