rosinit error in 2022b on Linux
Afficher commentaires plus anciens
Hi,
I just installed the ROS toolbox in Matlab2022b in Ubuntu18.04, and type rosinit in the command window.
But it shows that:
Launching ROS Core...
Path to Python Executable is not set. Set the path to the Python executable using ROS Toolbox preferences.
Then I choose python3.9 in ROS Toolbox preferences.
But it told me that:
Invalid Python Version 3.9.15.Supported Python Version is 3.9.x.
Could anyone help me on figuring out this issue?
Thank you so much
Réponses (1)
Jagadeesh Konakalla
le 28 Nov 2022
0 votes
The error is confusing and our team is working to fix this issue. Can you please install 3.9.13 and try it? It will work.
Thanks,
Jagadeesh K
6 commentaires
鑫
le 3 Déc 2022
Jagadeesh Konakalla
le 5 Déc 2022
Hi,
Can you try the following once ? Please run the following command in MATLAB.
ros.internal.createOrGetLocalPython(true)
Once the above command is complete, try the rosinit and let me know.
If the error persists, then it could be python installation issue. Please retry the Python installation.
Jagadeesh K
鑫
le 5 Déc 2022
James
le 10 Déc 2022
Were you able to check your Python installation to make sure it wasn’t compromised?
鑫
le 12 Déc 2022
Karthik Reddy Vennapureddy
le 12 Déc 2022
Hi Jestzer,
Could you please provide the command you executed to install python? Regarding the above error:
ModuleNotFoundError: no module named '_ctypes'. Looks like libff-dev is not installed in your pc. Could you install libffi-dev using this command : sudo apt-get install libffi-dev
After installing libffi-dev, try rerunning 'ros.internal.createOrGetLocalPython(true)' and see if it works fine.
Thanks,
Karthik Reddy
Catégories
En savoir plus sur Call Python from MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
