Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Syntax error when launching key_teleop.py #33

Open
nschoe opened this issue May 10, 2019 · 1 comment
Open

Syntax error when launching key_teleop.py #33

nschoe opened this issue May 10, 2019 · 1 comment

Comments

@nschoe
Copy link

nschoe commented May 10, 2019

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?

@artivis
Copy link
Contributor

artivis commented Jun 26, 2019

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants