In the debugging class when i wrote the script and try to run it i get

/usr/bin/env: ‘python\r’: No such file or directory

i did chmod +x to the file and catkin_make

I had this problem in the python class but i just continue..

How to fix it please:)

asked 18 Mar, 06:11

eyalzimer's gravatar image

accept rate: 0%

Hello @eyalzimer,

I suppose you are talking about "ROS Basics in 5 Days", "Unit 10 - Debugging Tools"

You have to pay attention if you copied the entire content of the code block. It has to begin with:

#! /usr/bin/env

Otherwise, it's not seen as python code.

Please, let me know if it solved your problem.


permanent link

answered 19 Mar, 22:15

marcoarruda's gravatar image

marcoarruda ♦♦
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 18 Mar, 06:11

question was seen: 104 times

last updated: 19 Mar, 22:15

powered by OSQA