ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

We have worked hard to make sure that the code can be run in python 2 or python 3. But you must choose one and remain consistent. Mixing them will not work.

As @gvdhoorn mentioned you are mixing your environment with python2 and python3 instances. To resolve this make sure to consistently use the same python interpreter in any workspace. Note that for melodic the default python interpreter is python2.

If you used a different python interpreter to build or install a workspace you will want to completely clean the generated outputs and rebuild your workspace with the version of python you want.