How to set the path to the Python executable using ROS Toolbox preferences
138 views (last 30 days)
Show older comments
Ryo on 22 Oct 2022
Commented: Kyle Gao on 10 Feb 2023
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 on 24 Oct 2022
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.
Vincenzo Petrone on 2 Feb 2023
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.
More Answers (1)
Benoit Auclair on 10 Dec 2022
Edited: Benoit Auclair on 10 Dec 2022
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.
Kyle Gao on 10 Feb 2023
Can you please help me with this too? I'm adding python 3.9.16 to the ROS toolbox but it reports this error
Find more on Publishers and Subscribers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!