Closed yepiserin closed 1 year ago
Can you clarify your python installation? Are you using conda or some other env manager?
In the other thread you showed pip show radian
output. Can you supplement that with the outputs of:
which python
which python3
which pip
which pip3
echo $PATH
ls /Library/Frameworks/Python.framework/Versions/3.10/bin/
ls /usr/local/bin
which python
is no result
which python3
is /usr/local/bin/python3
which pip
is no result
which pip3
is /usr/local/bin/pip3
echo $PATH
is /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
ls /Library/Frameworks/Python.framework/Versions/3.10/bin/
and
ls /usr/local/bin
is in screenshot:
Ok, can you try:
ln -s /Library/Frameworks/Python.framework/Versions/3.10/bin/radian /usr/local/bin/radian
Edit: in case it's not clear, this is all one line above.
Then try to launch radian using radian
Using the above, I got this response and still am not able to launch radian: "ln: /usr/local/bin/radian: Permission denied" Thoughts?
Are you an admin account on the computer?
Also, can you do:
ls -al /usr/local/bin
If you don't see something like:
lrwxr-xr-x 1 root wheel
for radian
with the key being r-x
, then you may need to try:
chmod 755 /usr/local/bin/radian
I do have the admin account and am logged in as admin.
Running ls -al /usr/local/bin
I get lots of results:
total 1664 drwxr-xr-x 31 root wheel 992 Oct 10 11:18 . drwxr-xr-x 8 root wheel 256 Oct 2 10:26 .. lrwxr-xr-x 1 root wheel 67 Oct 2 10:32 2to3 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/2to3 lrwxr-xr-x 1 root wheel 72 Oct 2 10:32 2to3-3.10 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/2to3-3.10 lrwxr-xr-x 1 root wheel 47 Oct 10 11:18 R -> /Library/Frameworks/R.framework/Resources/bin/R lrwxr-xr-x 1 root wheel 53 Oct 10 11:18 Rscript -> /Library/Frameworks/R.framework/Resources/bin/Rscript lrwxr-xr-x 1 root wheel 120 Sep 22 16:48 hubcli -> /Applications/Workspace ONE Intelligent Hub.app/Contents/Resources/IntelligentHubAgent.app/Contents/Resources/cli/hubcli lrwxr-xr-x 1 root wheel 68 Oct 2 10:32 idle3 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/idle3 lrwxr-xr-x 1 root wheel 71 Oct 2 10:32 idle3.10 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/idle3.10 -rwxr-xr-x 1 root wheel 422288 Mar 29 2020 info -rwxr-xr-x 1 root wheel 173744 Mar 29 2020 install-info lrwxr-xr-x 1 root wheel 8 Oct 2 10:26 makeinfo -> texi2any -rwxr-xr-x@ 1 root wheel 1246 Mar 27 2020 pdftexi2dvi lrwxrwxr-x 1 root admin 67 Oct 2 10:33 pip3 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/pip3 lrwxrwxr-x 1 root admin 70 Oct 2 10:33 pip3.10 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/pip3.10 -rwxr-xr-x@ 1 root wheel 19846 Mar 27 2020 pod2texi lrwxr-xr-x 1 root wheel 69 Oct 2 10:32 pydoc3 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/pydoc3 lrwxr-xr-x 1 root wheel 72 Oct 2 10:32 pydoc3.10 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/pydoc3.10 lrwxr-xr-x 1 root wheel 70 Oct 2 10:32 python3 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/python3 lrwxr-xr-x 1 root wheel 77 Oct 2 10:32 python3-config -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/python3-config lrwxr-xr-x 1 root wheel 78 Oct 2 10:32 python3-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/python3-intel64 lrwxr-xr-x 1 root wheel 73 Oct 2 10:32 python3.10 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 lrwxr-xr-x 1 root wheel 80 Oct 2 10:32 python3.10-config -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10-config lrwxr-xr-x 1 root wheel 81 Oct 2 10:32 python3.10-intel64 -> ../../../Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10-intel64 -rwxr-xr-x@ 1 root wheel 27786 Mar 22 2017 sqlite3_analyzer -rwxr-xr-x 1 root wheel 32160 Mar 29 2020 tclsh8.6 -rwxr-xr-x@ 1 root wheel 50192 Mar 27 2020 texi2any -rwxr-xr-x@ 1 root wheel 59828 Mar 27 2020 texi2dvi -rwxr-xr-x@ 1 root wheel 1246 Mar 27 2020 texi2pdf -rwxr-xr-x@ 1 root wheel 4002 Mar 27 2020 texindex -rwxr-xr-x 1 root wheel 40704 Mar 29 2020 wish8.6
Sorry I misread the error.
use sudo:
sudo ln -s /Library/Frameworks/Python.framework/Versions/3.10/bin/radian /usr/local/bin/radian
All one line.
This will ask for your password.
Then you can check it:
ls -al /usr/local/bin/radian
And if you see lrwxr-xr-x 1 root wheel
at the beginning then radian
should work from your command prompt to launch radian.
Then in VS Code you need to make sure:
{
"r.bracketedPaste": true,
"r.rterm.mac": "/usr/local/bin/radian"
}
as described here: https://github.com/REditorSupport/vscode-R/wiki/Installation:-macOS
Followed these steps, verified that results from terminal returned lrwxr-xr-x 1 root wheel
, updat4ed VSCode but am still getting the same error in trying to use radian, is there anything else you can see that is wrong?:
Is radian launching now for you from the terminal?
Because your screenshot still shows vanilla R and not radian, hence the error.
Edit: if just radian
doesn't work from the terminal, try entering:
/Library/Frameworks/Python.framework/Versions/3.10/bin/radian
The goal is to actually get radian running. You should see r$>
as the prompt.
Radian launched! So now I need to change rpath in vscode to the same radian path as rterm?
It's r.rterm.mac
that needs to point to radian
. This is what is launched in vscode.
And you need to ensure that you have the bracketedPaste.
r.rpath.mac
needs to point to your actual R
which also appears to be /usr/local/bin/R
Appears to be working now:
I went through the processes outlined here and here, I have a Mac M1 so I installed the arm version of R and did the homebrew process for installing python. I can't get radian to work in VSCode with R, when I finished the set up, all my calls would bring back "Error: Unexpected numeric constant ..." and brought that up in a separate thread here. Troubleshooting got me to the point that it was narrowed down to the radian install and not being able to get a response from terminal with command "radian".
Any tips or advice on how to correct my radian install issue?