[GRASS-user] v.class.mlR Error

Moritz Lennert mlennert at club.worldonline.be
Thu May 31 15:10:40 PDT 2018



Am 31. Mai 2018 22:43:58 MESZ schrieb Helmut Kudrnovsky <hellik at web.de>:
>>This said, if I understand the OP's message, the issue was in finding
>>Rscript in MS Windows.
>
>looking at the original report:
>
>-------------------
>[...]
>Running R now. Following output is R output.
>Traceback (most recent call last):
>  File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
>pts/v.class.mlR.py", line 633, in <module>
>    main()
>  File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
>pts/v.class.mlR.py", line 570, in main
>    subprocess.check_call(['Rscript', r_commands],
>stderr=subprocess.STDOUT, )
>  File "C:\Program Files\GRASS GIS
>7.4.0\Python27\lib\subprocess.py", line 537, in check_call
>    retcode = call(*popenargs, **kwargs)
>  File "C:\Program Files\GRASS GIS
>7.4.0\Python27\lib\subprocess.py", line 524, in call
>    return Popen(*popenargs, **kwargs).wait()
>  File "C:\Program Files\GRASS GIS
>7.4.0\Python27\lib\subprocess.py", line 711, in __init__
>    errread, errwrite)
>  File "C:\Program Files\GRASS GIS
>7.4.0\Python27\lib\subprocess.py", line 948, in
>_execute_child
>    startupinfo)
>WindowsError: [Error 2] The system cannot find the file
>specified
>-------------------
>
>yes, it seems it's the issue finding the Rscript.
>
>>Do you have any recommendation on this ? 
>
>the tempfile and the path to it has to be properly build,

But it's not about the tempfile, it's about calling Rscript and Windows not being able to find it, or ? Some paths to set correctly maybe ?


 Moritz


More information about the grass-user mailing list