ros scripts and python related error
Any ros script I run roslaunch roscore..etc. Is this a mismatch having both python2.7 and 3 installed or is there somthing else. And how would I go about resolving this issue. Thank you for your time.
> roscore
Traceback (most recent call last):
File "/opt/ros/indigo/bin/roscore", line 62, in <module>
import roslaunch
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 51, in <module>
from . import param_dump as roslaunch_param_dump
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/param_dump.py", line 40, in <module>
import roslaunch.config
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/config.py", line 45, in <module>
import rospkg.distro
File "/usr/lib/python2.7/dist-packages/rospkg/distro.py", line 44, in <module>
import yaml
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 284
class YAMLObject(metaclass=YAMLObjectMetaclass):
^
SyntaxError: invalid syntax
Hey. Were you able to figure this out?
I think from
File "/usr/lib/python2.7
and/usr/lib/python3
appearing in the same error message we can conclude that this is indeed a mixing problem of Python 3 and 2.7. That is never going to work.Thank you so much