Closed loikein closed 4 years ago
Sorry, I don't have the resources to debug conda issues, and I don't know anything about rpy2.
I think likely your issue is from those packages failing to find the R shared libraries on your library path, but you will have to open an issue in other venues if you cannot determine the remedy yourself.
Thank you so much for your attention. Sorry for my unfamilarity with GitHub actions. Would you be able to tell me the path of R installations that this action is using, or how to find out that?
Maybe you can look at the workflows in the rpy2 repo (https://github.com/rpy2/rpy2/blob/07f5fbeb117588b82c0bb83c1cc0c5411d311e93/.github/workflows/pythonpackage.yml#L47), they seem to be using the setup-r action from here there on Windows, macOS and ubuntu.
I see… I will take a look at their workflow. Thank you again!
Hi, I tried rpy2's code of LD_LIBRARY_PATH
on Ubuntu, and it worked.
But on Windows, when I run python -m rpy2.situation
, it appears that R is not added to PATH
. Would you like to take a look at the action again?
rpy2 version:
3.3.4
Python version:
3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)]
Looking for R's HOME:
Environment variable R_HOME: None
InstallPath in the registry: C:\R
Environment variable R_USER: None
Environment variable R_LIBS_USER: d:\a\_temp\Library
R version:
In the PATH: None
Loading R library from rpy2: cannot load library 'C:\R\bin\x64\R.dll': error 0x7e
Additional directories to load R packages from:
None
C extension compilation:
include:
['C:/R/include', 'C:/R/include/x64']
libraries:
['R', 'm']
library_dirs:
['C:/R/bin/x64']
extra_compile_args:
[]
extra_link_args:
[]
I think it's a problem with rpy2
implementation on Windows, and I will make an issue there. Thank you for your patience.
having same issue.
me too, and I cannot find the solution.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue
Describe the bug
Using
R
withrpy2
, these are my action suite: (I found theLD_LIBRARY_PATH
from some online answer, which didn't work)rpy2
is installed withenvironment.yml
and pip, which succeeded.During
Run test suite
, error message under Windows:Error message under Ubuntu:
To Reproduce
Bug logging: https://github.com/OpenSourceEconomics/econsa/pull/33/checks?check_run_id=800600525 Code to test: https://github.com/OpenSourceEconomics/econsa/blob/conditional-sampler/econsa/tests/test_sampling.py CI scrirpt: https://github.com/OpenSourceEconomics/econsa/blob/conditional-sampler/.github/workflows/continuous-integration-workflow.yml
Expected behavior
Since this action did not specify OS, I expected it to work for all OS's.