[ros-users] [Discourse.ros.org] [General] ROS2: Cannot run m…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mikael Arguedas via ros-users
Date:  
To: ros-users
CC: Mikael Arguedas
Subject: [ros-users] [Discourse.ros.org] [General] ROS2: Cannot run my Python script, "No executable found" error


Agreed with @dirk-thomas's comment.
I would expect your executables to be installed in `bin` so it should be on the `PATH` and can be invoked directly from the commandline.
If you want the executables to not be on the path and to be invokable using `ros2 run` you need to them install to `<install-prefix>/lib/<pkgname>`, you can specify this in the `setup.cfg` file: https://github.com/ros2/examples/blob/a75151ef1388b565268508228df42c06462c1337/rclpy/topics/minimal_publisher/setup.cfg





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


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>