How to set the path to the Python executable using ROS Toolbox preferences
71 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
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 件のコメント
Jagadeesh Konakalla
2023 年 1 月 9 日
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.
Vincenzo Petrone
2023 年 2 月 2 日
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.
その他の回答 (1 件)
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 件のコメント
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
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!