sos-notebook icon indicating copy to clipboard operation
sos-notebook copied to clipboard

Unable to install R 'arrow' package in R subkernal of Conda installed sos-notebook

Open SugarRayLua opened this issue 6 months ago • 9 comments
trafficstars

Hi, and thanks for creating SoS-notebook. I really like the efficiency of being able to work with python and R in SoS-notebook. It is much easier than working with python and R through the R reticulate package.

However, I found that I can't install the R arrow package in my R subkernal environment of SoS-notebook, and without the arrow package installed, I can't transfer R objects between R and python using the SoS-notebook. Conversely, I had no problem installing the R arrow package in my separate R studio IDE environment.

Specifics: AMD x86-64 Linux OS (Ubuntu Noble derivative) Jupyter SoS notebook and JupyterLab SoS installed via SoS webpage local installation: https://vatlab.github.io/sos-docs/running.html#content (including CLI packages recommended for R and python) Using miniforge Conda installer Jupyter SoS installed into python base environment

Conda environment info:

(base) mikes@tuxedo-os:~$ conda info

     active environment : base
    active env location : /home/mikes/miniforge3
            shell level : 1
       user config file : /home/mikes/.condarc
 populated config files : /home/mikes/miniforge3/.condarc
                          /home/mikes/.condarc
          conda version : 25.3.1
    conda-build version : not installed
         python version : 3.12.10.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=zen4
                          __conda=25.3.1=0
                          __glibc=2.39=0
                          __linux=6.11.0=0
                          __unix=0=0
       base environment : /home/mikes/miniforge3  (writable)
      conda av data dir : /home/mikes/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/mikes/miniforge3/pkgs
                          /home/mikes/.conda/pkgs
       envs directories : /home/mikes/miniforge3/envs
                          /home/mikes/.conda/envs
               platform : linux-64
             user-agent : conda/25.3.1 requests/2.32.3 CPython/3.12.10 Linux/6.11.0-114024-tuxedo tuxedo/24.04 glibc/2.39 solver/libmamba conda-libmamba-solver/25.3.0 libmambapy/2.1.1
                UID:GID : 1000:1001
             netrc file : None
           offline mode : False

Error message after attempted install of R arrow package in R subkernal of Jupyter notebook (the entire package downloads and install dependencies and builds except at the end of the arrow compilation/installation:

Error: package or namespace load failed for ‘arrow’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/mikes/miniforge3/lib/R/library/00LOCK-arrow/00new/arrow/libs/arrow.so':
  /home/mikes/miniforge3/lib/R/library/00LOCK-arrow/00new/arrow/libs/arrow.so: undefined symbol: _ZTIN5arrow7compute8FunctionE
Error: loading failed
Execution halted

I appreciate any suggestions you might have to allow me to install the arrow package in the R subkernal environment.

Please also let me know if you need any further information about this issue.

Thank you. :-)

SugarRayLua avatar May 14 '25 07:05 SugarRayLua