Re: [GRASS-user] r.futures not working

2020-12-14 Thread Helmut Kudrnovsky
>is it clear now what were the problems? 

Yes it's clear now what the issue(s) was:

- the winGRASS-R-bridge looks for R installations in windows standard drive
and folders, i.e. C:\Program; R installations in non standard drives,
e.g. D:\Program... are not reckognized => standard R installation location
shouldn't be changed 

- R packages/libraries has to be available system wide, e.g. run R install 
packages as administrator 


another issue is that the current winGRASS-R-bridge version is broken; we
have to reinstate the previous version. 



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-14 Thread Anna Petrášová
Thanks Helmut for figuring it out! I was wondering is it clear now what
were the problems? I thought a summary might be useful if we encounter this
again...

Anna

On Sun, Dec 13, 2020 at 7:05 AM Helmut Kudrnovsky  wrote:

> >Ok got it, I just had to run R as administrator and download it then. >I
> think everything works now. Helmut, I don't know how I can thank >you. I
> hope we meet one day so that I can invite you to a coffee or >whatever you
> wish
>
> you're welcome. yes you have to install R packages as administrator to be
> available system wide.
>
> feel free donate to the GRASS GIS project
> (https://grass.osgeo.org/contribute/donations/)
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-13 Thread Helmut Kudrnovsky
>Ok got it, I just had to run R as administrator and download it then. >I
think everything works now. Helmut, I don't know how I can thank >you. I
hope we meet one day so that I can invite you to a coffee or >whatever you
wish

you're welcome. yes you have to install R packages as administrator to be
available system wide. 

feel free donate to the GRASS GIS project
(https://grass.osgeo.org/contribute/donations/)



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-13 Thread Tom Hackbarth
Ok got it, I just had to run R as administrator and download it then. I
think everything works now. Helmut, I don't know how I can thank you. I
hope we meet one day so that I can invite you to a coffee or whatever you
wish.

Thank you so much, have a nice Sunday and stay healthy!

Best regards

Tom

Am So., 13. Dez. 2020 um 12:28 Uhr schrieb Tom Hackbarth <
txhackba...@gmail.com>:

> I reinstalled it and whenever I want to install packages it says:
>
> > install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
> Warnung in install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
>   'lib = "C:/Program Files/R/R-4.0.3/library" ist nicht schreibbar
> Would you like to use a personal library instead? (yes/No/cancel)
>
> If I say yes and type in library("MuMIn") afterwards nothing happens.
>
> I can only choose a OneDrive folder to download the packages into. Maybe I
> just try it manually?
>
> Am So., 13. Dez. 2020 um 12:23 Uhr schrieb Helmut Kudrnovsky <
> hel...@web.de>:
>
>> It's an R issue, not a GRASS issue.
>>
>> Open R in a normal way.
>>
>> library("MuMIn")
>>
>> What does it report?
>>
>> >The packages can also be found in the directory
>>
>> That's only the temporary download folder, not the R package folder
>>
>>
>>
>> -
>> best regards
>> Helmut
>> --
>> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
>> ___
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-13 Thread Tom Hackbarth
I reinstalled it and whenever I want to install packages it says:

> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
Warnung in install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
  'lib = "C:/Program Files/R/R-4.0.3/library" ist nicht schreibbar
Would you like to use a personal library instead? (yes/No/cancel)

If I say yes and type in library("MuMIn") afterwards nothing happens.

I can only choose a OneDrive folder to download the packages into. Maybe I
just try it manually?

Am So., 13. Dez. 2020 um 12:23 Uhr schrieb Helmut Kudrnovsky :

> It's an R issue, not a GRASS issue.
>
> Open R in a normal way.
>
> library("MuMIn")
>
> What does it report?
>
> >The packages can also be found in the directory
>
> That's only the temporary download folder, not the R package folder
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-13 Thread Helmut Kudrnovsky
It's an R issue, not a GRASS issue. 

Open R in a normal way. 

library("MuMIn")

What does it report?

>The packages can also be found in the directory

That's only the temporary download folder, not the R package folder



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-13 Thread Tom Hackbarth
It seems like it, but it is already installed (see below).

The packages can also be found in the directory :
[image: image.png]


Still the error message says it's not installed.





R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden
können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
Installiere Pakete nach
'C:/Users/txhac/OneDrive/Dokumente/R/win-library/4.0'
(da 'lib' nicht spezifiziert)
--- Bitte einen CRAN Spiegel für diese Sitzung auswählen ---
versuche URL '
https://ftp.fau.de/cran/bin/windows/contrib/4.0/MuMIn_1.43.17.zip'
Content type 'application/zip' length 845021 bytes (825 KB)
downloaded 825 KB

versuche URL '
https://ftp.fau.de/cran/bin/windows/contrib/4.0/lme4_1.1-26.zip'
Content type 'application/zip' length 5333841 bytes (5.1 MB)
downloaded 5.1 MB

versuche URL '
https://ftp.fau.de/cran/bin/windows/contrib/4.0/optparse_1.6.6.zip'
Content type 'application/zip' length 73232 bytes (71 KB)
downloaded 71 KB

versuche URL '
https://ftp.fau.de/cran/bin/windows/contrib/4.0/rgrass7_0.2-3.zip'
Content type 'application/zip' length 177592 bytes (173 KB)
downloaded 173 KB

Paket 'MuMIn' erfolgreich ausgepackt und MD5 Summen abgeglichen
Paket 'lme4' erfolgreich ausgepackt und MD5 Summen abgeglichen
Paket 'optparse' erfolgreich ausgepackt und MD5 Summen abgeglichen
Paket 'rgrass7' erfolgreich ausgepackt und MD5 Summen abgeglichen

Die heruntergeladenen Binärpakete sind in
C:\Users\txhac\AppData\Local\Temp\RtmpET7mgc\downloaded_packages

Am Sa., 12. Dez. 2020 um 19:49 Uhr schrieb Helmut Kudrnovsky :

> Looks good so far!  R/RScript is found and work
>
> >Package MuMIn  not found
>
> What I have asked already in a previous mail. A needed R package isn't
> installed.
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
Looks good so far!  R/RScript is found and work

>Package MuMIn  not found

What I have asked already in a previous mail. A needed R package isn't
installed. 



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
Okay it is on C:/ now and I have run the module and at least the error
message changed! Thank you already for all your help!! But, now it says:

r.futures.potential input=sampling output=potential.csv
columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
developed_column=urban_change_clip subregions_column=counties --o
Computing model...
WARNING: Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_DE.cp1252 failed
2: Setting LC_COLLATE=de_DE.cp1252 failed
3: Setting LC_TIME=de_DE.cp1252 failed
4: Setting LC_MONETARY=de_DE.cp1252 failed
Fehler: Package MuMIn  not found
Ausführung angehalten
WARNING: Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_DE.cp1252 failed
2: Setting LC_COLLATE=de_DE.cp1252 failed
3: Setting LC_TIME=de_DE.cp1252 failed
4: Setting LC_MONETARY=de_DE.cp1252 failed
Fehler: Package MuMIn  not found
Ausführung angehalten
ERROR: Running R script failed, check messages above

Any idea how to fix that?

Am Sa., 12. Dez. 2020 um 18:33 Uhr schrieb Helmut Kudrnovsky :

> >the R path is: D:\Programme\R-4.0.3
>
> Is it really D:\ and not C:\ ?
>
> The winGRASS-R-bridge looks for R in C:\.
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
>the R path is: D:\Programme\R-4.0.3

Is it really D:\ and not C:\ ?

The winGRASS-R-bridge looks for R in C:\.



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
The content of C:\OSGeo4W64\etc\ini is:

- gdal
-libgeotiff
-libjpeg
-liblas
-msvcrt
-proj
-python-core
-rbatchfiles

The content of C:\OSGeo4W64\apps\rbatchfiles is

-#Rscript2
-ANNOUNCE
-batchfiles.md
-batchfiles.tex
-clip2r
-copydir
-COPYING
-el
LICENSE
-make-batchfiles.pdf
-movedir
-NEWS
-R
-README
-README
-Rsources
-Rpathset
-THANKS

The R path is: D:\Programme\R-4.0.3

Am Sa., 12. Dez. 2020 um 17:56 Uhr schrieb Helmut Kudrnovsky :

> What is the content of C:\OSGeo4W64\etc\ini and C:\OSGeo4W64\Apps?
>
> What is the path to your R installation?
>
> Not sure what's going on as tested here on several win 10 boxes, and it
> works on all of them.
>
>
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
What is the content of C:\OSGeo4W64\etc\ini and C:\OSGeo4W64\Apps?

What is the path to your R installation?

Not sure what's going on as tested here on several win 10 boxes, and it
works on all of them. 





-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
Hi Helmut,

I deleted everything and downloaded it again just as you said, with the
different batchfile. I still get the same error message (only with a
different path in the error message/see below) and there is still nothing
happening if I try to run R or Rscript in the Shell (no matter if Grass is
running or not).



Computing model...
Traceback (most recent call last):
  File "C:\Users\txhac\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py", line 221, in 
sys.exit(main())
  File "C:\Users\txhac\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py", line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
  File "C:\OSGEO4~1\apps\Python37\lib\subprocess.py", line
756, in __init__
restore_signals, start_new_session)
  File "C:\OSGEO4~1\apps\Python37\lib\subprocess.py", line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Das System kann die
angegebene Datei nicht finden



Am Sa., 12. Dez. 2020 um 15:15 Uhr schrieb Helmut Kudrnovsky :

> [a hint to save message size:
>
> - just open a windows command console,
> - change to the relevant folder: e.g.
>
> C:\Users\your user>cd C:\OSGeo4W64\etc\ini
> C:\OSGeo4W64\etc\ini>
>
> - do dir /b
>
> C:\OSGeo4W64\etc\ini>dir /b
> gdal.bat
> libgeotiff.bat
> libjpeg.bat
> liblas.bat
> msvcrt.bat
> msys.bat
> proj.bat
> python-core.bat
> qt4.bat
> rbatchfiles.bat
>
> - mark the console output with mouse
> - copy the text into the mail]
>
> ok, at your computer, there seems to be some incomplete OSGeo4W
> installation
> leftovers here and there. not sure why.
>
> it's recommended to install OSGeo4W 64 bit into C:\OSGeo4W64, not into
> c:\Programme
>
> >Does it make sense to transfer this data into the OSGeo64W Folder?
>
> as we don't know, how (in)complete the OSGeo4W installation(s) are, I
> suggest to delete both of them and try to re-install a new attempt in
> C:\OSGeo4W64.
>
> then try my procedures mentioned before in previous mails.
>
> the content of C:\OSGeo4W64\etc\ini should be something like:
>
> gdal.bat
> libgeotiff.bat
> libjpeg.bat
> liblas.bat
> msvcrt.bat
> msys.bat
> proj.bat
> python-core.bat
> qt4.bat
> rbatchfiles.bat <=
>
> especially rbatchfiles.bat
>
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
[a hint to save message size:

- just open a windows command console, 
- change to the relevant folder: e.g.

C:\Users\your user>cd C:\OSGeo4W64\etc\ini
C:\OSGeo4W64\etc\ini>

- do dir /b

C:\OSGeo4W64\etc\ini>dir /b
gdal.bat
libgeotiff.bat
libjpeg.bat
liblas.bat
msvcrt.bat
msys.bat
proj.bat
python-core.bat
qt4.bat
rbatchfiles.bat

- mark the console output with mouse
- copy the text into the mail]

ok, at your computer, there seems to be some incomplete OSGeo4W installation
leftovers here and there. not sure why.

it's recommended to install OSGeo4W 64 bit into C:\OSGeo4W64, not into
c:\Programme

>Does it make sense to transfer this data into the OSGeo64W Folder?

as we don't know, how (in)complete the OSGeo4W installation(s) are, I
suggest to delete both of them and try to re-install a new attempt in
C:\OSGeo4W64.

then try my procedures mentioned before in previous mails.

the content of C:\OSGeo4W64\etc\ini should be something like:

gdal.bat
libgeotiff.bat
libjpeg.bat
liblas.bat
msvcrt.bat
msys.bat
proj.bat
python-core.bat
qt4.bat
rbatchfiles.bat <=

especially rbatchfiles.bat




-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
There is one more OSGeo folder on my Disc (I do not know why) which is
similarly empty:

[image: image.png]

Am Sa., 12. Dez. 2020 um 14:35 Uhr schrieb Tom Hackbarth <
txhackba...@gmail.com>:

> Hi Helmut,
>
> I have found the folder with the 18 files, but not the first one. The etc
> folder is almost empty in my case (see picture below).
>
>
> [image: image.png]
>
>
>
>
> Am Sa., 12. Dez. 2020 um 13:48 Uhr schrieb Helmut Kudrnovsky <
> hel...@web.de>:
>
>> >for a workaround:
>>
>> we're working to bring the R-winGRASS-bridge back to OSGeo4W
>>
>>
>>
>> -
>> best regards
>> Helmut
>> --
>> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
>> ___
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
Hi Helmut,

I have found the folder with the 18 files, but not the first one. The etc
folder is almost empty in my case (see picture below).


[image: image.png]




Am Sa., 12. Dez. 2020 um 13:48 Uhr schrieb Helmut Kudrnovsky :

> >for a workaround:
>
> we're working to bring the R-winGRASS-bridge back to OSGeo4W
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
>for a workaround: 

we're working to bring the R-winGRASS-bridge back to OSGeo4W



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
>run o-help for a list of available commands
>C:\>R
>Der Befehl "R" ist entweder falsch geschrieben oder
>konnte nicht gefunden werden.
>
>C:\>Rscript
>Der Befehl "Rscript" ist entweder falsch geschrieben oder
>konnte nicht gefunden werden.
>
>(that means it's been typed wrong or couldn't be found).

no, the GRASS-R-bridge isn't installed.

be aware that if you install the previous rbatch version and then in a next
run of OSGeo4W install of e.g. winGRASS 7.9.daily., then the not working
rbatch version is installed again. it's a drawback of the minimalistic
OSGeo4W package system.

install the previous working rbatch version, then check:

in

- C:\OSGeo4W64\etc\ini\rbatchfiles.bat

and 

- C:\OSGeo4W64\apps\rbatchfiles with 18 files inside are there.

the important file is rbatchfiles.bat in the ini-subfolder.

if it's there, then it should work like here within and outside a winGRASS
session in the OSGeo4W shell.

here:

---

OSGeo4W shell outside a GRASS session:

run o-help for a list of available commands
C:\>R

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' für Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' für mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden
können.

Tippen Sie 'demo()' für einige Demos, 'help()' für on-line Hilfe, oder
'help.start()' für eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

>

and

C:\>RScript
Usage: /path/to/Rscript [--options] [-e expr [-e expr2 ...] | file] [args]

--options accepted are
  --help  Print usage and exit
  --version   Print version and exit
  --verbose   Print information on progress
  --default-packages=list
  Where 'list' is a comma-separated set
of package names, or 'NULL'
or options to R, in addition to --no-echo --no-restore, such as
  --save  Do save workspace at the end of the session
  --no-environDon't read the site and user environment files
  --no-site-file  Don't read the site-wide Rprofile
  --no-init-file  Don't read the user R profile
  --restore   Do restore previously saved objects at startup
  --vanilla   Combine --no-save, --no-restore, --no-site-file
--no-init-file and --no-environ

'file' may contain spaces but not shell metacharacters
Expressions (one or more '-e ') may be used *instead* of 'file'
See also  ?Rscript  from within R

---
and within a winGRASS session:

Starting GRASS GIS...
WARNUNG: Sperren gleichzeitiger Zugriffe auf ein Mapset ist unter Windows
 nicht möglich.
Cleaning up temporary files...

  __  ___   _____
 / / __ \/   | / ___/ ___/   / /  _/ ___/
/ / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \
   / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ /
   \/_/ |_/_/  |_///   \/___///

Welcome to GRASS GIS 7.8.4
GRASS GIS homepage:  https://grass.osgeo.org
This version running through:Command Prompt
(C:\WINDOWS\system32\cmd.exe)
Help is available with the command:  g.manual -i
See the licence terms with:  g.version -c
See citation options with:   g.version -x
If required, restart the GUI with:   g.gui wxpython
When ready to quit enter:exit

Launching  GUI in the background, please wait...
Microsoft Windows [Version 10.0.19042.685]
(c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.

C:\>R

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R ist freie Software und kommt OHNE JEGLICHE GARANTIE.
Sie sind eingeladen, es unter bestimmten Bedingungen weiter zu verbreiten.
Tippen Sie 'license()' or 'licence()' f├╝r Details dazu.

R ist ein Gemeinschaftsprojekt mit vielen Beitragenden.
Tippen Sie 'contributors()' f├╝r mehr Information und 'citation()',
um zu erfahren, wie R oder R packages in Publikationen zitiert werden
k├Ânnen.

Tippen Sie 'demo()' f├╝r einige Demos, 'help()' f├╝r on-line Hilfe, oder
'help.start()' f├╝r eine HTML Browserschnittstelle zur Hilfe.
Tippen Sie 'q()', um R zu verlassen.

Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_AT.cp1252 failed
2: Setting LC_COLLATE=de_AT.cp1252 failed
3: Setting LC_TIME=de_AT.cp1252 failed
4: Setting LC_MONETARY=de_AT.cp1252 failed
> q()
Workspace sichern? [y/n/c]: n


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
I have downloaded, installed and deleted the program now for so many times,
that there might be some residual data from before somewhere on my
computer. Could this be the problem?

Is there a way to properly uninstall all the programme data? I haven't been
able to find such a way as OSGeo4W or Grass won't show up in my programme
list.


Am Sa., 12. Dez. 2020 um 12:53 Uhr schrieb Helmut Kudrnovsky :

> >It is still not working and the error message is still the same.
>
> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7")) done?
>
> I got a similar error message when MuMIn wasn't installed.
>
> have you tried in OSGeo4W to switch to an earier rbatch version. then R
> should be added automatically to %PATH% and r.future.develop works as
> expected, see my earlier mail.
>
> if switched, type R and RScript into the OSGeo4W shell and report here.
>
>
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Tom Hackbarth
Hi Helmut,

I have switched to the earlier rbatch version. But I still get the same
error message running r.futures.

This is what happens when I type R or Rscript in the Shell:








*run o-help for a list of available commandsC:\>RDer Befehl "R" ist
entweder falsch geschrieben oderkonnte nicht gefunden werden.C:\>RscriptDer
Befehl "Rscript" ist entweder falsch geschrieben oderkonnte nicht gefunden
werden.*

(that means it's been typed wrong or couldn't be found).


In the Grass terminal running R or Rscript only works if I have set the
Path beforehand.


Best regards

Tom

Am Sa., 12. Dez. 2020 um 12:53 Uhr schrieb Helmut Kudrnovsky :

> >It is still not working and the error message is still the same.
>
> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7")) done?
>
> I got a similar error message when MuMIn wasn't installed.
>
> have you tried in OSGeo4W to switch to an earier rbatch version. then R
> should be added automatically to %PATH% and r.future.develop works as
> expected, see my earlier mail.
>
> if switched, type R and RScript into the OSGeo4W shell and report here.
>
>
>
>
>
> -
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-12 Thread Helmut Kudrnovsky
>It is still not working and the error message is still the same. 

install.packages(c("MuMIn", "lme4", "optparse", "rgrass7")) done?

I got a similar error message when MuMIn wasn't installed.

have you tried in OSGeo4W to switch to an earier rbatch version. then R
should be added automatically to %PATH% and r.future.develop works as
expected, see my earlier mail.

if switched, type R and RScript into the OSGeo4W shell and report here.





-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-11 Thread Helmut Kudrnovsky
>local R version: 4.03 

and tested in

System Info 
GRASS Version: 7.8.4
Code revision: d8fbd49af
Build date: 2020-10-05  
Build platform: x86_64-w64-mingw32  
GDAL: 3.0.4 
PROJ: 6.3.2 
GEOS: 3.8.1 
SQLite: 3.29.0  
Python: 3.7.0   
wxPython: 4.0.7 
Platform: Windows-10-10.0.19041-SP0 (OSGeo4W)   



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-11 Thread Helmut Kudrnovsky
>regarding OSGeo4W-winGRASS, unfortunately there was a change in the rbatch
package recently which >breaks adding R to %PATH%
>
>*start OSGeo4W in advanced mode, type rbatch in the search window on the
top left
>* open the tree of "Command_Utilities" and "Libs" and choose version 149-4
instead of 149-5
>* finish installation
>* open OSGeo4W shell and type R
>* then R should start in OSGeo4W shell 

switched back to rbatch 149-4 here in my OSGeo4W environment.

installed all needed R packages mentioned in the workshop [1]

**R (≥ 3.5.0) - needed for r.futures.potential with packages:
**
**   MuMIn, lme4, optparse, rgrass7

local R version: 4.03

trying the workshop example with r.futures.potential (where R is needed):

r.futures.potential -d input=sampling@user1
output=D:\wd\rfutures\futures_Asheville_files\potential.csv
columns=devpressure_0_5_92,slope,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km,dist_interchanges_km,travel_time
developed_column=urban_change_clip subregions_column=counties
min_variables=4

Running automatic model selection ... <=

addon invoked RScript for model selection correctly; waiting for calculation
be finished:

WARNING: Beim Start - Warnmeldungen:
1: Setting LC_CTYPE=de_AT.cp1252 failed
2: Setting LC_COLLATE=de_AT.cp1252 failed
3: Setting LC_TIME=de_AT.cp1252 failed
4: Setting LC_MONETARY=de_AT.cp1252 failed
Fixed term is "(Intercept)"
Warnmeldung:
In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
Model failed to converge with max|grad| = 0.00403567 (tol = 0.002, component
1)
Best model summary:
-
Generalized linear mixed model fit by maximum likelihood (Laplace
Approximation) [glmerMod]
Family: binomial  ( logit )
Formula: urban_change_clip ~ devpressure_0_5_92 + dist_interchanges_km +
dist_to_protected_km + dist_to_water_km + forest_1992_smooth_perc +
road_dens_perc + slope + travel_time + (1 | counties)
Data: input_data

AIC  BIC   logLik deviance df.resid
2641.7   2708.6  -1310.8   2621.7 5916

Scaled residuals:
Min  1Q  Median  3Q Max
-5.5600 -0.2166 -0.0876 -0.0466 21.1719

Random effects:
Groups   NameVariance Std.Dev.
counties (Intercept) 0.04751  0.218
Number of obs: 5926, groups:  counties, 5

Fixed effects:
Estimate Std. Error z value Pr(>|z|)
(Intercept)  0.952166   0.283639   3.357 0.000788 ***
devpressure_0_5_92   0.030397   0.004947   6.144 8.05e-10 ***
dist_interchanges_km-0.054705   0.013647  -4.009 6.11e-05 ***
dist_to_protected_km-0.205176   0.044363  -4.625 3.75e-06 ***
dist_to_water_km-0.157337   0.025512  -6.167 6.95e-10 ***
forest_1992_smooth_perc -0.044996   0.002423 -18.572  < 2e-16 ***
road_dens_perc   0.080876   0.007976  10.140  < 2e-16 ***
slope0.024958   0.009225   2.705 0.006822 **
travel_time -4.057411   0.439160  -9.239  < 2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation of Fixed Effects:
(Intr) d_0_5_ dst_n_ dst_t_p_ dst_t_w_ f_1992 rd_dn_ slope
dvpr_0_5_92 -0.259
dst_ntrchn_ -0.360  0.284
dst_t_prtc_ -0.303  0.099  0.156
dst_t_wtr_k -0.203  0.119 -0.101 -0.100
frst_1992__ -0.256  0.158 -0.077  0.0450.085
rod_dns_prc -0.378 -0.355 -0.008 -0.094   -0.0630.057
slope   -0.151  0.058  0.061 -0.006   -0.093   -0.520 -0.009
travel_time -0.558 -0.116  0.029  0.0360.0140.101  0.167 -0.013
(Fri Dec 11 23:14:30 2020) Befehl ausgeführt (9 Min 3 Sek)  

findings:

- there is some locale issue: Setting LC_CTYPE=de_AT.cp1252 failed - it's a
german windows 10 box here
- In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  : <=
not sure about this one here
- Model failed to converge with max|grad| = 0.00403567 (tol = 0.002,
component 1) <= maybe related to input data (not checked if these make
sense)
- Best model summary:
-
Generalized linear mixed model fit by maximum likelihood (Laplace
Approximation) [glmerMod]

though it seems a best model could be found

to sum up, r.futures.potential invoking some R scripts works here in OSGeo4W
using rbatch 149-4 

[1]
https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Workshop_data





-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-11 Thread Helmut Kudrnovsky
[keep always the mailing list in the loop that other community members are able 
to help too respectively benefit from the thread]

regarding OSGeo4W-winGRASS, unfortunately there was a change in the rbatch 
package recently which breaks adding R to %PATH%

*start OSGeo4W in advanced mode, type rbatch in the search window on the top 
left
* open the tree of "Command_Utilities" and "Libs" and choose version 149-4 
instead of 149-5
* finish installation
* open OSGeo4W shell and type R
* then R should start in OSGeo4W shell

regarding Mac, others have to answer, no Mac available here.

kind regards
Helmut 
 

Gesendet: Freitag, 11. Dezember 2020 um 10:19 Uhr
Von: "Tom Hackbarth" 
An: "Helmut Kudrnovsky" 
Betreff: Re: [GRASS-user] r.futures not working

Hi Helmut,
 
I tried it now on mac as well. I get to the same point. 
 


Computing model...
Traceback (most recent call last):
  File "/Users//Library/GRASS/7.8/Modules/scripts/r
.futures.potential", line 221, in 
    sys.exit(main())
  File "/Users//Library/GRASS/7.8/Modules/scripts/r
.futures.potential", line 192, in main
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
  File "/Applications/GRASS-7.8.app/Contents/Resources/lib/p
ython3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn,
close_fds,
  File "/Applications/GRASS-7.8.app/Contents/Resources/lib/p
ython3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg,
err_filename)
FileNotFoundError: [Errno 2] No such file or directory:
'Rscript'
 
___
 
I got the latest versions of R, python and Grass installed. I get the same 
error message on Windows, mac and Manjaro. 
 
 
Do you know where the problem is?
 
Best regards
 
Tom 

Am Fr., 11. Dez. 2020 um 09:36 Uhr schrieb Tom Hackbarth 
mailto:txhackba...@gmail.com]>:
Hi Helmut,
 
