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.

 채택된 답변

Jagadeesh Konakalla
Jagadeesh Konakalla 2022년 10월 24일
Hi Ryo,
The error message is confusing. Team is working on to imporve the error message.
Can you please use the version 3.9.13 and use the above UI to set the path and let me know if it does not work.
Thanks,
Jagadeesh K.

댓글 수: 9

Even I too have the same error message.. If you know how to solve this error please help me! Thanks in advance.
Hi GopiSainath,
As i said, please install the version 3.9.13 and provide the path to Python in the UI mentioned above. It should work. If you run into issues, please let me know. I can help you to resolve the issue.
Thanks,
JagadeeshK.
yes, this works!
Thanks a lot
Hi,
Problem still exists. Got this error message today.
Do you know if there are other solution already?
Cheers,
Max v G.
The solution is to install and provide the path to 3.9.13 in the ROS Toolbox preferences. Let me know if 3.9.13 python does not work with ROS Toolbox.
Using python 3.9.13 works.
Hello,
I installed 3.9.13 and save it to this path directory
C:\Program Files\MATLAB\R2022b\sys\ros2\share\python\python.exe
But I am seeing the following errors. See snapshots.
Please advise.
Thanks
Please do not change anything inside the MATLAB installation directory. Please install python outside of MATLAB installation directory. I guess you may have to reinstall your MATLAB.
I had the same issue with Python3.9.16 and Python3.9.15.
As suggested by @Jagadeesh Konakalla, installing Python3.9.13 and setting the right path in ROS toolbox solved the problem.
I followed this guide to install a specific sub-version of Python3.9.X.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Benoit Auclair
Benoit Auclair 2022년 12월 10일
편집: Benoit Auclair 2022년 12월 10일
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

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.
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에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

Ryo
2022년 10월 22일

댓글:

2023년 2월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by