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

'print' - what can be wrong?? #6

Open
XuTpuK opened this issue May 20, 2017 · 5 comments
Open

'print' - what can be wrong?? #6

XuTpuK opened this issue May 20, 2017 · 5 comments

Comments

@XuTpuK
Copy link

XuTpuK commented May 20, 2017

When I run script, on line 241 it says "invalid syntax"! It's simplistic "print" operator, what can be wrong??

@kuraga
Copy link

kuraga commented May 25, 2017

It's Python 2 syntax. Use it to start the script.

@XuTpuK
Copy link
Author

XuTpuK commented May 29, 2017

Heh... use it - what?
Can I just modify operator to work in Py3? (cannot believe so simplistic function has 'breaking changes'!)

@kuraga
Copy link

kuraga commented May 31, 2017

print 'string' -> print('string')

@florisla
Copy link

florisla commented Mar 7, 2018

@XuTpuK You have to use Python version 2 to run the script. You are using Python 3.

@kuraga That will fix the syntax error, but it's not enough to get it working on Python 3.

If you only have Python 3, please use this version: https://github.com/florisla/stm32loader

@Carbon18
Copy link

Solved my issue!! Seems Ubuntu 20.04 only came with Py3. Thanks for the link!

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

4 participants