-
Notifications
You must be signed in to change notification settings - Fork 68
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
rpy2 3.5.7 ignores R_HOME for some reason (and prints warning), when rpy2 3.5.6 just works #982
Comments
When using rpy2=3.5.6, the libR.so is being searched in: When using rpy2=3.5.7, the libR.so is being searched in: The output of
The output of
The difference seeems to be in those lines:
|
Hi @ekungurov, I got the same issue with this version. To fix it I modify this line: Line 192 in 77dac44
by changing get_r_libnn(r_home) to lib and it work smootly. Do you mind to test?
|
Hi, if this looks like a possible fix it is easier for me to have the proposed change as a PR to review. |
@dagonzalezfo The changed behaviour is definitely introduced by pull request #969 "Build with -Wl,-rpath". However, I don't fully understand what RPATH is, what LIBnn is, and I am not sure what supposed behaviour should be. Our version of R is built with some 'easybuild-easyconfigs' recipes. The |
Hi @ekungurov , Regarding LIBnn it is defined in the configuration process of R installation, that is not used by default in an easybuild installation. That's why To cover manual/standard easybuild installations I create a PR that should fix it . Correction: LIBnn is not related with shared library location. |
@dagonzalezfo - Can you point out the exact point in the R documentation where the installation setup is described? |
@ekungurov : this additional flags includes the path to the shared library
The output of |
@lgautier My mistake, LIBnn is used to form the prefix for
(https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installation) I test with some configurations, and in each time the shared libraries are at Thanks for fixing it in #990. |
Describe the issue or bug
rpy2 3.5.7 prints the following warning:
situation.py:266: UserWarning: R emitting a warning: WARNING: ignoring environment value of R_HOME
And then doesn't work because it can't find libR.so:
OSError: cannot load library '/usr/frog/R/4.1.2-foss-2018a/lib64/R/lib64/libR.so': /usr/frog/R/4.1.2-foss-2018a/lib64/R/lib64/libR.so: cannot open shared object file: No such file or directory
rpy2 3.5.6 doesn't print the warning and works.
To Reproduce
Actually I use "jupyterlab_code_formatter" package to reproduce. The code is simple import
Pre-requisites:
libR.so installed in a non-standard directory
Steps to reproduce:
Python 3.8.15, R 4.1.2
Expected behavior
rpy2=3.5.6 searches libR in $R_HOME/lib/
rpy2=3.5.7 is searching in $R_HOME/lib64/
Is that a correct behaviour?
Error
The "import jupyterlab_code_formatter" fails with the following stack trace:
The text was updated successfully, but these errors were encountered: