ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
running rosrun beginner_tutorials talker.py gives me the error /usr/bin/env: ‘python’
Has the package been built? It looks like this error shouldn't happen. The tutorial uses catkin_install_python()
to install the talker script, which will create a wrapper script that has the correct shebang for the version of ROS being used. rosrun
will run that wrapper instead of the original script.
catkin_install_python(PROGRAMS scripts/talker.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
There's more info about what shebang should be used in the UsingPython3 guide.
pls update the wiki guides ThankYou
When you find out a solution, feel free to create a wiki account and edit the page.