rosinit error in 2022b on Linux

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

답변 (1개)

Jagadeesh Konakalla
Jagadeesh Konakalla 2022년 11월 28일

0 개 추천

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

鑫
2022년 12월 3일
Thanks for your anwser!
I just installed python3.9.13, and run rosinit again.
This time it's shows that:
So what's wrong with it?Could you help me?
Jagadeesh Konakalla
Jagadeesh Konakalla 2022년 12월 5일
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
鑫
2022년 12월 5일
Thanks for your anwser.
I just tried this command,but it shows the same error.
Maybe I should check my Python installation.
Thanks again.
James
James 2022년 12월 10일
Were you able to check your Python installation to make sure it wasn’t compromised?
鑫
2022년 12월 12일
I just reinstalled python, but it seems useless. And I can't check out what's wrong. It's so weirdly.
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

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

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

鑫
2022년 11월 26일

댓글:

2022년 12월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by