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

Axel Beckert abe at debian.org
Tue Sep 10 01:41:41 BST 2019


Hi Guido,

Guido Maria Serra wrote:
> I ask for forgiveness, it is Monday morning...
> https://github.com/zeph/wicd/commit/404545ffd5a8448895e83b8b09ba79ac28416e36

I tried this one already, but bailed out, too. The other one looked
more promising IMHO. What worked in the end was this, though:

https://stackoverflow.com/questions/47838405/porting-a-sub-class-of-python2-file-class-to-python3
https://salsa.debian.org/debian/wicd/blob/python3/debian/patches/02-python3-fixups.patch#L285-296

I pushed a bunch of patch updates more into that branch:

https://salsa.debian.org/debian/wicd/commits/python3

So in the end
https://salsa.debian.org/debian/wicd/blob/python3/debian/patches/02-python3-fixups.patch
should make at least the wicd daemon(*) and wicd-curses run, but still
throw warnings.

(*) "/usr/sbin/wicd -c -f -e -o" works, but "/usr/sbin/wicd -c -f -e"
    still fails as follows:

Traceback (most recent call last):
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1955, in <module>
    main(sys.argv)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1906, in main
    print('---------------------------')
  File "/usr/lib/python3/dist-packages/wicd/logfile.py", line 148, in write
    self._lf.write(data)
  File "/usr/lib/python3/dist-packages/wicd/logfile.py", line 52, in write
    data = data.decode('utf-8').encode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

Need to go to bed now. If you want, I can provide the work so far as
pull request against your repo. (But unless you say you want that, I
won't do it.)

		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