[GRASS-user] Rscript error when using v.class.mlR
Daniel Kozar
djkozar at ucdavis.edu
Fri Feb 18 18:27:25 PST 2022
Hi everyone,
When using the extension "v.class.mlR" I get an error [Message 1] (see
below) that "Rscript" cannot be located. I traced this back to the script
for "v.class.mlR" and edited line 908 to read the direct path to Rscript -
'/usr/local/bin/Rscript' rather than 'Rscript' alone. However, when I
re-open GRASS 8.0 I get an error [Message 2] that the extension failed when
loading and that the operation isn't permitted. I allowed for the
application to have administrative rights but it still doesn't work. Does
anyone know how to work around this or solve the issue finding "Rscript"?
I have R running and have installed necessary packages. I'm running GRASS
on MacOS Monterey.
Any help would be appreciated.
- Daniel
-----------------------------------------------------------------------------
*[Message 1]*
Running R now. Following output is R output.
Traceback (most recent call last):
File "/Users/dankozar/Library/GRASS/8.0/Addons/scripts/v.class.mlR", line
977, in <module>
main()
File "/Users/dankozar/Library/GRASS/8.0/Addons/scripts/v.class.mlR", line
908, in main
subprocess.check_call(
File
"/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py",
line 368, in check_call
retcode = call(*popenargs, **kwargs)
File
"/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py",
line 349, in call
with Popen(*popenargs, **kwargs) as p:
File
"/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py",
line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File
"/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py",
line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'Rscript'
*[Message 2]*
Details: <[Errno 1] Operation not permitted: 'v.class.mlR'>
WARNING: Some addons failed when loading. Please consider to update your
addons by running 'g.extension.all -f'.
--
Thank you,
Daniel Kozar
PhD Candidate
UC Davis - Hydrologic Sciences
djkozar at ucdavis.edu
(814) 380-6900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20220218/ab5d1147/attachment.html>
More information about the grass-user
mailing list