Re: Newbie question
- From: Alex Pyattaev <alex pyattaev gmail com>
- To: networkmanager-list gnome org
- Subject: Re: Newbie question
- Date: Thu, 07 Jul 2011 20:21:15 +0300
The problem is that the examples in GIT are for networkmanager version 0.9,
and you probably have version 0.8. Check if 0.9 is available for your distro,
or try to locate old examples.
If the 0.9 is not available for your distro, you could try to build it
yourself, its not very hard to do, but you'll need to build wpa-supplicant's
dev version as well, otherwise you will get some nasty bugs with WPA. If you
just want to test the wired interfaces you don't need to bother though.
Alex
On Thursday 07 July 2011 09:53:04 David Lambert wrote:
> I am a newbie to NetworkManager/dbus and in order to learn the interface
> am attempting to run the python script:
>
> http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/pyth
> on/nm-state.py
>
> I get the error:
>
> dlambert@development:~/Desktop$ python nm-state.py
> Device eth0 is activated
> Traceback (most recent call last):
> File "nm-state.py", line 58, in <module>
> con_details = con_iface.GetSettings()
> File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
> return self._proxy_method(*args, **keywords)
> File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in
> __call__
> **keywords)
> File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in
> call_blocking
> message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
> Method "GetSettings" with signature "" on interface
> "org.freedesktop.NetworkManager.Settings.Connection" doesn't exist
>
>
> Any pointers as to where I can get details of the Python API or a
> tutorial would be appreciated.
>
>
> Regards,
>
> Dave.
>
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]