After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680692 - ValueError: invalid enum value: 4294967296
ValueError: invalid enum value: 4294967296
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-27 08:18 UTC by Matthias Clasen
Modified: 2012-08-20 09:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2012-07-27 08:18:02 UTC
Originally filed here: https://bugzilla.redhat.com/show_bug.cgi?id=841596

---

[root@hamzy-fedora17-build ~]# uname -a
Linux hamzy-fedora17-build.localdomain 3.3.4-5.fc17.x86_64 #1 SMP Mon May 7 17:29:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@hamzy-fedora17-build ~]# yum install -y pygobject3
[root@hamzy-fedora17-build ~]# cat << __EOF__ | python -
#!/usr/bin/python
from gi.repository import NMClient

if __name__ == "__main__":
        client = NMClient.Client.new()

        for con in client.get_active_connections():
                print con
                device = con.get_devices()[0]
                print device
                print device.get_device_type()
__EOF__
<ActiveConnection object at 0x7f5a611291e0 (NMActiveConnection at 0xe06010)>
<DeviceEthernet object at 0x7f5a61129230 (NMDeviceEthernet at 0xe0b000)>
<enum NM_DEVICE_TYPE_ETHERNET of type DeviceType>
[root@hamzy-fedora17-build ~]# nmcli con
NAME                      UUID                                   TYPE              TIMESTAMP-REAL
Boot Disk                 f4b02c17-5a5c-49aa-bc30-b4ad5926b8d3   802-3-ethernet    Thu 19 Jul 2012 08:56:12 AM CDT



[root@bluebill ~]# uname -a
Linux bluebill.rchland.ibm.com 3.3.4-5.fc17.ppc64 #1 SMP Mon May 14 10:18:37 MST 2012 ppc64 ppc64 ppc64 GNU/Linux
[root@bluebill ~]# yum install -y pygobject3
[root@bluebill ~]# cat << __EOF__ | python -
> #!/usr/bin/python
> from gi.repository import NMClient
>
> if __name__ == "__main__":
>         client = NMClient.Client.new()
>
>         for con in client.get_active_connections():
>                 print con
>                 device = con.get_devices()[0]
>                 print device
>                 print device.get_device_type()
> __EOF__
<ActiveConnection object at 0xfffa02a6190 (NMActiveConnection at 0x1003002c800)>
<DeviceEthernet object at 0xfffa02a61e0 (NMDeviceEthernet at 0x10030034000)>
Traceback (most recent call last):
  • File "<stdin>", line 11 in <module>
  • File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43 in function
    return info.invoke(*args, **kwargs)
ValueError: invalid enum value: 4294967296
[root@bluebill ~]# nmcli con
NAME                      UUID                                   TYPE              TIMESTAMP-REAL
Wired connection 1        34edb1f4-82bc-4471-ab69-4d01893d3293   802-3-ethernet    Fri 13 Jul 2012 01:57:48 AM CDT
Boot Disk                 bd10e0ca-184a-45d2-aa2a-769f973d54b6   802-3-ethernet    Thu 19 Jul 2012 09:03:57 AM CDT
Comment 1 Matthias Clasen 2012-07-27 08:20:59 UTC
(this is on ppc64)
Comment 2 Martin Pitt 2012-08-20 09:24:44 UTC
See Fedora bug for the details. Fixed in trunk now:

http://git.gnome.org/browse/pygobject/commit/?id=1c5d497d3c354f4d02f1d4570df2c61d6f47300c