-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: cannot load R library #120
Comments
What version of R have you installed? Could you report the output of |
Can confirm this is an issue with a fresh VM install of Windows 10, a fresh install of R 3.6.1, and Python 3.7.5 installed from the Microsoft Store:
I get the same error as the user above:
However, I decided to try uninstalling the Microsoft Store python and re-installing from Python.org, and sure enough |
I’ll take a look when I have a chance. |
I could reproduce the same error with Microsoft store python 3.7. (And I even couldn't
|
I finally figured out the reason why radian doesn't work with Microsoft Store python. It is because Microsoft Store apps are very conservative about DLLs searching path, i.e., it doesn't allow an app to search for DLLs outside of the system paths: https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#standard-search-order-for-windows-store-apps The bad news is, however, that there is virtually no fix because R relies on dynamic imports. |
Actually, it’s not the same error. In your case, radian even cannot locate the R shared library. I see that it is a 32bit python, do you also install a 32bit R? |
I came up with a workaround to support microsoft store python |
@randy3k Nice work. Will remove the Microsoft Store Python issue from https://github.com/Ikuyadeu/vscode-R/wiki/Installation:-Windows when it is released. |
v0.5.4 is out :) |
While running radian, something goes wrong.
Traceback (most recent call last):
File "c:\python\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\python\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Python\Scripts\radian.exe_main.py", line 9, in
File "c:\python\lib\site-packages\radian_init.py", line 76, in main
RadianApplication(r_home, ver=version).run(options)
File "c:\python\lib\site-packages\radian\radianapp.py", line 83, in run
rchitect.init(args=args)
File "c:\python\lib\site-packages\rchitect\setup.py", line 27, in init
raise Exception("cannot load R library")
Exception: cannot load R library
The text was updated successfully, but these errors were encountered: