<div dir="ltr">Hi everyone, <div><br></div><div>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"? </div><div><br></div><div>I have R running and have installed necessary packages. I'm running GRASS on MacOS Monterey.</div><div><br></div><div>Any help would be appreciated. </div><div>- Daniel</div><div>-----------------------------------------------------------------------------</div><div><b>[Message 1]</b></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Running R now. Following output is R output.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>File "/Users/dankozar/Library/GRASS/8.0/Addons/scripts/v.class.mlR", line 977, in <module></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>main()</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>File "/Users/dankozar/Library/GRASS/8.0/Addons/scripts/v.class.mlR", line 908, in main</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>subprocess.check_call(</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>File "/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py", line 368, in check_call</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>retcode = call(*popenargs, **kwargs)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>File "/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py", line 349, in call</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>with Popen(*popenargs, **kwargs) as p:</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>File "/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py", line 951, in __init__</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>self._execute_child(args, executable, preexec_fn, close_fds,</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">  </span>File "/Applications/GRASS-8.0.app/Contents/Resources/lib/python3.9/subprocess.py", line 1821, in _execute_child</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>raise child_exception_type(errno_num, err_msg, err_filename)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">FileNotFoundError: [Errno 2] No such file or directory: 'Rscript'</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><b>[Message 2]</b></p><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Details: <[Errno 1] Operation not permitted: 'v.class.mlR'></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">WARNING: Some addons failed when loading. Please consider to update your addons by running 'g.extension.all -f'.</span></p></div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thank you, <div><br><div>Daniel Kozar</div><div>PhD Candidate</div></div><div>UC Davis - Hydrologic Sciences</div><div><a href="mailto:djkozar@ucdavis.edu" target="_blank">djkozar@ucdavis.edu</a></div><div>(814) 380-6900</div></div></div></div></div></div>