ping-python icon indicating copy to clipboard operation
ping-python copied to clipboard

SyntaxError: invalid syntax

Open protonic opened this issue 7 years ago • 1 comments

I am running the code in PyCham but getting this error..

`C:\Users\hercules\PycharmProjects\PingReporter\venv\Scripts\python.exe C:/Users/hercules/PycharmProjects/PingReporter/ping.py File "C:/Users/hercules/PycharmProjects/PingReporter/ping.py", line 149 except socket.gaierror, ex: ^ SyntaxError: invalid syntax

Process finished with exit code 1 ` image

protonic avatar Dec 13 '17 16:12 protonic

@protonic are you using python3? ping was written back when python2 was the most stable version.

duanev avatar Dec 20 '17 10:12 duanev