ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
So I eventually found a fix to the issue. So after studying ROS filesystem it became apparent that the issue was due to the wrong default interpreter linking. Although python --version
returned python2.7
this was only made possible in my case because I used an alias in my .bashrc profile.
To fix this you have to change the default python version using python2.7 alternative.
Based on your bug response it is apparent python3 was your default interpreter which was the same in my case.
First list available alternatives update-alternatives --list python
.
If python2.7 isn't a part of the list and you have it installed, add it to the alternatives using update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
Finally, configure the alternatives using update-alternatives --config python
and select python2.7 as the default.