scottlamb / hikvision-tftpd

Unbrick a Hikvision device (NVR or camera) via TFTP
122 stars 41 forks source link

Python3 Syntax Error #5

Open CanadianJeff opened 6 years ago

CanadianJeff commented 6 years ago
root@APU2-SHAWSECURE:/tmp# python3 hiktest.py
  File "hiktest.py", line 65
    except hikvision_tftpd.Error, e:
                                ^
SyntaxError: invalid syntax
CanadianJeff commented 6 years ago
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 commented 6 years ago

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 commented 1 year ago

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

callaa3 commented 9 months ago

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