ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hello, Noetic uses Python3 and you may be using Python2 to execute your code.
I'm using Ubuntu 20.04 and it doesn't have Python2 pre-installed. In my case, creating a python
soft link which points to python3
in /usr/bin/
solved the problem.
sudo ln -sf python3 python
But in Debian 10 python
command might be running Python2, I don't know.
Check it with:
ls /usr/bin/python*