Error when trying to set the Path for python executable for ROS toolbox preferences

I am trying to run rosinit but I get this error:
"Path to Python Executable is not set. Set the path to the Python executable using ROS Toolbox preferences"
and when I give the correct path, it doesnt work and I get this error: (Although the correct version is specified)
How to solve it?
Im using R2022b

답변 (1개)

Josh Chen
Josh Chen 2023년 1월 20일
Hello Nabil,
Sorry about the confusing error message, team is working on improving this error message.
As for now, please try to install and provide the path to python3.9.13 in "ROS Toolbox preferences".
Hope this helps,
Thanks,
Josh

댓글 수: 6

Ok, thanks. I will try it.
I have installed python using this method: https://tecadmin.net/how-to-install-python-3-9-on-ubuntu-18-04/
How to import the python executable using this method? I get this file after installation:
I don't think this method gives you python 3.9.13. As so, importing this python executable will not work.
You can download and install python 3.9.13 from python release page directly. Scroll all the way down, you will see installation packages.
But I am using Linux. Which file to choose?
The first installation downloads .tgz, and the second one downloads .tar.xz. Both should work.
You may refer to this page to install .tar.xz file on Linux.
Thanks again for following up.
Yes I made same steps to download python3.9.13 and I got at the end the file in the above screenshot. Even if I followed your tutorial (which is what I did), which file should I choose in the ROS Toolbox Preferences to make it work.
Oh I see.
If you run
$ which python3
or
$ which python3.9
on your linux terminal, are you able to see an output? If yes, you can choose that file in the ROS Toolbox Preferences.

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

카테고리

도움말 센터File Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

2023년 1월 20일

댓글:

2023년 1월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by