Syntax error when launching key_teleop.py
nschoe opened this issue · comments
rosrun key_teleop key_teleop.py
gives me
File "~/catkin_ws/src/teleop_tools/key_teleop/scripts/key_teleop.py", line 63
raise ValueError, 'lineno out of bounds'
^
SyntaxError: invalid syntax
Unfortunately I know nothing of Python, so I can't help. I do know there's this big Python3 vs Python 2 thing. And python --version
gives me Python 3.7.2
so is that it?
It is indeed a python version issue.
As a temporary fix you can edit manually the file and replace
raise ValueError, 'lineno out of bounds'
with
raise ValueError('lineno out of bounds')