[GRASS-user] r.futures.potential - unable to open select-cursor

Tom Hackbarth txhackbarth at gmail.com
Wed Feb 10 03:19:05 PST 2021


Dear Helmut,

thanks for jumping in again!

*- C:\>ECHO %PATH% gives similar results:*
D:\Programme\apps\grass\grass78\lib;D:\Programme\apps\grass\grass78\bin
;C:\Users\txhac\AppData\Roaming\GRASS7\addons\bin;D:\Programme\apps\Python37;
D:\Programme\apps\Python37\Scripts
;D:\Programme\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;D:\Programme\apps\Python37\lib\site-packages\pywin32_system32

It is weird though, as it references mostly data on the D:\ disc although I
saved all the installation data on C:\OSGeo4W64 (e.g.
C:\OSGeo4W64\apps\grass\grass78\bin exists on my C drive as well, also
C:\OSGeo4W64\apps\Python37\Scripts exists here). Grass seems to be still
connected to repositories from prior failed installations.

So this might already be the problem? Does it make sense to just delete all
the GRASS files on D:\ ?

*-R libraries:*

I use R only in administrator mode. When I download the packages in
administrator mode, and try to run library("MuMIn") right afterwards,
nothing happens:

> install.packages(c("MuMIn", "lme4", "optparse", "rgrass7"))
Warnung: Paket ‘MuMIn’ wird gerade benutzt und deshab nicht installiert
Installiere Pakete nach ‘C:/Users/txhac/Documents/R/win-library/4.0’
(da ‘lib’ nicht spezifiziert)
--- Bitte einen CRAN Spiegel für diese Sitzung auswählen ---
versuche URL '
https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/lme4_1.1-26.zip'
Content type 'application/zip' length 5334929 bytes (5.1 MB)
downloaded 5.1 MB

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

versuche URL '
https://ftp.gwdg.de/pub/misc/cran/bin/windows/contrib/4.0/rgrass7_0.2-5.zip'
Content type 'application/zip' length 184226 bytes (179 KB)
downloaded 179 KB

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\RtmpKeTsOQ\downloaded_packages
> library("MuMIn")
>

* - Running R in Grass Session*

Running Rscript after running R within a GRASS session works fine (see
below). Still, running library("MuMIn"), doesn't show any results.
Strangely, I cannot run Rscript after running R within the Grass terminal,
only the other way round. (when running Rscript after R, the following
results show up:
>Rscript
Fehler: Objekt 'Rscript' nicht gefunden (meaning: Object 'Rscript' was not
found))

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.5
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 <wxpython> GUI in the background, please wait...
Microsoft Windows [Version 10.0.18363.1316]
(c) 2019 Microsoft Corporation. Alle Rechte vorbehalten.

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

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-environ        Don'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 <expr>') may be used *instead* of 'file'
See also  ?Rscript  from within R

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_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
> library("MuMIn")
>

So neither in R nor in Grass anything happens trying to run
library("MuMIn"). Any idea what the problem might be? I also uninstalled
and reinstalled R now and nothing has changed.

Thanks in advance!

Best regards

Tom

Am Di., 9. Feb. 2021 um 21:33 Uhr schrieb Helmut Kudrnovsky <hellik at web.de>:

> >- set PATH=%PATH%;C:\Program Files\R\R-4.0.3\bin has been included
>
> start winGRASS and type into the console:
>
> C:\>ECHO %PATH%
>
> here in OSGeo4W-winGRASS, it's something like:
>
>
> C:\OSGEO4~1\apps\grass\grass78\lib;C:\OSGEO4~1\apps\grass\grass78\bin;C:\Users\hkmyr\AppData\Roaming\GRASS7\addons\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;{app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program
>
> Files\R\R-4.0.3\bin\x64;C:\OSGEO4~1\apps\Python37\lib\site-packages\pywin32_system32
>
> post your result here.
>
>
> >- R libraries have been installed, but when I type in library("MuMIn") in
> the terminal, nothing happens
>
> are you're sure you have installed the library systemwide via R in
> administrator mode?
>
> just open R (outside any GRASS session) and try to load the library.
>
> what is the result?
>
> here:
>
> > library("MuMIn")
> >
>
> library loaded
>
> then start R within a GRASS session in the console and load the library.
>
> here:
>
> Welcome to GRASS GIS 7.8.5
> 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 <wxpython> GUI in the background, please wait...
> Microsoft Windows [Version 10.0.19042.746]
> (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
> > library("MuMIn")
>
> library loaded here also
>
> >- when I run R or Rscript in the terminal the right response is shown, but
> only if I run them separately. >If i try to run Rscript after running R in
> the terminal, Rscript will not be found. Maybe this is the problem?
>
> tested here:
>
> Welcome to GRASS GIS 7.8.5
> 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 <wxpython> GUI in the background, please wait...
> Microsoft Windows [Version 10.0.19042.746]
> (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
>
> 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-environ        Don'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 <expr>') may be used *instead* of 'file'
> See also  ?Rscript  from within R
>
> within a GRASS session: RScript runs fine after a R session
>
>
>
>
>
>
>
>
>
>
> -----
> best regards
> Helmut
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20210210/f9e0d75a/attachment-0001.html>


More information about the grass-user mailing list