[GRASS-dev] problem in ubuntu package (ppa:grass-devel) was: can not install addons with g.extension

Anna Petrášová kratochanna at gmail.com
Fri Feb 20 05:32:17 PST 2015


On Tue, Feb 17, 2015 at 9:41 AM, Anna Petrášová <kratochanna at gmail.com>
wrote:

>
>
> On Tue, Feb 17, 2015 at 6:03 AM, Robert Nuske <rnuske at gwdg.de> wrote:
>
>> Hi
>>
>> g.extension from grass70 (ppa:grass-devel) still fails.
>> [...]
>> Traceback (most recent call last):
>>   File "/usr/lib/grass70/tools/g.html2man.py", line 5, in <module>
>>     from html import HTMLParser, HTMLParseError
>> ImportError: No module named html
>> [...]
>>
>> GRASS Version: 7.0.0+1svn64647~ubuntu14.04.1
>> package from PPA grass-devel
>> ubuntu 14.04  64bit
>>
>> -----------------------------------------------------------
>>
>> Not getting anywhere with that error message, I build GRASS
>> releasebranch_7_0
>> from source according to
>> http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS
>>
>> Everything works nicely, including g.extension
>> [...]
>> Installation of <r.grow.shrink> successfully finished
>>
>> :-)
>>
>> -----------------------------------------------------------
>>
>> Starting the packaged version of GRASS 7 afterwards (/usr/bin/grass70)
>> leads to errors and no wxpython GUI.
>>
>> Error message in popup window:
>> Unable to parse user toolboxes XML files. Default module tree will be
>> loaded.
>>
>> Ursache: 'ascii' codec can't encode character u'\xfc' in position 201:
>> ordinal
>> not in range(128)
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/grass70/gui/wxpython/lmgr/menudata.py", line 62, in
>> __init__
>>     MenuTreeModelBuilder.__init__(self, filename,
>> expandAddons=expandAddons)
>>   File "/usr/lib/grass70/gui/wxpython/core/menutree.py", line 66, in
>> __init__
>>     expAddons(xmlTree)
>>   File "/usr/lib/grass70/gui/wxpython/core/toolboxes.py", line 280, in
>> expandAddons
>>     _expandRuntimeModules(root, loadMetadata=True)
>>   File "/usr/lib/grass70/gui/wxpython/core/toolboxes.py", line 525, in
>> _expandRuntimeModules
>>     desc, keywords = _loadMetadata(name)
>>   File "/usr/lib/grass70/gui/wxpython/core/toolboxes.py", line 560, in
>> _loadMetadata
>>     sys.stderr.write("%s: %s\n" % (module, e))
>>   File "/usr/lib/grass70/etc/python/grass/exceptions/__init__.py", line
>> 48, in
>> __str__
>>     return str(self.value)
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in
>> position
>> 201: ordinal not in range(128)
>>
>>
>>
> Hi,
>
>  I tried to fix it in r64661 in trunk. I assume the problem is that the
> error message is translatable and has some non-ascii characters. Could
> anyone test it in trunk (preferably with different locale)? Any better
> solution is welcome too. We should fix this before the release.
>

Could anyone test it? I think this should be backported since the bug
prevents from starting gui but I need someone with different locale to test
it. I think the error message contains non-ascii characters which is the
problem then. Sorry I forgot about this in the last days and nobody else
really paid attention to this one. Or we can completely skip loading
metadata addon modules for the release as it is now on Windows. Any opinion?

Anna


> Anna
>
>
> cheers
>>   robert
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150220/407daa6d/attachment.html>


More information about the grass-dev mailing list