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

Python node in SVN

asked 2012-04-04 08:57:29 -0500

Dejan Stankovic gravatar image

updated 2014-01-28 17:11:52 -0500

ngrennan gravatar image

Hye, i have some problem regarding about writing a node. I have a source program written in python and it seems executable in svn. I already try with eclipse with Pydev plug in but it seems not work. I dont know if my step with CMakelist.txt is wrong or Python code just cant execute with eclipse. To make it clear, i try ( http://code.google.com/p/drh-robotics-ros/source/browse/trunk/ros/playground/nodes/arduino.py?r=51 ) this project and i got this error during run my nodes.

/ros_workspace/playground/bin$ rosrun playground arduino.py [rosrun] Couldn't find executable named arduino.py below /home/farid/ros_workspace/playground [rosrun] Found the following, but they're either not files, [rosrun] or not executable: [rosrun] /home/farid/ros_workspace/playground/nodes/arduino.py

It seems not executable. Thanks for the help.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-04-04 10:52:22 -0500

Wim gravatar image

The svn:executable property is automatically managed only during adds and imports, but does not change when you use chmod on a file after that. So you need to tell svn explicitly to change the executable property of a tracked file. The command looks something like "svn propset svn:executable '*' filename"

edit flag offensive delete link more

Comments

Huh. Add that the list of things I didn't know. (And to the list of "Why use SVN anymore?")

Mac gravatar image Mac  ( 2012-04-04 11:29:43 -0500 )edit
1

answered 2012-04-04 09:50:13 -0500

Mac gravatar image

That means it isn't executable; you'll need to set the executable bit:

chmod +x foo.py

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-04 08:57:29 -0500

Seen: 217 times

Last updated: Apr 04 '12