[pkg-wicd-maint] Bug#941210: python3 syntax error launching wicd-client.py.
jerome_253 at yahoo.fr
jerome_253 at yahoo.fr
Thu Sep 26 14:45:48 BST 2019
Package: wicd-gtk
Version: 1.7.4+tb2-6
Hello,
* when I launch the wicd-client command from a terminal, with /usr/bin/python linked
to python3.7, I get the message:
File "/usr/share/wicd/gtk/wicd-client.py", line 83
print 'Unable to load tray icon: Missing both egg.trayicon and ' + \
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Unable to load tray icon: Missing both egg.trayicon and ' + \)?
* When /usr/bin/python is linked to python2.7, there is no error.
It appears that wicd-client.py contains many print statement without
parentheses, which causes the error.
I would suggest introduction parentheses for print statements: it
wouldn't break the script with python2, whereas no parentheses causes an
error with python3.
I'm using Debian 10,
kernel: Linux myhost 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2 (2019-08-28) x86_64 GNU/Linux
Shared C library: libc6 2.28-10
Thank you !
More information about the pkg-wicd-maint
mailing list