I've been using the OSGeo4W installer for everything, as it was suggested in 
the r.futures workshop.
 
I'm using Python 3.7, but I tried already different versions (2.7, 3.9) in the 
process of trying to fix the problem. 
I do not know whether it is bundled with grass though. How can I figure that 
out?
 
Thanks for your help!
 
Warm regards
 
Tom 

Am Do., 10. Dez. 2020 um 19:31 Uhr schrieb Helmut Kudrnovsky 
mailto:hel...@web.de]>:Tom Hackbarth wrote
> Dear grass users,
>
> I am trying to work my way through the r.futures workshop (
> https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel[https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel]),
> but as soon as I get to the point of using the first r.futures module -
> r.futures-potential I come to a dead end.
>
> This is the message I get:
>
> ___
>
> r.futures.potential input=sampling@practice1 output=potential.csv
> columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
> developed_column=urban_change_clip subregions_column=counties
> Computing model...
> Traceback (most recent call last):
>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py[http://r.futures.potential.py];, line 221, in
> 
>     sys.exit(main())
>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py[http://r.futures.potential.py];, line 192, in main
>     p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
> 756, in __init__
>     restore_signals, start_new_session)
>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
> 1155, in _execute_child
>     startupinfo)
> FileNotFoundError: [WinError 2] The system cannot find the file specified)
>
>
> _
>
> There seems to be a problem with the Python code. I also tried to work it
> out on linux manjaro, but I get more or less the same error message in the
> End.
>
> Is there anyone who can help me on this? I came not even close to
> repairing the error, so I am happy about any advice one can give me.
>
> Thank you in advance.
>
> Best regards
>
> Tom
>
> ___
> grass-user mailing list

