Re: Query regarding a NetworkManager error-code.
- From: Jirka Klimes <jklimes redhat com>
- To: Ajay Garg <ajaygargnsit gmail com>
- Cc: networkmanager-list gnome org
- Subject: Re: Query regarding a NetworkManager error-code.
- Date: Wed, 30 Nov 2011 10:42:43 +0100
On Wednesday 30 of November 2011 05:03:14 Ajay Garg wrote:
> Hi Jirka.
>
> I have been stuck in a peculiar situation.
>
> As I said before, after adding the '802-1x' settings. I am able to connect
> to the WPA/WPA2-Enterprise network via "ActivateConnection" dbus-api.
> However, if I pre-save the network-settings-profile (via python
> configparser), and then load, I get the following error (I have not been
> able to figure out the exact API call here, still in process; however, I
> think that there may be some very basic error) ::
>
I do not know ConfigParser. You should show us the code so we can see what's
wrong.
What API call do you look for? What is your exact goal?
> *1322623903.644373 ERROR dbus.service: Unable to append
> ({'802-11-wireless': {'security': '802-11-wireless-security', 'ssid':
> dbus.ByteArray('MTNL')}, 'connection': {'timestamp': 1322623871,
> 'autoconnect': True, 'type': '802-11-wireless', 'id': 'Auto MTNL', 'uuid':
> 'c467a80dd4c64d7abc1ab94fa543f8f2438191b4'}, '802-1x': "{'ca_cert':
> 'file://usr/local/etc/raddb/certs/ca.pem', 'phase2_auth': 'pap',
> 'anonymous_identity': 'anonymous', 'eap': ['ttls'], 'password': 'hello',
> 'identity': 'John Doe'}", '802-11-wireless-security': {'key-mgmt':
> 'wpa-eap', 'pairwise': "['tkip']", 'group': "['tkip']", 'proto': 'rsn'}},)
> to message with signature a{sa{sv}}: <type 'exceptions.TypeError'>: string
> indices must be integers, not str*
>
>
That's an error from Python. It appears that the dictionary got screwed up.
See that the inner dict in '802-1x' is erroneosly in quotes ('802-1x':
"{...}") and thus it doesn't match sa{sv} signature, which is what the error
probably says.
> Also, the NetworkManager logs (in /var/log/messages) are ::
>
> *Nov 30 08:58:52 ajay NetworkManager[1478]: <info> couldn't retrieve
> connection settings: Traceback (most recent call last):#012 File
> "/usr/lib/python2.7/site-packages/dbus/service.py", line 749, in
> _message_cb#012 _method_reply_return(connection, message, method_name,
> signature, *retval)#012 File
> "/usr/lib/python2.7/site-packages/dbus/service.py", line 256, in
> _method_reply_return#012 reply.append(signature=signature,
> *retval)#012TypeError: string indices must be integers, not str#012.*
>
>
> Note that, if I remove the '802-1x' setting-parameters from the pre-saved
> profile, I *DO NOT* get the *Error: string indices must be integers, not
> str *error.
>
> Anything basic that I may be doing wrong?
>
>
> Regards,
> Ajay
>
Jirka
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]