0
except socket.error, (errno, msg):
if errno == 1:
# Operation not permitted
msg = msg + (
" - Note that ICMP messages can only be sent from processes"
" running as root."
)
raise socket.error(msg)
Traceback (Most recent call last):
File "", line 1, in File "/usr/lib/python3/dist-Packages/spyderlib/widgets/externalshell/sitecustomize.py", line 699, in runfile execfile(filename, namespace) File "/usr/lib/python3/dist-Packages/spyderlib/widgets/externalshell/sitecustomize.py", line 88, in execfile exec(Compile(open(filename, 'Rb').read(), filename, 'exec'), namespace) File "/home/epamos/Downloads/Gping2(1). py", line 78 except socket.error, (Errno, msg): Syntaxerror: invalid syntax
I am using python 3.5, when removing the comma there is the triggering of 7 errors involving Gping.
Post the full stack trace. You can add it by clicking edit.
– Wilker
And if you do
except socket.error as err:
then you should adjust. I’m on the tele and I can’t test but it might solve– Miguel
Unfortunately it didn’t solve the problem!
– Yúlia