> grass-user@.osgeo

> https://lists.osgeo.org/mailman/listinfo/grass-user[https://lists.osgeo.org/mailman/listinfo/grass-user]


which winGRASS version are you using? standalone winGRASS? OSGeo4W winGRASS?
QGIS bundled winGRASS?

>D:\Programme\apps\Python37\

which python are you using? is it the phyton bundled with winGRASS?



-
best regards
Helmut
--
Sent from: 
http://osgeo-org.1560.x6.nabble.com

Re: [GRASS-user] r.futures not working

2020-12-10 Thread Helmut Kudrnovsky
Tom Hackbarth wrote
> Dear grass users,
> 
> I am trying to work my way through the r.futures workshop (
> https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel),
> but as soon as I get to the point of using the first r.futures module -
> r.futures-potential I come to a dead end.
> 
> This is the message I get:
> 
> ___
> 
> r.futures.potential input=sampling@practice1 output=potential.csv
> columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
> developed_column=urban_change_clip subregions_column=counties
> Computing model...
> Traceback (most recent call last):
>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py", line 221, in 
> 
> sys.exit(main())
>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py", line 192, in main
> p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
> 756, in __init__
> restore_signals, start_new_session)
>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
> 1155, in _execute_child
> startupinfo)
> FileNotFoundError: [WinError 2] The system cannot find the file specified)
> 
> 
> _
> 
> There seems to be a problem with the Python code. I also tried to work it
> out on linux manjaro, but I get more or less the same error message in the
> End.
> 
> Is there anyone who can help me on this? I came not even close to
> repairing the error, so I am happy about any advice one can give me.
> 
> Thank you in advance.
> 
> Best regards
> 
> Tom
> 
> ___
> grass-user mailing list

