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

/usr/bin/env: pythone Agreement (BSD License)

asked 2015-08-31 04:11:24 -0500

mgangster gravatar image

updated 2015-08-31 04:20:24 -0500

gvdhoorn gravatar image

In the Core ROS Tutorials - Examining the Simple Publisher and Subscriber, when I am running the Subscriber

$ rosrun beginner_tutorials listener.py

it returns

/usr/bin/env: pythone Agreement (BSD License): No such file or directory

why?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-09-01 21:52:33 -0500

sloretz gravatar image

Looks like the first line of listener.py has been corrupted. The first line of a script usually has a shebang. It's a hint that tells your shell which program it should use to execute the script. /usr/bin/env is complaining because it was asked to find a program called "pythone Agreement (BSD License)"

Since it's been corrupted it's probably best to download the file again. If you instead want to try to fix it then edit listener.py so the very first line is this.

#!/usr/bin/env python

This tells your shell to use /usr/bin/env to find python and have it run this script.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-31 04:11:24 -0500

Seen: 227 times

Last updated: Sep 01 '15