ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

python nodes not running

asked 2018-03-05 23:19:35 -0500

karim gravatar image

updated 2018-03-06 01:50:52 -0500

gvdhoorn gravatar image

I am trying to run the talker_publisher.py code in programming robots with ROS book , I have written the code just as the example in the book but it gives me this error :

/usr/bin/env: ‘pyton’: No such file or directory

though I have python 2.7 installed so what's wrong ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2018-03-06 01:53:04 -0500

gvdhoorn gravatar image
/usr/bin/env: ‘pyton’: No such file or directory

If this is a direct copy-paste from your Python script, then I believe you're missing an h there.

The name of the Python interpreter binary is python, not pyton.

Change the first line of your script (where I'm assuming you specify the Python interpreter) to:

#!/usr/bin/env python

and things should start working.

Note that this is not a ROS problem at all. In the future, please try to search (using Google fi) for these kind of problems. That way you don't have to wait for someone from this forum to answer you, and you have a much larger community (ie: the entire internet) to help you instead of just the ROS community.

edit flag offensive delete link more

Comments

this indeed was the problem , excuse my noob-ness :)

karim gravatar image karim  ( 2018-03-06 06:51:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-05 23:19:35 -0500

Seen: 486 times

Last updated: Mar 06 '18