> grass-user@.osgeo

> https://lists.osgeo.org/mailman/listinfo/grass-user


which winGRASS version are you using? standalone winGRASS? OSGeo4W winGRASS?
QGIS bundled winGRASS?

>D:\Programme\apps\Python37\

which python are you using? is it the phyton bundled with winGRASS?



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-10 Thread Anna Petrášová
Hi Tom,

On Thu, Dec 10, 2020 at 4:24 AM Tom Hackbarth  wrote:

> Hi Anna,
>
> thanks for your answer.
>
> I reinstalled it already multiple times. I get the same error message
> every time though. I will try it on a mac tomorrow, but that is the last
> idea I have. Has there ever been a problem like this using r.futures? It's
> such a shame because I really want to use it for my Master's Thesis as it
> is capable of all the things that I need to do for it, but I cannot get
> it to work.
>

I am not sure why reinstalling doesn't work and I am myself on Linux
so can't test now. You can try to paste a line like this:

set PATH=%PATH%;C:\Program Files\R\R-3.5.0\bin

in the GRASS terminal (the black one), you need to change the path to R
based on your R installation. Then try to run Rscript in the terminal, just
to see if the binary can now be found. If yes, try to run
r.futures.potential. This temporarily changes the PATH variable so that
your system can find R, once you close GRASS, you need to repeat this next
you need to run it. Let us know if at least this works.

