Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS Noeticでpythonノードが「 /usr/bin/env: `python': そのようなファイルやディレクトリはありません」と出力する #61

Closed
ShotaAk opened this issue Oct 6, 2021 · 1 comment · Fixed by #62
Labels
Type: Bug Bug or Bug fixes

Comments

@ShotaAk
Copy link

ShotaAk commented Oct 6, 2021

不具合の概要

Ubuntu 20.04, ROS Noetic環境でroslaunch raspimouse_gazebo raspimouse_with_samplemaze.launchを実行すると、
/usr/bin/env: 'python': そのようなファイルやディレクトリはありませんというメッセージが出力され、
distance_sensor_simulatorノードが強制終了します。

実行環境

  • OS: Ubuntu 20.04, ROS Noetic
  • ソフトのバージョン: 3b63a4b

再現方法

  1. roslaunch raspimouse_gazebo raspimouse_with_samplemaze.launchを実行する
  2. エラーが表示される

その他

CMakeLists.txtでcatkin_install_python()を実行すると、環境に合わせてpythonスクリプトのshebangをpython2やpython3に書き換えてインストールしてくれます。

参考情報:http://wiki.ros.org/UsingPython3/SourceCodeChanges

raspimouse_gazebo/CMakeLists.txtの修正が必要だと思われます。

install(PROGRAMS
scripts/download_gazebo_models.sh
scripts/distance_sensor_simulator.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

@ShotaAk ShotaAk added the Type: Bug Bug or Bug fixes label Oct 6, 2021
@ShotaAk
Copy link
Author

ShotaAk commented Oct 6, 2021

参考:rt-net/crane_x7_ros#130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant