Learning ROS in the Linux system, during the programming process of testing the publisher Publisher, when executing the 'learn_publish.py' file to be tested, the following error occurred:
Solution :
Add the code in the first line of the 'learn_publish.py' file: #!/usr/bin/env python . After adding, click "Save" file in the upper right corner.
Here's how to do it: