[Commotion-dev] Can't talk between desktop OLSRd and Commotion OpenWRT boxes

Hans-Christoph Steiner hans at guardianproject.info
Thu Mar 7 19:05:33 UTC 2013



On 03/07/2013 07:28 AM, Mikael Nordfeldth wrote:
> 2013-03-07 01:40, Hans-Christoph Steiner skrev:
> 
>> You could try commotion-mesh-applet, its very easy to try if your 
>> are Ubuntu, Mint or Debian.  It automates the whole process.  I 
>> have it working on a few machines, and it won't mess with your 
>> olsrd config or network config otherwise, and you can just remove 
>> it if it doesn't work.  It also plays nice NetworkManager, indeed 
>> it requires it.
> 
> I did play around a bit with this briefly but had trouble. However now
> that I sat down again and bothered looking at error output I saw that
> it was something as simple as character encoding.
> 
> Not being entirely fluent in Python it'd be nice if someone could say
> whether the error below is caused by the Python-NetworkManager
> str(val) return value or the commotion_applet_support.py call - and
> what the proper way to internationalize it would be :)
> 
> I'll post this in a related bug tracker too, but the following error
> was raised when trying to connect with the Gnome applet on a system
> where some profiles have non-ascii characters (more specifically 'å'):
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/commotion_applet_support.py",
> line 314, in choose_profile
>     connections = dict([(x.GetSettings()['connection']['id'], x) for x
> in connections])
>   File "/usr/lib/python2.7/dist-packages/NetworkManager.py", line 102,
> in proxy_call
>     return self.unwrap(ret)
>   File "/usr/lib/python2.7/dist-packages/NetworkManager.py", line 65,
> in unwrap
>     d[k] = self.unwrap(v)
>   File "/usr/lib/python2.7/dist-packages/NetworkManager.py", line 65,
> in unwrap
>     d[k] = self.unwrap(v)
>   File "/usr/lib/python2.7/dist-packages/NetworkManager.py", line 76,
> in unwrap
>     return str(val)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in
> position 2: ordinal not in range(128)

Thanks for the report, looks like a bug in the underlying
python-networkmanager library.  Can you paste in the name of the network that
is causing this problem?

The place to post the bug report is here:
https://github.com/seveas/python-networkmanager

I've submitted my changes to him (i.e. eighthave/python-manager).

.hc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 939 bytes
Desc: OpenPGP digital signature
URL: <http://lists.chambana.net/pipermail/commotion-dev/attachments/20130307/8dd0b79c/attachment.sig>


More information about the Commotion-dev mailing list