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

2021-03-21 Thread Helmut Kudrnovsky
>So the solution in the meantime is to:
> 
>1. download the zip file from 
>https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/
>2. unzip and remove the __pychache__ folder
>3. copy everything to C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\
 
yes; the contents of following folders

D:\dl\i.fusion.hpf>dir /b
bin
docs
etc
scripts

into the corresponding folders in 
C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

>@Helli would you mind opening an issue for that, please?

done: https://github.com/OSGeo/grass/issues/1477

ciao
helli
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-21 Thread Veronica Andreo
Thanks both!

So the solution in the meantime is to:
1. download the zip file from
https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/
2. unzip and remove the __pychache__ folder
3. copy everything to C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

Is that correct?

I hope the g.extension problem can be fixed soon? @Helli would you mind
opening an issue for that, please?

Cheers,
Vero

El sáb, 20 mar 2021 a las 23:33,  escribió:

> That's great Helmut :-)
>
> Nikos
>
> ---
>
>
> On 2021-03-19 22:39, Helmut Kudrnovsky wrote:
> ..
>
> > the script itself (downloaded from
> > https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/) works.
> >
> > now we have to solve the g.extension issue.
> >
> > kind regards
> > helli
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-20 Thread nik

That's great Helmut :-)

Nikos

---


On 2021-03-19 22:39, Helmut Kudrnovsky wrote:
..
 

the script itself (downloaded from
https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/) works.
 
now we have to solve the g.extension issue.
 
kind regards
helli

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread Helmut Kudrnovsky

>that's the reason of g.extension failing
>
>downloading the zip-file (see link above) and copying the files into the 
>corresponding folders in
>
>C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\
>
>should help.

now tested in this way:
 

g.region -p -a raster=lsat7_2002_80@PERMANENT align=lsat7_2002_80@PERMANENT
---
i.fusion.hpf pan=lsat7_2002_80@PERMANENT 
msx=lsat7_2002_10@PERMANENT,lsat7_2002_20@PERMANENT,lsat7_2002_30@PERMANENT,lsat7_2002_40@PERMANENT
 suffix=_hpf
|! Region's resolution matched to Pan's (14.25)
Processing image: lsat7_2002_10@PERMANENT
|1 Determining ratio of low to high resolution
> Retrieving image resolutions
>> Resolution ratio low (28.500) to high (14.250): 2.0
|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)
> Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor
>> StdDev of : 20.702
>> StdDev of HPFi: 257.949
>> Modulating Factor: 0.25
|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_10@PERMANENT
Processing image: lsat7_2002_20@PERMANENT
|1 Determining ratio of low to high resolution
> Retrieving image resolutions
>> Resolution ratio low (28.500) to high (14.250): 2.0
|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)
> Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor
>> StdDev of : 23.325
>> StdDev of HPFi: 257.949
>> Modulating Factor: 0.25
|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_20@PERMANENT
Processing image: lsat7_2002_30@PERMANENT
|1 Determining ratio of low to high resolution
> Retrieving image resolutions
>> Resolution ratio low (28.500) to high (14.250): 2.0
|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)
> Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor
>> StdDev of : 34.711
>> StdDev of HPFi: 257.949
>> Modulating Factor: 0.25
|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_30@PERMANENT
Processing image: lsat7_2002_40@PERMANENT
|1 Determining ratio of low to high resolution
> Retrieving image resolutions
>> Resolution ratio low (28.500) to high (14.250): 2.0
|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)
> Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor
>> StdDev of : 20.479
>> StdDev of HPFi: 257.949
>> Modulating Factor: 0.25
|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_40@PERMANENT
|! Original Region restored
>>> Hint, rebalancing colors (via i.colors.enhance) may improve appearance of 
>>> RGB composites!
WARNING: No data base element files found
(Fri Mar 19 21:27:40 2021) Befehl ausgeführt (15 Sek)  
 
the script itself (downloaded from 
https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/) works.
 
now we have to solve the g.extension issue.
 
kind regards
helli
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread Helmut Kudrnovsky
>I know well the issue(s).  I don't run a WinBox currently.

as already mentioned in an earlier mail, the culprit is not with the script 
itself, though with some leftovers in the pre-compiled zip files used by 
g.extension in winGRASS, see

https://lists.osgeo.org/pipermail/grass-user/2021-March/082299.html

>downloading the zipped addon, which is used by g.extension in windows, from 
>here:
>https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/
>
>in the subfolder i.fusion.hpf\etc\i.fusion.hpf, there is a subfolder 
>__pycache__
>
>i.fusion.hpf\etc\i.fusion.hpf\__pycache__>ls
>
>constants.cpython-37.pyc
>high_pass_filter.cpython-37.pyc
>
>the compiled python bytecode shouldn't be there in the zip file.
>
>@Martin: anything to change on the compilation server?

