0
$\begingroup$

Rosanswers logo

Hey,

I am using ROS kinetic which supports python2.7. I want to run a node with python3.8 using rosrun.

when I used a shebang to test the script without any "import rospy" it worked.

but when I include "import rospy" to turn the script into a node and be able to send values, it gives me the following error: in import yaml ModuleNotFoundError: No module named 'yaml'

I would greatly appreciate any idea to make ROS kinetic itself use python3.8 instead of python2.7 and fix this issue.

Thanks in advance


Originally posted by AA A on ROS Answers with karma: 23 on 2022-04-07

Post score: 0


Original comments

Comment by WarTurtle on 2022-04-07:
Here are some similar answers that might help you:

ROS Kinetic and Python3 general

rospy and python3 specific

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Can you update your system to a later version of ROS that uses Python 3.8? Noetic should do it.


Originally posted by Rodolfo8 with karma: 299 on 2022-04-08

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.