[GRASS-dev] [release planning] GRASS GIS 7.8.6
Anna Petrášová
kratochanna at gmail.com
Thu Apr 15 07:03:09 PDT 2021
On Tue, Apr 13, 2021 at 8:22 AM Markus Neteler <neteler at osgeo.org> wrote:
> (moved back into email thread)
>
> On Mon, Apr 12, 2021 at 9:16 PM Helmut Kudrnovsky <hellik at web.de> wrote:
> > > Markus:
> > >Open questions for anyone with Windows (Helli? Others?):
> > >- Is g.extension failing for all add-ons or only for a few? A new
> > >blocker or not?
> >
> > winGRASS g.extension is failing for some of the addons where some
> encoding issues pops up.
> >
> > but see https://github.com/OSGeo/grass/pull/1496#issuecomment-812447963
> >
> > >manually set PYTHONUTF8 in C:\OSGeo4W64\apps\grass\grass79\etc\env.bat
> > >
> > >[...]
> > >set PYTHONUTF8=1
> > >set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python3.exe
> > >[...]
> > >
> > >then
> > >
> > > g.extension extension=i.fusion.hpf
> > > Downloading precompiled GRASS Addons <i.fusion.hpf>...
> > > Fetching <i.fusion.hpf> from <
> http://wingrass.fsv.cvut.cz/grass79/x86_64/addons/grass-7.9.dev/i.fusion.hpf.zip>
> (be patient)...
> > > Updating extensions metadata file...
> > > Updating extension modules metadata file...
> > > WARNING: No metadata available for module 'constants'.
> > > WARNING: No metadata available for module 'high_pass_filter'.
> > > ERROR: Unable to read manual page: [Errno 2] No such file or
> directory:
> 'C:\\Users\\youruser\\AppData\\Roaming\\GRASS7\\addons\\docs\\html\\constants.html'
>
> Well, does the file exist?
>
> > >at least no fileinput.FileInput error anymore
> >
> > g.extension works then with these encoding issue addons
> >
> > this is based upon
> https://docs.python.org/3/using/windows.html#utf-8-mode
> >
> > > 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()).
> > >
> > > This may cause issues because UTF-8 is widely used on the internet and
> most Unix systems, including WSL (Windows Subsystem for Linux).
> > >
> > > You can use UTF-8 mode to change the default text encoding to UTF-8.
> >
> > I've tested a bit locally, g.extension works then (beside
> https://github.com/OSGeo/grass/issues/1499 , though that's a minor issue
> as all nested addons and helper libs are working, just a nasty warning );
> (localized) GUI is mostly working.
> >
> > though I have no idea if there are any possible side effects with set
> PYTHONUTF8=1 ....
> >
> > maybe Anna, Maris have some ideas?
>
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.
>
> Unfortunately I don't...
>
> > should we activate it in master and see what CI test are reporting?
>
> Might be an option to find out.
>
> > kind regards
> > Helmut
>
> ciao,
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20210415/e5083eb3/attachment.html>
More information about the grass-dev
mailing list