that's the reason of g.extension failing

downloading the zip-file (see link above) and copying the files into the 
corresponding folders in

C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

should help.

kind regards
Helli

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread nik
Sorry, too fast.  ...which sub-folders I don't recall anymore. 

N 


On 2021-03-19 13:15, n...@nikosalexandris.net wrote:

I know well the issue(s).  I don't run a WinBox currently. 

It should suffice to copy the source code in the correct sub-folders. 


Which I memorised times ago while working in r.estimap.recreation.___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread nik
I know well the issue(s).  I don't run a WinBox currently. 

It should suffice to copy the source code in the correct sub-folders. 

Which I memorised times ago while working in r.estimap.recreation. 


N

---

On 2021-03-19 13:09, Veronica Andreo wrote:

Hi Nikos 

I can try it because I'm using Linux, but installing branches or installing add-ons from urls is not supported for windows, and the error comes when students using windows try to install the add-on (not in linux). So even if I try the gitlab branch here, I cannot tell if all will be fine in windows then... 

Vero 

El vie, 19 mar 2021 a las 13:02,  escribió: 

Can you try this branch https://gitlab.com/NikosAlexandris/i.fusion.hpf/-/tree/encoding 

(commit:https://gitlab.com/NikosAlexandris/i.fusion.hpf/-/commit/86c2ae92f158c09947ae366bf20dbf3794b8f191) 


?

---

On 2021-03-19 12:18, Veronica Andreo wrote: 

I'd really appreciate Nikos! :) 

El vie, 19 mar 2021 a las 8:28,  escribió: 

Vero, 

I'll try to have a quick look on that during the WE (work overloaded here). 

Hopefully it's something trivial, like this suggestion: 

https://stackoverflow.com/a/60197939/1172302 


Nikos

---

On 2021-03-18 13:35, Veronica Andreo 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 
...
Fetching  from

(be patient)...
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py [1]", line 2350, in 

sys.exit(main())
File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py [1]", 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 [1]", 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 [1]", 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  

Here his settings: 

Versión de GRASS: 7.8.5 
Code revision: 2b6ab2893 
Fecha de compilación: 2020-12-21 
Construir plataforma: x86_64-w64-mingw32 
GDAL: 3.1.4 
PROJ: 6.3.2 
GEOS: 3.8.1 
SQLite: 3.29.0 
Python: 3.7.0 
wxPython: 4.0.7 
Plataforma: Windows-10-10.0.19041-SP0 (OSGeo4W) 

Any ideas?? He can install other extensions without problems. 

Thanks in advance 


Vero



Links:
--
[1] http://g.extension.py___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread Veronica Andreo
Hi Nikos

I can try it because I'm using Linux, but installing branches or installing
add-ons from urls is not supported for windows, and the error comes when
students using windows try to install the add-on (not in linux). So even if
I try the gitlab branch here, I cannot tell if all will be fine in windows
then...

Vero

El vie, 19 mar 2021 a las 13:02,  escribió:

> Can you try this branch
> https://gitlab.com/NikosAlexandris/i.fusion.hpf/-/tree/encoding
>
> (commit:
> https://gitlab.com/NikosAlexandris/i.fusion.hpf/-/commit/86c2ae92f158c09947ae366bf20dbf3794b8f191
> )
>
> ?
> ---
>
>
>
> On 2021-03-19 12:18, Veronica Andreo wrote:
>
> I'd really appreciate Nikos! :)
>
> El vie, 19 mar 2021 a las 8:28,  escribió:
>
> Vero,
>
>
> I'll try to have a quick look on that during the WE (work overloaded here).
>
> Hopefully it's something trivial, like this suggestion:
>
> https://stackoverflow.com/a/60197939/1172302
>
>
> Nikos
> ---
>
>
>
> On 2021-03-18 13:35, Veronica Andreo 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 ...
> Fetching  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 
> 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 
>
> Here his settings:
>
> Versión de GRASS: 7.8.5
> Code revision: 2b6ab2893
> Fecha de compilación: 2020-12-21
> Construir plataforma: x86_64-w64-mingw32
> GDAL: 3.1.4
> PROJ: 6.3.2
> GEOS: 3.8.1
> SQLite: 3.29.0
> Python: 3.7.0
> wxPython: 4.0.7
> Plataforma: Windows-10-10.0.19041-SP0 (OSGeo4W)
>
> Any ideas?? He can install other extensions without problems.
>
> Thanks in advance
>
> Vero
>
>
>
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread nik

Can you try this branch
https://gitlab.com/NikosAlexandris/i.fusion.hpf/-/tree/encoding 


(commit:https://gitlab.com/NikosAlexandris/i.fusion.hpf/-/commit/86c2ae92f158c09947ae366bf20dbf3794b8f191)


?

---

On 2021-03-19 12:18, Veronica Andreo wrote:

I'd really appreciate Nikos! :) 

El vie, 19 mar 2021 a las 8:28,  escribió: 

Vero, 

I'll try to have a quick look on that during the WE (work overloaded here). 

Hopefully it's something trivial, like this suggestion: 

https://stackoverflow.com/a/60197939/1172302 


Nikos

---

On 2021-03-18 13:35, Veronica Andreo 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 
...
Fetching  from

(be patient)...
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py [1]", line 2350, in 

sys.exit(main())
File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py [1]", 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 [1]", 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 [1]", 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  

Here his settings: 

Versión de GRASS: 7.8.5 
Code revision: 2b6ab2893 
Fecha de compilación: 2020-12-21 
Construir plataforma: x86_64-w64-mingw32 
GDAL: 3.1.4 
PROJ: 6.3.2 
GEOS: 3.8.1 
SQLite: 3.29.0 
Python: 3.7.0 
wxPython: 4.0.7 
Plataforma: Windows-10-10.0.19041-SP0 (OSGeo4W) 

Any ideas?? He can install other extensions without problems. 

Thanks in advance 


Vero



Links:
--
[1] http://g.extension.py___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread Veronica Andreo
I'd really appreciate Nikos! :)

El vie, 19 mar 2021 a las 8:28,  escribió:

> Vero,
>
>
> I'll try to have a quick look on that during the WE (work overloaded here).
>
> Hopefully it's something trivial, like this suggestion:
>
> https://stackoverflow.com/a/60197939/1172302
>
>
> Nikos
> ---
>
>
>
> On 2021-03-18 13:35, Veronica Andreo 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 ...
> Fetching  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 
> 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 
>
> Here his settings:
>
> Versión de GRASS: 7.8.5
> Code revision: 2b6ab2893
> Fecha de compilación: 2020-12-21
> Construir plataforma: x86_64-w64-mingw32
> GDAL: 3.1.4
> PROJ: 6.3.2
> GEOS: 3.8.1
> SQLite: 3.29.0
> Python: 3.7.0
> wxPython: 4.0.7
> Plataforma: Windows-10-10.0.19041-SP0 (OSGeo4W)
>
> Any ideas?? He can install other extensions without problems.
>
> Thanks in advance
>
> Vero
>
>
>
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-19 Thread nik
Vero, 


I'll try to have a quick look on that during the WE (work overloaded
here). 

Hopefully it's something trivial, like this suggestion: 

https://stackoverflow.com/a/60197939/1172302 


Nikos

---

On 2021-03-18 13:35, Veronica Andreo 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 
...
Fetching  from

(be patient)...
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py [1]", line 2350, in 

sys.exit(main())
File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py [1]", 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 [1]", 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 [1]", 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  

Here his settings: 

Versión de GRASS: 7.8.5 
Code revision: 2b6ab2893 
Fecha de compilación: 2020-12-21 
Construir plataforma: x86_64-w64-mingw32 
GDAL: 3.1.4 
PROJ: 6.3.2 
GEOS: 3.8.1 
SQLite: 3.29.0 
Python: 3.7.0 
wxPython: 4.0.7 
Plataforma: Windows-10-10.0.19041-SP0 (OSGeo4W) 

Any ideas?? He can install other extensions without problems. 

Thanks in advance 


Vero



Links:
--
[1] http://g.extension.py___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-18 Thread Helmut Kudrnovsky
>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?

downloading the zipped addon, which is used by g.extension in windows, from 
here:
https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/

in the subfolder i.fusion.hpf\etc\i.fusion.hpf, there is a subfolder __pycache__

i.fusion.hpf\etc\i.fusion.hpf\__pycache__>ls

constants.cpython-37.pyc
high_pass_filter.cpython-37.pyc

the compiled python bytecode shouldn't be there in the zip file.

@Martin: anything to change on the compilation server?

ciao
Helli
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-18 Thread Markus Neteler
On Thu, Mar 18, 2021 at 1:35 PM Veronica Andreo  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 ...
> Fetching  from
> 
> (be patient)...
> Traceback (most recent call last):
>   File "C:\OSGEO4~1\apps\grass\grass78/scripts/g.extension.py", line 2350, in 
> 
> 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 

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
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2021-03-18 Thread Veronica Andreo
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 ...
Fetching  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 
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 

Here his settings:

Versión de GRASS: 7.8.5
Code revision: 2b6ab2893
Fecha de compilación: 2020-12-21
Construir plataforma: x86_64-w64-mingw32
GDAL: 3.1.4
PROJ: 6.3.2
GEOS: 3.8.1
SQLite: 3.29.0
Python: 3.7.0
wxPython: 4.0.7
Plataforma: Windows-10-10.0.19041-SP0 (OSGeo4W)

Any ideas?? He can install other extensions without problems.

Thanks in advance

Vero
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user