Anna


>
> Best regards
>
> Tom
>
> Am Mi., 9. Dez. 2020 um 15:01 Uhr schrieb Anna Petrášová <
> kratocha...@gmail.com>:
>
>>
>>
>> On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth 
>> wrote:
>>
>>> Dear grass users,
>>>
>>> I am trying to work my way through the r.futures workshop (
>>> https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel),
>>> but as soon as I get to the point of using the first r.futures module -
>>> r.futures-potential I come to a dead end.
>>>
>>> This is the message I get:
>>>
>>> ___
>>>
>>> r.futures.potential input=sampling@practice1 output=potential.csv
>>> columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
>>> developed_column=urban_change_clip subregions_column=counties
>>> Computing model...
>>> Traceback (most recent call last):
>>>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
>>> /r.futures.potential.py", line 221, in 
>>> sys.exit(main())
>>>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
>>> /r.futures.potential.py", line 192, in main
>>> p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
>>> stderr=subprocess.PIPE)
>>>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
>>> 756, in __init__
>>> restore_signals, start_new_session)
>>>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
>>> 1155, in _execute_child
>>> startupinfo)
>>> FileNotFoundError: [WinError 2] The system cannot find the file
>>> specified)
>>>
>>> _
>>>
>>> There seems to be a problem with the Python code. I also tried to work
>>> it out on linux manjaro, but I get more or less the same error message in
>>> the End.
>>>
>>> Is there anyone who can help me on this? I came not even close to
>>> repairing the error, so I am happy about any advice one can give me.
>>>
>>> Thank you in advance.
>>>
>>> Copying response from grass-web:
>>
>> r.futures.potential calls Rscript, so the error means it can't find the
>> Rscript binary. If R is installed, I would recommend reinstalling GRASS,
>> during installation it tries to automatically look for it, so there is a
>> chance it will work then. I would recommend subscribing to grass-user
>> mailing list and ask more questions there.
>>
>> Anna
>>
>>
>>> Best regards
>>>
>>> Tom
>>> ___
>>> grass-user mailing list
>>> grass-user@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>>
>>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.futures not working

