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

Python3 Syntax Error #5

Open
CanadianJeff opened this issue Feb 9, 2018 · 4 comments
Open

Python3 Syntax Error #5

CanadianJeff opened this issue Feb 9, 2018 · 4 comments

Comments

@CanadianJeff
Copy link

root@APU2-SHAWSECURE:/tmp# python3 hiktest.py
  File "hiktest.py", line 65
    except hikvision_tftpd.Error, e:
                                ^
SyntaxError: invalid syntax

@CanadianJeff
Copy link
Author

root@APU2-SHAWSECURE:/tmp# python3 hiktftp.py
  File "hiktftp.py", line 49
    print 'Serving %d-byte %s (block size %d, %d blocks)' % (
                                                        ^
SyntaxError: invalid syntax

@scottlamb scottlamb mentioned this issue Aug 6, 2018
@scottlamb
Copy link
Owner

Feel free to give commit 8d7dbb8 on the new python3 branch a try. Automated tests pass; I can't actually flash a device right now so not committing to master yet.

@00BlackRose00
Copy link

Just confirming I tried this with python 3.11 and it worked. You're a life saver, thanks Scott.

@callaa3
Copy link

callaa3 commented Feb 9, 2024

Works great for Python3! Was doing my nut in till I searched through pulls/issues and found this.

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