<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 8:22 AM Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(moved back into email thread)<br>
<br>
On Mon, Apr 12, 2021 at 9:16 PM Helmut Kudrnovsky <<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>> wrote:<br>
> > Markus:<br>
> >Open questions for anyone with Windows (Helli? Others?):<br>
> >- Is g.extension failing for all add-ons or only for a few? A new<br>
> >blocker or not?<br>
><br>
> winGRASS g.extension is failing for some of the addons where some encoding issues pops up.<br>
><br>
> but see <a href="https://github.com/OSGeo/grass/pull/1496#issuecomment-812447963" rel="noreferrer" target="_blank">https://github.com/OSGeo/grass/pull/1496#issuecomment-812447963</a><br>
><br>
> >manually set PYTHONUTF8 in C:\OSGeo4W64\apps\grass\grass79\etc\env.bat<br>
> ><br>
> >[...]<br>
> >set PYTHONUTF8=1<br>
> >set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python3.exe<br>
> >[...]<br>
> ><br>
> >then<br>
> ><br>
> >       g.extension extension=i.fusion.hpf<br>
> >       Downloading precompiled GRASS Addons <i.fusion.hpf>...<br>
> >       Fetching <i.fusion.hpf> from <<a href="http://wingrass.fsv.cvut.cz/grass79/x86_64/addons/grass-7.9.dev/i.fusion.hpf.zip" rel="noreferrer" target="_blank">http://wingrass.fsv.cvut.cz/grass79/x86_64/addons/grass-7.9.dev/i.fusion.hpf.zip</a>> (be patient)...<br>
> >       Updating extensions metadata file...<br>
> >       Updating extension modules metadata file...<br>
> >       WARNING: No metadata available for module 'constants'.<br>
> >       WARNING: No metadata available for module 'high_pass_filter'.<br>
> >       ERROR: Unable to read manual page: [Errno 2] No such file or directory: 'C:\\Users\\youruser\\AppData\\Roaming\\GRASS7\\addons\\docs\\html\\constants.html'<br>
<br>
Well, does the file exist?<br>
<br>
> >at least no fileinput.FileInput error anymore<br>
><br>
> g.extension works then with these encoding issue addons<br>
><br>
> this is based upon <a href="https://docs.python.org/3/using/windows.html#utf-8-mode" rel="noreferrer" target="_blank">https://docs.python.org/3/using/windows.html#utf-8-mode</a><br>
><br>
> > Windows still uses legacy encodings for the system encoding (the ANSI Code Page). Python uses it for the default encoding of text files (e.g. locale.getpreferredencoding()).<br>
> ><br>
> > This may cause issues because UTF-8 is widely used on the internet and most Unix systems, including WSL (Windows Subsystem for Linux).<br>
> ><br>
> > You can use UTF-8 mode to change the default text encoding to UTF-8.<br>
><br>
> I've tested a bit locally, g.extension works then (beside <a href="https://github.com/OSGeo/grass/issues/1499" rel="noreferrer" target="_blank">https://github.com/OSGeo/grass/issues/1499</a> , though that's a minor issue as all nested addons and helper libs are working, just a nasty warning ); (localized) GUI is mostly working.<br>
><br>
> though I have no idea if there are any possible side effects with set PYTHONUTF8=1 ....<br>
><br>
> maybe Anna, Maris have some ideas?<br></blockquote><div><br></div><div>Honestly this discussion is hard to follow, I would have to dive more in... I think PYTHONUTF8=1 is fine, there may be a few issues, but probably worth it.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Unfortunately I don't...<br>
<br>
> should we activate it in master and see what CI test are reporting?<br>
<br>
Might be an option to find out.<br>
<br>
> kind regards<br>
> Helmut<br>
<br>
ciao,<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div></div>