Python scripts : they're either not files, or not executable !

asked 2018-05-26 06:27:34 -0600

aissa360 gravatar image

updated 2018-05-26 06:36:49 -0600

I am following this tutorial link text After installing the Differential_drive package from this link link text with catkin_make,

I tried to run it with the following command :

rosrun differential_drive

(Autocomplete doesn't work for the part!)

It gives the following error !!:

[rosrun] Couldn't find executable named below /home/aissa/catkin_ws/src/differential-drive [rosrun] Found the following, but they're either not files, [rosrun] or not executable: [rosrun] /home/aissa/catkin_ws/src/differential-drive/scripts/

I am using ubuntu MATE 16.04 with ROS kinetic both installed on a raspberry pi 3. I also had the same issue in the ubuntu 14.04 with ros indigo installed ! Please do you guys have an Idea as to what causes this problem ?

edit retag flag offensive close merge delete



Can you run an 'ls -l' in /home/aissa/catkin_ws/src/differential-drive/scripts/?

NEngelhard gravatar image NEngelhard  ( 2018-05-26 07:04:32 -0600 )edit

It turned out I should explicitly run the chmod +x command to every single script in the script file in order to unable them, now it is working fine. thank you @NEngelhard anyway :)

aissa360 gravatar image aissa360  ( 2018-05-26 07:31:47 -0600 )edit

Yes you can't execute any file in linux that doesn't have that permission. This is a very fundamental feature of this OS.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-05-27 11:54:31 -0600 )edit