Cannot find 'simple.py' in example 2.6

I followed the tutorial but when launching the program, it writes the following:

SUMMARY

PARAMETERS

  • /rosdistro: kinetic
  • /rosversion: 1.12.14

NODES
/
ObiWan (my_package/simple.py)

ROS_MASTER_URI=http://master:11311

ERROR: cannot launch node of type [my_package/simple.py]: can’t locate node [simple.py] in package [my_package]
No processes to monitor
shutting down processing monitor…
… shutting down processing monitor complete

What am I doing wrong?

Hi @s151766,
make sure the file is executeable with chmod +x

1 Like

Thanks, had the same problem

Hello all, I have the same error message and chmod +x simple.py doesn’t seem to fix it.

Since after launching again the launch file I get the same error message. Any hint somebody?

Please post the exact error you are having.

Let’s see the command you ran and the output it gave.

Here is the command I run:

user:~/catkin_ws/src/my_package$ roslaunch my_package my_package_launch_file.launch

and here the error message:

SUMMARY

PARAMETERS

  • /rosdistro: noetic
  • /rosversion: 1.15.9

NODES
/
ObiWan (my_package/symple.py)

ROS_MASTER_URI=http://1_simulation:11311

ERROR: cannot launch node of type [my_package/symple.py]: Cannot locate node of type [symple.py] in package [my_package]. Make sure file exists in package path and permission is set to executable (chmod +x)
No processes to monitor
shutting down processing monitor…
… shutting down processing monitor complete

There’s a typo somewhere in your code, perhaps in the launch file:
you typed symple.py instead of simple.py.

1 Like

Thanks for your help!

1 Like