Your message dated Sat, 13 Mar 2021 18:50:14 +0000
with message-id <e1ll9l4-000hk7...@fasolo.debian.org>
and subject line Bug#984983: fixed in python-networkmanager 2.2-1
has caused the Debian Bug report #984983,
regarding python3-networkmanager: crashes on unknown device types (eg. wifi 
p2p) in >=bullseye
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
984983: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984983
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python3-networkmanager
Version: 2.1-2
Severity: serious
Justification: Incompatibility with bullseye NM causes crashes enumerating 
devices etc.

Dear Maintainer,

I'm experiencing python3-networkmanager crashing with a simple test
program like this:

$ cat /tmp/test.py
#!/usr/bin/python3

import NetworkManager

for dev in NetworkManager.NetworkManager.Devices:
    if dev.DeviceType == NetworkManager.NM_DEVICE_TYPE_WIFI:
        print(dev)

print("Program finished")
$ python3 /tmp/test.py
Traceback (most recent call last):
  File "/tmp/test.py", line 6, in <module>
    for dev in NetworkManager.NetworkManager.Devices:
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 174, in get_func
    return fixups.to_python(klass, 'Get', name, data, attrib['type'])
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 555, in 
to_python
    val = fixups.base_to_python(val)
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 612, in 
base_to_python
    return [fixups.base_to_python(x) for x in val]
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 612, in 
<listcomp>
    return [fixups.base_to_python(x) for x in val]
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 625, in 
base_to_python
    return globals()[classname](val)
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 353, in __new__
    klass = device_class(obj.Get('org.freedesktop.NetworkManager.Device', 
'DeviceType', dbus_interface='org.freedesktop.DBus.Properties'))
  File "/usr/lib/python3/dist-packages/NetworkManager.py", line 373, in 
device_class
    return {
KeyError: dbus.UInt32(30, variant_level=1)


The reason appears to be that NM in bullseye supports and returns a
(disconnected=30) wifi p2p interface on my device.

Here's some info from the affected system:

$ nmcli d
DEVICE         TYPE      STATE         CONNECTION
wlan0          wifi      connected     FOOBAR
p2p-dev-wlan0  wifi-p2p  disconnected  --
lo             loopback  unmanaged     --


The mere existance of p2p-dev-wlan0 causes the crash and the needed constant
values in python3-networkmanager was added in new upstream release 2.2.

FWIW the problem is also reproducible on a buster system with a partial
update to NM (and deps) from bullseye. The p2p feature is thus not a new
kernel feature or similar, simply new info exposed by NM.

As mentioned, this is fixed in upstream release 2.2.
I've also filed a pre-approval request to update to 2.2 during freeze,
see Bug#984925

Regards,
Andreas Henriksson

--- End Message ---
--- Begin Message ---
Source: python-networkmanager
Source-Version: 2.2-1
Done: Andreas Henriksson <andr...@fatal.se>

We believe that the bug you reported is fixed in the latest version of
python-networkmanager, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 984...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Henriksson <andr...@fatal.se> (supplier of updated 
python-networkmanager package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 13 Mar 2021 19:29:10 +0100
Source: python-networkmanager
Architecture: source
Version: 2.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Andreas Henriksson <andr...@fatal.se>
Closes: 984983
Changes:
 python-networkmanager (2.2-1) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Debian Janitor ]
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
     Repository-Browse.
 .
   [ Ondřej Nový ]
   * d/control: Update Maintainer field with new Debian Python Team
     contact address.
   * d/control: Update Vcs-* fields with new Debian Python Team Salsa
     layout.
 .
   [ Andreas Henriksson ]
   * New upstream release.
     - includes compatibility additions with newer NM (Closes: #984983)
   * Refresh offsets in d/p/0003-Gracefully-handle-dbus-exception.patch
   * Update years in debian/copyright to match upstream
Checksums-Sha1:
 b0dace5c794e42ffd0fad936a6fa9d68354f1a3b 2183 python-networkmanager_2.2-1.dsc
 28d6e71b69c5f07a5e44dc0bc086534964a9e5c6 28710 
python-networkmanager_2.2.orig.tar.gz
 31e2d3e7aa91d922629bbd735a0f890f393566c7 3944 
python-networkmanager_2.2-1.debian.tar.xz
 3c5c7cafb078afdf1712fc4027e61ca0cb7c7c28 7495 
python-networkmanager_2.2-1_amd64.buildinfo
Checksums-Sha256:
 0b62c86229fddc3c6e75e0896e8d91943b88cd824fbe12a698b2f61655f3e98a 2183 
python-networkmanager_2.2-1.dsc
 de6eb921d94aba7549f428ed2b3aa482a5d543ecb6965cbaa0fbb555ab31b9d5 28710 
python-networkmanager_2.2.orig.tar.gz
 d4db2c7e3ac2f6b91062e5a18cd5679fb10bbadf3b5390f24dfd02f98907d336 3944 
python-networkmanager_2.2-1.debian.tar.xz
 374616d1603d759d7a7d1a27e25a894511b38db3811c3acfa1db183560f0d9a2 7495 
python-networkmanager_2.2-1_amd64.buildinfo
Files:
 cf19eb4a8472a8678024141452e8c8dc 2183 python optional 
python-networkmanager_2.2-1.dsc
 7e05d3ca40a4fa50222ba93cda3d0d02 28710 python optional 
python-networkmanager_2.2.orig.tar.gz
 c2945075f3534bfabb870b5dc58f6e67 3944 python optional 
python-networkmanager_2.2-1.debian.tar.xz
 e878f2a202718d9ef8dde06d36ec5bb1 7495 python optional 
python-networkmanager_2.2-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE+uHltkZSvnmOJ4zCC8R9xk0TUwYFAmBNBhMRHGFuZHJlYXNA
ZmF0YWwuc2UACgkQC8R9xk0TUwbRHA//SeOjCByBYHGHOqVM8JxY9Sh6u2Vfwg4M
cIuR9DuUYZVo8moWTpgI67tSTrGHhptln/XOV4r+7JIfzhvwXpLnL6PFvgkmmBOI
aJhTy/M62+wiEcH1ivbfjJvERC2B3qk0y8i8zgM/aI6fXr5Xjs0+DPWw1w1K3B4o
fkPraxkLVwGfBy/fW5wvaa0aoHun0eqcoCTDKyTxsB+1U2YESJ+CkVMPVCNyKI8w
icjy7QE79BZ+neBdCbcFbN7YJRHf7wKkom74IO6yhfuq4UxSuSQsveZpoIZyleVL
AfB1pA9pHFBbp+peE+3+7yyRAoOEwxwXBX+yFp1QIqgcJKLVGr2KBFq5rHL4vmCT
8WEIJxv0tX8/0faJysO/n1LGk7UoX3+hNNlSOZmAnyfqK55HBlCfFWzJ2Z/jYfJn
L+dFVYvL5l1+OOxXtM+9P9bpUsCUpkMWtXFKWCFiXkrNIgUhype/iZA0O/yr2F1h
Y8Y4YfRDqAeMOO+zEASOX4ucqA0DLxndCZ4ZCNVnxLnH6KAXLQ5EKfIUrtCLZmhg
jni5K00UOyX/FCNmZPSpB085vct3siIgFM17JmXPhOgKBYCaCXDqh/6tVCk/azlZ
toet0IWpQwhYbokjFfjnDt+z8gYUeVdOY+70Fz1J87ZThipEy0iPpGJNoQCQ+jyo
XveUdyVJaGs=
=hxhr
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to