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

Mikael Nordfeldth mmn at hethane.se
Thu Mar 7 12:28:46 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJROIfmAAoJEMW3RSLxX/nuI3wH/2OC2eWyqC7EFzMPmLckaOtJ
ojaKlmy7QAA6Vg4TtWjP6seSji4rUOTacfnu6dp+/sDlzL9O+HPckF/shYHriaeB
65JFbeKGT6CGVX86upqTObEKnkV+H2BYXSyk2jxBb46vzCPVX/kZRpiwLB146kcm
8C4lgNGBFpZfAgqoHJdQpDhFlnAw50WLbCNCRq2Vl2EiYSaLGsr78wxLdN7L9ajy
521AI7gwmr488neD8ysvGCGigAfyc92L2HLea10UiWtJlRSOrXH8a0PEHDC6J5DE
y5oeWy8MlzjIWFcX+6N8BhSqZ8AD25/+IoZ33RNksWlw3IPAoZXCN+4y8+qNuzI=
=yJYM
-----END PGP SIGNATURE-----


More information about the Commotion-dev mailing list