2020-12-09 Thread Anna Petrášová
On Wed, Dec 9, 2020 at 8:37 AM Tom Hackbarth  wrote:

> Dear grass users,
>
> I am trying to work my way through the r.futures workshop (
> https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel),
> but as soon as I get to the point of using the first r.futures module -
> r.futures-potential I come to a dead end.
>
> This is the message I get:
>
> ___
>
> r.futures.potential input=sampling@practice1 output=potential.csv
> columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
> developed_column=urban_change_clip subregions_column=counties
> Computing model...
> Traceback (most recent call last):
>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py", line 221, in 
> sys.exit(main())
>   File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py", line 192, in main
> p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
> stderr=subprocess.PIPE)
>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
> 756, in __init__
> restore_signals, start_new_session)
>   File "D:\Programme\apps\Python37\lib\subprocess.py", line
> 1155, in _execute_child
> startupinfo)
> FileNotFoundError: [WinError 2] The system cannot find the file
> specified)
>
> _
>
> There seems to be a problem with the Python code. I also tried to work it
> out on linux manjaro, but I get more or less the same error message in the
> End.
>
> Is there anyone who can help me on this? I came not even close to
> repairing the error, so I am happy about any advice one can give me.
>
> Thank you in advance.
>
> Copying response from grass-web:

