I tried to install relaunch roscore on Ubuntu 18.04 but got the following error. Any advice is greatly appreciated.
Traceback (most recent call last):
File "/opt/ros/melodic/bin/roscore", line 72, in <module>
import roslaunch
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/__init__.py", line 52, in <module>
from . import param_dump as roslaunch_param_dump
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/param_dump.py", line 40, in <module>
import roslaunch.config
File "/opt/ros/melodic/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
Originally posted by SlowAnnealing on ROS Answers with karma: 1 on 2021-07-27
Post score: 0