scottlamb / hikvision-tftpd

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

Run error #8

Closed Randomjunk999 closed 6 years ago

Randomjunk999 commented 6 years ago

I get:

./hikvision_ftfpd.py: 8: ./hikvision_tftpd.py: Syntax Error: newline unexpected

(Running on Ubuntu in VirtualBox with the "$ sudo ./hikvision_tftpd.py --server-ip=172.9.18.80 --filename=digicap.mav" version of the command)

scottlamb commented 6 years ago

What version of Ubuntu? What does python --version say?

Randomjunk999 commented 6 years ago

Hi, It's Ubuntu 18.04 with Python 3.6.5 (What are you using to run & I'll try that one.)

scottlamb commented 6 years ago

Ahh, I developed this with Python 2. So I think this is a dupe of #5. I'm playing around with upgrading, but the workaround is to do sudo python2 hikvision_tftpd.py ...