[GRASS-user] r.futures not working

Helmut Kudrnovsky hellik at web.de
Fri Dec 11 11:54:39 PST 2020


[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" <txhackbarth at gmail.com>
An: "Helmut Kudrnovsky" <hellik at web.de>
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/XXXX/Library/GRASS/7.8/Modules/scripts/r
.futures.potential", line 221, in <module>
    sys.exit(main())
  File "/Users/XXXX/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 <txhackbarth at gmail.com[mailto:txhackbarth at 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 <hellik at web.de[mailto:hellik at 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 at 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\XXXX\AppData\Roaming\GRASS7\addons/scripts
> /r.futures.potential.py[http://r.futures.potential.py]", line 221, in
> <module>
>     sys.exit(main())
>   File "C:\Users\XXXX\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 at .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/Grass-Users-f3884509.html[http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html]
_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org[mailto:grass-user at lists.osgeo.org]
https://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list