How to set the path to the Python executable using ROS Toolbox preferences
이전 댓글 표시
Hi When I try to run the 'rosinit' command on Ubuntu 20.04.5 LTS for R2022b, I got the following error:
Path to Python Executable is not set. Set the path to the Python executable using ROS Toolbox preferences.
Therefore, I put the path to the python executable with ROS Toolbox preferences. However, I got the error message below.

In addition, when I run the 'pyenv', I got the below.

Although I checked the previous questions about this problem, I could not solve this problem.
Thank you for your help.
채택된 답변
추가 답변 (1개)
Benoit Auclair
2022년 12월 10일
편집: Benoit Auclair
2022년 12월 10일
0 개 추천
Hi there,
This is still problematic because even after providing a python 3.9.13 interpreter, (see screenshot of ubuntu terminal) this won't work. Setting the python interpreter with pyenv('Version', '/usr/bin/python3') will still identify a python 3.8. Same happens when using the ROS Toolbox UI.
Benoit
댓글 수: 2
Jagadeesh Konakalla
2022년 12월 12일
From the attched errors, i see that you provided 3.8 which is not supported. I requested to use the 3.9.x version of python. If you provide the path of 3.9.x, it should work.
Kyle Gao
2023년 2월 10일
Can you please help me with this too? I'm adding python 3.9.16 to the ROS toolbox but it reports this error

카테고리
도움말 센터 및 File Exchange에서 Get Started with ROS Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!