[Thuban-list] Problem with Thuban in Ubuntu

Bernhard Reiter bernhard at intevation.de
Tue Apr 24 20:11:01 CEST 2007


Hi Samuel,

On Tuesday 24 April 2007 19:14, Samuel Mesa wrote:
> the bug reported in Thuban is the following one:
>
> For the projection of layers
>
> ***********************
> Se activó una excepción no manejada:
> 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in
> range(128) (por favior informe del error utilizando
> http://thuban.intevation.org/bugtracker.html)
>
> Traceback (most recent call last):
>  File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 297, in
> invoke_command command.Execute(self.Context())
>  File "/usr/lib/thuban/Thuban/UI/command.py", line 121, in Execute
>    apply(self.function, (context,) + self.args + args, kw)
>  File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 1071, in call_method
>    apply(getattr(context.mainwindow, methodname), args)
>  File "/usr/lib/thuban/Thuban/UI/mainwindow.py", line 779, in
> LayerProjection _("Layer Projection: %s") % layer.Title(), layer)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 8: ordinal not in range(128)

This seems to have to do with the title of your layer.
What kind of title does it have?
Could you provide an example Thuban session file 
with this layer for reproduction?

(Best is to add both to the issue tracker on 
http://wald.intevation.org/projects/thuban/

Can you also add the contents of the about dialog
and which locale you are running?
On a command line try:
   locales

> ****************
>
>
> For the classification of the simbology
>
>
> ***************
> Se activó una excepción no manejada:
> 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in
> range(128) (por favior informe del error utilizando
> http://thuban.intevation.org/bugtracker.html)
>
> Traceback (most recent call last):
>  File "/usr/lib/thuban/Thuban/UI/classgen.py", line 221, in OnOK
>    if genSel in (GENCOMBOSTR_UNIFORM,          \
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 10: ordinal not in range(128)
> ****************

genSel is the result of self.genChoice.GetString(index)
hmm, given that you will probably use the Spanish translation
this would be msgstr "Distribución Uniforme" of course this cannot be
decoded to ascii.
Ah, I can reproduce this one with the German localisation.

> It is wonderful that with Python this tool GIS is being developed

Thanks for your feedback and the problem report!
Bernhard


-- 
Managing Director - Owner: www.intevation.net       (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-list/attachments/20070424/1fcd6b46/attachment.bin


More information about the Thuban-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)