[pkg-wicd-maint] Bug#938823: wicd and Python 3 (was: "wicd" utf8 and too many APs nightmare/bug)

Axel Beckert abe at debian.org
Mon Sep 9 03:31:50 BST 2019


Hi Guido,

(Cc'ing the according Debian bug report #938823 to get these things
documented publicly.)

Guido Maria Serra wrote:
> hello hello... I patched it to fully work on python3 
> https://github.com/zeph/wicd ...

Thanks! That was a good base to work on.

> how do I package to test it on my system now?

I used
https://github.com/zeph/wicd/compare/49523ed2bd400123ae648170617692d5445be983..49ad8e46536200068d3d9b675d4324986bb392af.patch
as base to patch the existing Debian package, see

https://salsa.debian.org/debian/wicd/commit/6e3055709b11e258ea3881900b93e43c5b46fb35

Had to merge those individual patches into one, though, as dpkg-source
bailed out otherwise:
https://salsa.debian.org/debian/wicd/commit/ea91dc9614d0c2a08726ca4591f4627b214ae3cf

I then had to add these additional changes to get more and more things
working:

Get it build on my system locally:
https://salsa.debian.org/debian/wicd/commit/f69d30b531830e51b466451b0c248851c92ab963

Get it build in a clean chroot:
https://salsa.debian.org/debian/wicd/commit/366807e1c1859462ea2f3a42321ff00abdfd67db

Being able to install the packages:
https://salsa.debian.org/debian/wicd/commit/20901b51930d49ff8b9d84e79c304ac537e1e356

I think most of these three patches needs to be applied to your fork,
too.

Now I'm stuck with this Python error when I run "wicd -c -f":

Traceback (most recent call last):
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 62, in <module>
    from wicd.logfile import ManagedStdio
  File "/usr/lib/python3/dist-packages/wicd/logfile.py", line 32, in <module>
    class LogFile(file):
NameError: name 'file' is not defined

Any idea on how to fix this? "file" is no more an object we can
subclass in Python 3... The failing code seems to be this:
https://salsa.debian.org/debian/wicd/blob/python3/wicd/logfile.py#L32-40

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the pkg-wicd-maint mailing list