[GRASS-user] no more gui after upgrade to buster

Frank David frank.david at geophom.fr
Sat Jan 11 09:03:28 PST 2020


Markus,

I've installed needed packages for garss 7.8 included python3-wxgtk4. 
libmaria does not exist but libmaria3

_Configuration has return :_

   BLAS support:               yes
   BZIP2 support:              no
   C++ support:                yes
   Cairo support:              yes
   DWG support:                no
   FFTW support:               yes
   FreeType support:           yes
   GDAL support:               yes
   GEOS support:               yes
   LAPACK support:             yes
   Large File support (LFS):   yes
   libLAS support:             no
   MySQL support:              yes
   NetCDF support:             yes
   NLS support:                yes
   ODBC support:               yes
   OGR support:                yes
   OpenCL support:             no
   OpenGL support:             yes
   OpenMP support:             yes
   PDAL support:               no
   PNG support:                yes
   POSIX thread support:       no
   PostgreSQL support:         yes
   Readline support:           yes
   Regex support:              yes
   SQLite support:             yes
   TIFF support:               yes
   X11 support:                no
   Zstandard support:          yes

   using new PROJ 5+ API

---------------------------

Compile & install ok

The gui is working.

BUT my scripts does not work any more. See belows errors :

Traceback (most recent call last):
   File "/usr/local/grass78/gui/wxpython/gui_core/forms.py",
line 2866, in ParseCommand

blackList=_blackList)
   File "/usr/local/grass78/etc/python/grass/script/task.py",
line 522, in parse_interface

tree = etree.fromstring(get_interface_description(name))
   File "/usr/local/grass78/etc/python/grass/script/task.py",
line 498, in get_interface_description

"\n\nDetails: <{det}>").format(cmd=cmd, det=decode(cmderr)))
grass.exceptions
.
ScriptError
:
Unable to fetch interface description for command
'<r.wtg.visibility>'.
Details: <Traceback (most recent call last):
   File
"/home/frank/.grass7/addons/scripts/r.wtg.visibility", line
299, in <module>
     from grass.pygrass.utils import set_path
   File
"/usr/local/grass78/etc/python/grass/pygrass/utils.py", line
7, in <module>
     import grass.lib.gis as libgis
   File "/usr/local/grass78/etc/python/grass/lib/gis.py",
line 4
SyntaxError: Non-ASCII character '\xc3' in file
/usr/local/grass78/etc/python/grass/lib/gis.py on line 5,
but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details
 >
During handling of the above exception, another exception
occurred:
Traceback (most recent call last):
   File "/usr/local/grass78/gui/wxpython/core/gconsole.py",
line 493, in RunCmd

task = GUI(show=None).ParseCommand(command)
   File "/usr/local/grass78/gui/wxpython/gui_core/forms.py",
line 2868, in ParseCommand

raise gcmd.GException(e.value)
core.gcmd
.
GException
:
Unable to fetch interface description for command
'<r.wtg.visibility>'.
Details: <Traceback (most recent call last):
   File
"/home/frank/.grass7/addons/scripts/r.wtg.visibility", line
299, in <module>
     from grass.pygrass.utils import set_path
   File
"/usr/local/grass78/etc/python/grass/pygrass/utils.py", line
7, in <module>
     import grass.lib.gis as libgis
   File "/usr/local/grass78/etc/python/grass/lib/gis.py",
line 4
SyntaxError: Non-ASCII character '\xc3' in file
/usr/local/grass78/etc/python/grass/lib/gis.py on line 5,
but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details
 >
During handling of the above exception, another exception
occurred:
Traceback (most recent call last):
   File "/usr/local/grass78/gui/wxpython/gui_core/prompt.py",
line 413, in OnKeyPressed

self._runCmd(self.GetCurLine()[0].strip())
   File "/usr/local/grass78/gui/wxpython/gui_core/prompt.py",
line 120, in _runCmd

self.promptRunCmd.emit(cmd=cmd)
   File
"/usr/local/grass78/etc/python/grass/pydispatch/signal.py",
line 229, in emit

dispatcher.send(signal=self, *args, **kwargs)
   File "/usr/local/grass78/etc/python/grass/pydispatch/dispa
tcher.py", line 349, in send

**named
   File "/usr/local/grass78/etc/python/grass/pydispatch/robus
tapply.py", line 60, in robustApply

return receiver(*arguments, **named)
   File
"/usr/local/grass78/gui/wxpython/gui_core/goutput.py", line
120, in <lambda>

self._gconsole.RunCmd(command=cmd))
   File "/usr/local/grass78/gui/wxpython/core/gconsole.py",
line 496, in RunCmd

message=unicode(e),
NameError
:
name 'unicode' is not defined

----------------------------

If I add *# -*- coding:UTF-8 -*-* on first line in 
/usr/local/grass78/etc/python/grass/lib/gis.py and 
/usr/local/grass78/etc/python/grass/lib/raster.py my scripts work !

Is-it the good fix ??

Thank you for your help.

Regards

Frank


Le 11/01/2020 à 17:19, Markus Neteler a écrit :
> On Sat, Jan 11, 2020 at 4:51 PM Frank David <frank.david at geophom.fr> wrote:
>> Hi,
>>
>> Yes why not. Is the installation procedure is same than stretch ?
> I guess it will be the same/similar (I am more Fedora focused but
> others here will know).
>
>> Is Python3 support will not make problems with my Python2 scripts ? and what to do to avoid in that case ?
> The Python package "python3-dev[el]" contains a `2to3` script to update scripts.
> Most welcome esp. for the change of print "bla" to print("bla").   :-)
>
>> Do I follow this ? > https://grasswiki.osgeo.org/wiki/Compile_and_Install#GRASS_7_on_Debian_Stretch
> Yes, and pls report if anything fails.
>
> Markus
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20200111/e00c944a/attachment-0001.html>


More information about the grass-user mailing list