ZebraDevs / fetch_gazebo

Gazebo simulator for Fetch
102 stars 90 forks source link

[fetch_gazebo] use catkin_install_python instead of install for supporting python3 interpreter #116

Closed mqcmd196 closed 4 months ago

mqcmd196 commented 4 months ago

To fix the error

/usr/bin/env: ‘python’: No such file or directory
[prepare_robot-6] process has died [pid 71833, exit code 127, cmd /home/obinata/ros/catkin_ws/src/ZebraDevs/fetch_gazebo/fetch_gazebo/scripts/prepare_simulated_robot.py __name:=prepare_robot __log:=/home/obinata/.ros/log/74612a06-1738-11ef-8f76-818e92e2a08e/prepare_robot-6.log].                                                                 log file: /home/obinata/.ros/log/74612a06-1738-11ef-8f76-818e92e2a08e/prepare_robot-6*.log

Because Python files are installed with install in CMake, the catkin doesn't override the shebang as the user's Python interpreter. This PR fixes it.

mqcmd196 commented 4 months ago

@erelson Could you review it and merge it if there is no problem?

mqcmd196 commented 4 months ago

Thanks!