You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Afte running
roslaunch xela_server service.launch
, I came across this error which I could not fix.
I am using ROS-KINETIC which does not work with python3, only python2. My virtual env python version is 3.5 so I am not sure why this error occurs but my best guess is that it is due to the fact that python2 does not support
metaclass
.
Traceback (most recent call last):
File "/opt/ros/kinetic/bin/roslaunch", line 34, in
import roslaunch
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/
init
.py", line 51, in
from . import param_dump as roslaunch_param_dump
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/param_dump.py", line 40, in
import roslaunch.config
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/config.py", line 45, in
import rospkg.distro
File "/home/yetty/xela/venv/lib/python3.5/site-packages/rospkg/distro.py", line 44, in
import yaml
File "/home/yetty/xela/venv/lib/python3.5/site-packages/yaml/
init
.py", line 284
class YAMLObject(metaclass=YAMLObjectMetaclass):
SyntaxError: invalid syntax