<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Markus,<br>
</p>
<p>I've installed needed packages for garss 7.8 included
python3-wxgtk4. libmaria does not exist but libmaria3</p>
<p><u>Configuration has return :</u></p>
<p> BLAS support: yes<br>
BZIP2 support: no<br>
C++ support: yes<br>
Cairo support: yes<br>
DWG support: no<br>
FFTW support: yes<br>
FreeType support: yes<br>
GDAL support: yes<br>
GEOS support: yes<br>
LAPACK support: yes<br>
Large File support (LFS): yes<br>
libLAS support: no<br>
MySQL support: yes<br>
NetCDF support: yes<br>
NLS support: yes<br>
ODBC support: yes<br>
OGR support: yes<br>
OpenCL support: no<br>
OpenGL support: yes<br>
OpenMP support: yes<br>
PDAL support: no<br>
PNG support: yes<br>
POSIX thread support: no<br>
PostgreSQL support: yes<br>
Readline support: yes<br>
Regex support: yes<br>
SQLite support: yes<br>
TIFF support: yes<br>
X11 support: no<br>
Zstandard support: yes<br>
<br>
using new PROJ 5+ API</p>
<p>---------------------------<br>
</p>
<p>Compile & install ok</p>
<p>The gui is working.</p>
<p>BUT my scripts does not work any more. See belows errors :</p>
<p>Traceback (most recent call last):<br>
File "/usr/local/grass78/gui/wxpython/gui_core/forms.py",<br>
line 2866, in ParseCommand<br>
<br>
blackList=_blackList)<br>
File "/usr/local/grass78/etc/python/grass/script/task.py",<br>
line 522, in parse_interface<br>
<br>
tree = etree.fromstring(get_interface_description(name))<br>
File "/usr/local/grass78/etc/python/grass/script/task.py",<br>
line 498, in get_interface_description<br>
<br>
"\n\nDetails: <{det}>").format(cmd=cmd, det=decode(cmderr)))<br>
grass.exceptions<br>
.<br>
ScriptError<br>
:<br>
Unable to fetch interface description for command<br>
'<r.wtg.visibility>'.<br>
Details: <Traceback (most recent call last):<br>
File<br>
"/home/frank/.grass7/addons/scripts/r.wtg.visibility", line<br>
299, in <module><br>
from grass.pygrass.utils import set_path<br>
File<br>
"/usr/local/grass78/etc/python/grass/pygrass/utils.py", line<br>
7, in <module><br>
import grass.lib.gis as libgis<br>
File "/usr/local/grass78/etc/python/grass/lib/gis.py",<br>
line 4<br>
SyntaxError: Non-ASCII character '\xc3' in file<br>
/usr/local/grass78/etc/python/grass/lib/gis.py on line 5,<br>
but no encoding declared; see<br>
<a class="moz-txt-link-freetext" href="http://python.org/dev/peps/pep-0263/">http://python.org/dev/peps/pep-0263/</a> for details<br>
><br>
During handling of the above exception, another exception<br>
occurred:<br>
Traceback (most recent call last):<br>
File "/usr/local/grass78/gui/wxpython/core/gconsole.py",<br>
line 493, in RunCmd<br>
<br>
task = GUI(show=None).ParseCommand(command)<br>
File "/usr/local/grass78/gui/wxpython/gui_core/forms.py",<br>
line 2868, in ParseCommand<br>
<br>
raise gcmd.GException(e.value)<br>
core.gcmd<br>
.<br>
GException<br>
:<br>
Unable to fetch interface description for command<br>
'<r.wtg.visibility>'.<br>
Details: <Traceback (most recent call last):<br>
File<br>
"/home/frank/.grass7/addons/scripts/r.wtg.visibility", line<br>
299, in <module><br>
from grass.pygrass.utils import set_path<br>
File<br>
"/usr/local/grass78/etc/python/grass/pygrass/utils.py", line<br>
7, in <module><br>
import grass.lib.gis as libgis<br>
File "/usr/local/grass78/etc/python/grass/lib/gis.py",<br>
line 4<br>
SyntaxError: Non-ASCII character '\xc3' in file<br>
/usr/local/grass78/etc/python/grass/lib/gis.py on line 5,<br>
but no encoding declared; see<br>
<a class="moz-txt-link-freetext" href="http://python.org/dev/peps/pep-0263/">http://python.org/dev/peps/pep-0263/</a> for details<br>
><br>
During handling of the above exception, another exception<br>
occurred:<br>
Traceback (most recent call last):<br>
File "/usr/local/grass78/gui/wxpython/gui_core/prompt.py",<br>
line 413, in OnKeyPressed<br>
<br>
self._runCmd(self.GetCurLine()[0].strip())<br>
File "/usr/local/grass78/gui/wxpython/gui_core/prompt.py",<br>
line 120, in _runCmd<br>
<br>
self.promptRunCmd.emit(cmd=cmd)<br>
File<br>
"/usr/local/grass78/etc/python/grass/pydispatch/signal.py",<br>
line 229, in emit<br>
<br>
dispatcher.send(signal=self, *args, **kwargs)<br>
File "/usr/local/grass78/etc/python/grass/pydispatch/dispa<br>
tcher.py", line 349, in send<br>
<br>
**named<br>
File "/usr/local/grass78/etc/python/grass/pydispatch/robus<br>
tapply.py", line 60, in robustApply<br>
<br>
return receiver(*arguments, **named)<br>
File<br>
"/usr/local/grass78/gui/wxpython/gui_core/goutput.py", line<br>
120, in <lambda><br>
<br>
self._gconsole.RunCmd(command=cmd))<br>
File "/usr/local/grass78/gui/wxpython/core/gconsole.py",<br>
line 496, in RunCmd<br>
<br>
message=unicode(e),<br>
NameError<br>
:<br>
name 'unicode' is not defined</p>
<p>----------------------------<br>
</p>
<p>If I add <b># -*- coding:UTF-8 -*-</b> 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
!</p>
<p>Is-it the good fix ??</p>
<p>Thank you for your help.</p>
<p>Regards</p>
<p>Frank<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 11/01/2020 à 17:19, Markus Neteler a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CALFmHhu5fhkGT2To45zGsgmjYeyU+dDQT8ZOcRcPQ2PCsF+wcA@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">On Sat, Jan 11, 2020 at 4:51 PM Frank David <a class="moz-txt-link-rfc2396E" href="mailto:frank.david@geophom.fr"><frank.david@geophom.fr></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Hi,
Yes why not. Is the installation procedure is same than stretch ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I guess it will be the same/similar (I am more Fedora focused but
others here will know).
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Is Python3 support will not make problems with my Python2 scripts ? and what to do to avoid in that case ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
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"). :-)
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Do I follow this ? > <a class="moz-txt-link-freetext" href="https://grasswiki.osgeo.org/wiki/Compile_and_Install#GRASS_7_on_Debian_Stretch">https://grasswiki.osgeo.org/wiki/Compile_and_Install#GRASS_7_on_Debian_Stretch</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Yes, and pls report if anything fails.
Markus
</pre>
</blockquote>
</body>
</html>