r.futures.potential calls Rscript, so the error means it can't find the
Rscript binary. If R is installed, I would recommend reinstalling GRASS,
during installation it tries to automatically look for it, so there is a
chance it will work then. I would recommend subscribing to grass-user
mailing list and ask more questions there.

Anna


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


[GRASS-user] r.futures not working

2020-12-09 Thread Tom Hackbarth
Dear grass users,

I am trying to work my way through the r.futures workshop (
https://grasswiki.osgeo.org/wiki/Workshop_on_urban_growth_modeling_with_FUTURES#Potential_submodel),
but as soon as I get to the point of using the first r.futures module -
r.futures-potential I come to a dead end.

This is the message I get:

___

r.futures.potential input=sampling@practice1 output=potential.csv
columns=devpressure_0_5_92,road_dens_perc,forest_1992_smooth_perc,dist_to_water_km,dist_to_protected_km
developed_column=urban_change_clip subregions_column=counties
Computing model...
Traceback (most recent call last):
  File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py", line 221, in 
sys.exit(main())
  File "C:\Users\\AppData\Roaming\GRASS7\addons/scripts
/r.futures.potential.py", line 192, in main
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
  File "D:\Programme\apps\Python37\lib\subprocess.py", line
756, in __init__
restore_signals, start_new_session)
  File "D:\Programme\apps\Python37\lib\subprocess.py", line
1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified)


_

There seems to be a problem with the Python code. I also tried to work it
out on linux manjaro, but I get more or less the same error message in the
End.

Is there anyone who can help me on this? I came not even close to
repairing the error, so I am happy about any advice one can give me.

Thank you in advance.

Best regards

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