[pkg-wicd-maint] Bug#951121: python3-wicd: Unable to load ioctl backend (Python 2/3 syntax issue)
Elzen
elzen at fadrienn.irlnc.org
Tue Feb 11 13:24:46 GMT 2020
Package: python3-wicd
Version: 1.7.4+tb2+2019.09.18git2e0ba579-1
Severity: important
Tags: upstream
Dear Maintainer,
thanks for porting this package to Python 3!
When loading the ioctl backend, I get a SyntaxError (pasted bellow).
Looks like it's simply the missing parenthesis due to “print” becoming a
function in Python 3 (rather than a keyword as in Python 2).
The external backend works, so it's possible to use this one instead.
Python 3.7.6 (default, Jan 19 2020, 22:34:52)
[GCC 9.2.1 20200117] on linux
Type "help", "copyright", "credits" or "license" for more information.
$ import wicd.backend
$ wicd.backend.BackendManager().load_backend("ioctl")
trying to load backend ioctl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/wicd/backend.py", line 118, in
load_backend
backend = self._load_backend(backend_name)
File "/usr/lib/python3/dist-packages/wicd/backend.py", line 88, in
_load_backend
backend = __import__('be-' + backend_name)
File "/usr/share/wicd/backends/be-ioctl.py", line 44
print "WARNING: python-iwscan not found, falling back to using iwlist
scan."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print("WARNING: python-iwscan not found, falling back to using iwlist scan.")?
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages python3-wicd depends on:
ii net-tools 1.60+git20180626.aebd88e-1
ii python3 3.7.5-3
python3-wicd recommends no packages.
Versions of packages python3-wicd suggests:
pn ethtool <none>
ii iproute2 5.4.0-1
Versions of packages wicd-gtk depends on:
ii python 2.7.17-2
ii python-glade2 2.24.0-6
ii python-gtk2 2.24.0-6
ii wicd-daemon 1.7.4+tb2-6
Versions of packages wicd-gtk recommends:
pn policykit-1 | menu | kde-runtime <none>
ii python-notify 0.1.1-4+b2
Versions of packages wicd-daemon depends on:
ii adduser 3.118
ii dbus 1.12.16-2
ii debconf 1.5.73
ii iputils-ping 3:20190709-3
ii isc-dhcp-client 4.4.1-2.1
ii lsb-base 11.1.0
ii psmisc 23.3-1
ii python 2.7.17-2
ii python-dbus 1.2.16-1
ii python-gobject-2 2.28.6-14+b1
ii python-wicd 1.7.4+tb2-6
ii wireless-tools 30~pre9-13+b1
ii wpasupplicant 2:2.9-6
Versions of packages wicd-daemon recommends:
ii rfkill 2.34-0.1
ii wicd-gtk [wicd-client] 1.7.4+tb2-6
Versions of packages wicd-daemon suggests:
pn pm-utils <none>
Versions of packages python-wicd depends on:
ii net-tools 1.60+git20180626.aebd88e-1
ii python 2.7.17-2
Versions of packages python-wicd suggests:
pn ethtool <none>
ii iproute2 5.4.0-1
-- debconf information excluded
More information about the pkg-wicd-maint
mailing list