Error in exercise 1.6 in ROS 5 days with python

Hi, I am trying to complete my exercise 1.6 by creating my first ros program, but I keep on getting this error “ERROR: cannot launch node of type [my_package/simple.py]: can’t locate node [simple.py] in package [my_package]”. Could you please help me out with this? Thanks.

I solved this myself. This was a permission error. I just entered the command “chmod +x simple.py” in the my_package/src folder and it worked like a charm.

2 Likes

Hi, I have the same problem as you.
I’ve tried add permission (chmod 1 simple.py), but still shows ERROR: cannot launch node of type [my_package/simple.py]: can’t locate node [simple.py] in package [my_package]

I don’t know what to do. :frowning:

@6170434021 Try chmod + x

1 Like

I’ve tried add permission (chmod 1 simple.py), but still shows ERROR: cannot launch node of type [my_package/simple.py]: can’t locate node [simple.py] in package [my_package]

I will try chmod + x :slight_smile: Thank you ver much.