<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="-1">Hi Markus,</font></p>
<div class="moz-cite-prefix">Le 16/03/2021 à 18:56, Markus Neteler a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CALFmHhvaCTNAXQOxtd=E4iRBpnYV-trHU3LOKoh=qoOHTuwmSw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">On Tue, Mar 16, 2021 at 3:02 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 Markus,
Thank you for your reply and correction. But no thing has changed on my Grass 7.8.3 / Ubuntu 20.10, and it's still working on may Grass 7.69 / Debian Buster (see console below)
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Yes:
- GRASS GIS 7.6 uses Python 2
- GRASS GIS 7.8 uses Python 3</pre>
</blockquote>
<font size="-1">I wrote 7.69 but it's 7.9...</font><br>
<blockquote type="cite"
cite="mid:CALFmHhvaCTNAXQOxtd=E4iRBpnYV-trHU3LOKoh=qoOHTuwmSw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">(Tue Mar 16 14:50:05 2021)
g.extension extension=r.wtg url=/media/zephyr/ress/informatique/scripts/grass/scripts/r.wtg
Fetching <r.wtg> from </media/zephyr/ress/informatique/scripts/grass/scripts/r.wtg> (be patient)...
Compiling...
Installing...
Updating extensions metadata file...
Updating extension modules metadata file...
WARNING: No metadata available for module 'r.wtg'.
WARNING: No metadata available for module 'r.wtg'.
Installation of <r.wtg> successfully finished
(Tue Mar 16 14:50:14 2021) La commande s'est terminée (9 sec)
It's curious that Grass say "...not found" on every script, while copying the file in addons/ ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Here I didn't get that error but mainly the one with the wrong
formatting. The "... not found" might be a secondary error while the
original error message isn't visible (for whatever reason).
Let me suggest that you update all Python script to Python 3 (there is
the "2to3" script as well as "autopep8" and others for that purpose).
Once done, perhaps the errors you get are gone?</pre>
</blockquote>
<p><font size="-1">Ok I will update at least one script, and remove
the other for testing (I know I must update all). But I'm
surprised because scripts could be executed with File>Launch
script... <br>
I wil tell you soon.</font></p>
<p><font size="-1">Thank you for your help.<br>
Cheers,<br>
Frank<br>
</font></p>
<p><font size="-1"><br>
</font></p>
<blockquote type="cite"
cite="mid:CALFmHhvaCTNAXQOxtd=E4iRBpnYV-trHU3LOKoh=qoOHTuwmSw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">
Markus
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Frank DAVID
Le 16/03/2021 à 13:24, Markus Neteler a écrit :
Hi,
On Mon, Mar 15, 2021 at 11:31 PM Markus Neteler <a class="moz-txt-link-rfc2396E" href="mailto:neteler@osgeo.org"><neteler@osgeo.org></a> wrote:
On Mon, Mar 15, 2021 at 11:07 AM Frank David <a class="moz-txt-link-rfc2396E" href="mailto:frank.david@geophom.fr"><frank.david@geophom.fr></a> wrote:
Hello,
I've installed GRASS 7.8.3 on Ubuntu 20.10 (groovy) and when I try to install my own python script, the message is :
Fetching <r.wtg> from </media/zephyr/ress/informatique/scripts/grass/scripts/r.wtg> (be patient)...
Compiling...
/bin/sh: 1: /tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visibility.threshold: not found
/bin/sh: 1: /tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visibility.conv: not found
...
Do you have any idea that problem ?
This is somehow hard to say - is the addon available for testing?
For posterity:
I received the addon offlist. Some files showed Python 3 syntax
errors, fixed with "autopep8" and now the installation works (for me).
cheers,
Markus
</pre>
</blockquote>
</blockquote>
</body>
</html>