[GRASS-user] error in g.extension while installing i.fusion.hpf in windows

Markus Neteler neteler at osgeo.org
Thu Mar 18 06:58:21 PDT 2021


On Thu, Mar 18, 2021 at 1:35 PM Veronica Andreo <veroandreo at gmail.com> wrote:
>
> Hello list,
>
> A student is getting the following error when trying to install i.fusion.hpf
>
> C:\>g.extension extension=i.fusion.hpf
> Downloading precompiled GRASS Addons <i.fusion.hpf>...
> Fetching <i.fusion.hpf> from
> <http://wingrass.fsv.cvut.cz/grass78/x86_64/addons/grass-7.8.5/i.fusion.hpf.zip>
> (be patient)...
> Traceback (most recent call last):
>   File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py", line 2350, in <module>
>     sys.exit(main())
>   File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py", line 2330, in main
>     install_extension(source=source, url=url, xmlurl=xmlurl, branch=branch)
>   File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py", line 871, in install_extension
>     ret1, new_modules_ext, new_files_ext = install_extension_win(extension)
>   File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py", line 1259, in install_extension_win
>     for line in file:
>   File "C:\OSGEO4~1\apps\Python37\lib\fileinput.py", line 252, in __next__
>     line = self._readline()
>   File "C:\OSGEO4~1\apps\Python37\lib\fileinput.py", line 366, in _readline
>     return self._readline()
>   File "C:\OSGEO4~1\apps\Python37\lib\encodings\cp1252.py", line 23, in decode
>     return codecs.charmap_decode(input,self.errors,decoding_table)[0]
>
> UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 401: character maps to <undefined>

What surprises me a bit:

file *
constants.py:                    Python script, UTF-8 Unicode text executable
high_pass_filter.py:             Python script, ASCII text executable
i.fusion.hpf.html:               HTML document, ASCII text
i_fusion_hpf_lsat7_hpf_rgb.png:  PNG image data, 1327 x 840,
8-bit/color RGB, non-interlaced
i_fusion_hpf_lsat7_orig_rgb.png: PNG image data, 1327 x 840,
8-bit/color RGB, non-interlaced
i.fusion.hpf.py:                 Python script, ASCII text executable
licenses:                        directory
Makefile:                        ASCII text
README.md:                       UTF-8 Unicode text
test_high_pass_filter.py:        Python script, ASCII text executable

--> some .py files are UTF-8, some are not.... shall this be streamlined?

Markus

PS: perhaps more a question for grass-dev


More information about the grass-user mailing list