conda-forge / r-terra-feedstock

A conda-smithy repository for r-terra.
BSD 3-Clause "New" or "Revised" License
0 stars 9 forks source link

Update to work with latest Python #42

Open nathancarter opened 2 years ago

nathancarter commented 2 years ago

Solution to issue cannot be found in the documentation.

Issue

If you try to conda install -c conda-forge r-terra in a Python 3.10.5 context, it fails with an UnsatisfiableError because some of the packages on which r-terra depends do not support Python 3.10.5 (e.g., asttokens). In fact, it seems that asttokens requires something strictly earlier than Python 3.9. (This is not necessarily the only culprit dependency; it is just the first one in alphabetical order that I noticed.)

My use case is that I'm building a Docker container based on jupyter/datascience-notebook and want to install r-terra as part of the container build process. I'm using an M1 (ARM) machine, so I'm specifying a base image with a tag, jupyter/datascience-notebook:aarch64-SOMETHING, such as aarch64-ubuntu-20.04, to ensure the container works on my architecture. But all ARM base images are from recent years (not a surprise) and thus include recent versions of Python, not Python 3.8.*. So I am unable, in this particular use case, to simply downgrade my Python.

Short version: r-terra needs old Python, M1 Mac needs new Python, so they are not friends.

I could perhaps install multiple Python versions in the container, but I do not know whether that would solve this headache or cause new ones.

Installed packages

# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
_r-mutex                  1.0.1               anacondar_1    conda-forge
alembic                   1.8.0              pyhd8ed1ab_0    conda-forge
altair                    4.2.0              pyhd8ed1ab_1    conda-forge
anyio                     3.6.1           py310hbbe02a8_0    conda-forge
aom                       3.3.0                headf329_1    conda-forge
argon2-cffi               21.3.0             pyhd8ed1ab_0    conda-forge
argon2-cffi-bindings      21.2.0          py310h761cc84_2    conda-forge
asttokens                 2.0.5              pyhd8ed1ab_0    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     21.4.0             pyhd8ed1ab_0    conda-forge
babel                     2.10.3             pyhd8ed1ab_0    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
beautifulsoup4            4.11.1             pyha770c72_0    conda-forge
binutils_impl_linux-aarch64 2.36.1               h026399b_2    conda-forge
binutils_linux-aarch64    2.36                h7854541_10    conda-forge
blas                      2.115                  openblas    conda-forge
blas-devel                3.9.0           15_linuxaarch64_openblas    conda-forge
bleach                    5.0.1              pyhd8ed1ab_0    conda-forge
blinker                   1.4                        py_1    conda-forge
blosc                     1.21.1               hdfcada4_3    conda-forge
bokeh                     2.4.3           py310h4c7bcd0_0    conda-forge
bottleneck                1.3.5           py310h7943a33_0    conda-forge
brotli                    1.0.9                h4e544f5_7    conda-forge
brotli-bin                1.0.9                h4e544f5_7    conda-forge
brotlipy                  0.7.0           py310h761cc84_1004    conda-forge
brunsli                   0.1                  h01db608_0    conda-forge
bwidget                   1.9.14               h8af1aa0_1    conda-forge
bzip2                     1.0.8                hf897c2e_4    conda-forge
c-ares                    1.18.1               hf897c2e_0    conda-forge
c-blosc2                  2.2.0                h861a2bc_0    conda-forge
ca-certificates           2022.6.15            h4fd8a4c_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cairo                     1.16.0            h2b21b7e_1008    conda-forge
certifi                   2022.6.15       py310h4c7bcd0_0    conda-forge
certipy                   0.1.3                      py_0    conda-forge
cffi                      1.15.1          py310hf0c4615_0    conda-forge
cfitsio                   4.1.0                h8b262d6_0    conda-forge
charls                    2.3.4                h01db608_0    conda-forge
charset-normalizer        2.1.0              pyhd8ed1ab_0    conda-forge
click                     8.1.3           py310h4c7bcd0_0    conda-forge
cloudpickle               2.1.0              pyhd8ed1ab_0    conda-forge
colorama                  0.4.5              pyhd8ed1ab_0    conda-forge
conda                     4.13.0          py310h4c7bcd0_1    conda-forge
conda-package-handling    1.8.1           py310h761cc84_1    conda-forge
configurable-http-proxy   4.5.1           node14_hcdd88fd_1    conda-forge
cryptography              37.0.4          py310h07dd38e_0    conda-forge
curl                      7.83.1               h8fd98b7_0    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
cython                    0.29.30         py310h130cc07_0    conda-forge
cytoolz                   0.12.0          py310hdc54845_0    conda-forge
dask                      2022.7.0           pyhd8ed1ab_0    conda-forge
dask-core                 2022.7.0           pyhd8ed1ab_0    conda-forge
debugpy                   1.6.0           py310h130cc07_0    conda-forge
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
dill                      0.3.5.1            pyhd8ed1ab_0    conda-forge
distributed               2022.7.0           pyhd8ed1ab_0    conda-forge
entrypoints               0.4                pyhd8ed1ab_0    conda-forge
executing                 0.8.3              pyhd8ed1ab_0    conda-forge
expat                     2.4.8                ha18d298_0    conda-forge
flit-core                 3.7.1              pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.0               h856ede2_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.34.4          py310h761cc84_0    conda-forge
freetype                  2.10.4               hdf53a3c_1    conda-forge
fribidi                   1.0.10               hb9de7d4_0    conda-forge
fsspec                    2022.5.0           pyhd8ed1ab_0    conda-forge
gcc_impl_linux-aarch64    9.4.0               h603953f_16    conda-forge
gcc_linux-aarch64         9.4.0               h9fa865e_10    conda-forge
gettext                   0.19.8.1          h6edf1e2_1008    conda-forge
gfortran_impl_linux-aarch64 9.4.0               h54cdb55_16    conda-forge
gfortran_linux-aarch64    9.4.0               h02353c8_10    conda-forge
giflib                    5.2.1                hb9de7d4_2    conda-forge
gmp                       6.2.1                h7fd3ca4_0    conda-forge
gmpy2                     2.1.2           py310h5b56cc7_0    conda-forge
graphite2                 1.3.13            h7fd3ca4_1001    conda-forge
greenlet                  1.1.2           py310h130cc07_2    conda-forge
gsl                       2.6                  h4b56f2c_0    conda-forge
gxx_impl_linux-aarch64    9.4.0               h603953f_16    conda-forge
gxx_linux-aarch64         9.4.0               h1e24722_10    conda-forge
h5py                      3.6.0           nompi_py310hd005ad3_100    conda-forge
harfbuzz                  3.1.1                h6939e63_0    conda-forge
hdf5                      1.12.1          nompi_h7bde11e_104    conda-forge
heapdict                  1.0.1                      py_0    conda-forge
icu                       68.2                 h3621d8e_0    conda-forge
idna                      3.3                pyhd8ed1ab_0    conda-forge
imagecodecs               2022.2.22       py310hf52949c_6    conda-forge
imageio                   2.19.3             pyhcf75d05_0    conda-forge
importlib-metadata        4.11.4          py310hbbe02a8_0    conda-forge
importlib_metadata        4.11.4               hd8ed1ab_0    conda-forge
importlib_resources       5.8.0              pyhd8ed1ab_0    conda-forge
ipykernel                 6.15.1             pyh210e3f2_0    conda-forge
ipympl                    0.9.1              pyhd8ed1ab_0    conda-forge
ipython                   8.4.0           py310h4c7bcd0_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
ipywidgets                7.7.1              pyhd8ed1ab_0    conda-forge
jedi                      0.18.1          py310hbbe02a8_1    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
joblib                    1.1.0              pyhd8ed1ab_0    conda-forge
jpeg                      9e                   h9cdd2b7_2    conda-forge
json5                     0.9.5              pyh9f0ad1d_0    conda-forge
jsonschema                4.6.2              pyhd8ed1ab_0    conda-forge
jupyter_client            7.3.4              pyhd8ed1ab_0    conda-forge
jupyter_core              4.10.0          py310h4c7bcd0_0    conda-forge
jupyter_server            1.18.1             pyhd8ed1ab_0    conda-forge
jupyter_telemetry         0.1.0              pyhd8ed1ab_1    conda-forge
jupyterhub                2.3.1              pyhd8ed1ab_0    conda-forge
jupyterhub-base           2.3.1              pyhd8ed1ab_0    conda-forge
jupyterlab                3.4.3              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.15.0             pyhd8ed1ab_0    conda-forge
jupyterlab_widgets        1.1.1              pyhd8ed1ab_0    conda-forge
jupytext                  1.14.0                   pypi_0    pypi
jxrlib                    1.1                  hf897c2e_2    conda-forge
kernel-headers_linux-aarch64 4.18.0              h5b4a56d_13    conda-forge
keyutils                  1.6.1                h4e544f5_0    conda-forge
kiwisolver                1.4.3           py310h9ceb0a0_0    conda-forge
krb5                      1.19.3               h7c456eb_0    conda-forge
lazy-loader               0.1rc2                   pypi_0    pypi
lcms2                     2.12                 h012adcb_0    conda-forge
ld_impl_linux-aarch64     2.36.1               h02ad14f_2    conda-forge
lerc                      3.0                  h01db608_0    conda-forge
libaec                    1.0.6                h01db608_0    conda-forge
libarchive                3.5.2                h37be732_1    conda-forge
libavif                   0.10.1               h4e544f5_0    conda-forge
libblas                   3.9.0           15_linuxaarch64_openblas    conda-forge
libbrotlicommon           1.0.9                h4e544f5_7    conda-forge
libbrotlidec              1.0.9                h4e544f5_7    conda-forge
libbrotlienc              1.0.9                h4e544f5_7    conda-forge
libcblas                  3.9.0           15_linuxaarch64_openblas    conda-forge
libcurl                   7.83.1               h8fd98b7_0    conda-forge
libdeflate                1.12                 h4e544f5_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.4.2                h3557bc0_5    conda-forge
libgcc-devel_linux-aarch64 9.4.0               h85f5abf_16    conda-forge
libgcc-ng                 12.1.0              h3242a24_16    conda-forge
libgfortran-ng            12.1.0              he9431aa_16    conda-forge
libgfortran5              12.1.0              h41d5c85_16    conda-forge
libglib                   2.72.1               hd4f7528_0    conda-forge
libgomp                   12.1.0              h3242a24_16    conda-forge
libiconv                  1.16                 h6dd45c4_0    conda-forge
liblapack                 3.9.0           15_linuxaarch64_openblas    conda-forge
liblapacke                3.9.0           15_linuxaarch64_openblas    conda-forge
libllvm11                 11.1.0               h6293a0b_3    conda-forge
libmamba                  0.24.0               h8683862_1    conda-forge
libmambapy                0.24.0          py310h76fea7e_1    conda-forge
libnghttp2                1.47.0               h75cb1c7_0    conda-forge
libnsl                    2.0.0                hf897c2e_0    conda-forge
libopenblas               0.3.20          pthreads_h6cb6f83_0    conda-forge
libpng                    1.6.37               hf9034f9_3    conda-forge
libprotobuf               3.20.1               h7866ba4_0    conda-forge
libsanitizer              9.4.0               h4d00405_16    conda-forge
libsodium                 1.0.18               hb9de7d4_1    conda-forge
libsolv                   0.7.22               h7866ba4_0    conda-forge
libssh2                   1.10.0               h1ab2c7b_2    conda-forge
libstdcxx-devel_linux-aarch64 9.4.0               h85f5abf_16    conda-forge
libstdcxx-ng              12.1.0              hd01590b_16    conda-forge
libtiff                   4.4.0                hacb60eb_1    conda-forge
libuuid                   2.32.1            hf897c2e_1000    conda-forge
libuv                     1.43.0               hf897c2e_0    conda-forge
libwebp                   1.2.2                h21830e5_0    conda-forge
libwebp-base              1.2.2                hf897c2e_1    conda-forge
libxcb                    1.13              h3557bc0_1004    conda-forge
libxml2                   2.9.12               hd674cf7_0    conda-forge
libzlib                   1.2.12               h4e544f5_1    conda-forge
libzopfli                 1.0.3                h01db608_0    conda-forge
littleutils               0.2.2                    pypi_0    pypi
llvm-openmp               14.0.4               hb2805f8_0    conda-forge
llvmlite                  0.38.1          py310h773edab_0    conda-forge
locket                    1.0.0              pyhd8ed1ab_0    conda-forge
lz4                       4.0.0           py310h5521295_2    conda-forge
lz4-c                     1.9.3                h01db608_1    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
make                      4.3                  h309ac5b_1    conda-forge
mako                      1.2.1              pyhd8ed1ab_0    conda-forge
mamba                     0.24.0          py310hcf12e44_1    conda-forge
markdown-it-py            2.1.0                    pypi_0    pypi
markupsafe                2.1.1           py310hdc54845_1    conda-forge
matplotlib-base           3.5.2           py310hf0c80a6_0    conda-forge
matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
mdit-py-plugins           0.3.0                    pypi_0    pypi
mdurl                     0.1.1                    pypi_0    pypi
mistune                   0.8.4           py310h7cee911_1005    conda-forge
mpc                       1.2.1                h846f343_0    conda-forge
mpfr                      4.1.0                h719063d_1    conda-forge
mpmath                    1.2.1              pyhd8ed1ab_0    conda-forge
msgpack-python            1.0.4           py310h9ceb0a0_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
nbclassic                 0.3.7              pyhd8ed1ab_0    conda-forge
nbclient                  0.6.6              pyhd8ed1ab_0    conda-forge
nbconvert                 6.5.0              pyhd8ed1ab_0    conda-forge
nbconvert-core            6.5.0              pyhd8ed1ab_0    conda-forge
nbconvert-pandoc          6.5.0              pyhd8ed1ab_0    conda-forge
nbformat                  5.4.0              pyhd8ed1ab_0    conda-forge
ncurses                   6.3                  headf329_1    conda-forge
nest-asyncio              1.5.5              pyhd8ed1ab_0    conda-forge
networkx                  2.8.4              pyhd8ed1ab_0    conda-forge
nodejs                    14.18.3              ha6927ec_1    conda-forge
notebook                  6.4.12             pyha770c72_0    conda-forge
notebook-shim             0.1.0              pyhd8ed1ab_0    conda-forge
numba                     0.55.2          py310h7e061d2_0    conda-forge
numexpr                   2.8.0           py310h71c1c19_2    conda-forge
numpy                     1.22.4          py310h7f880a9_0    conda-forge
oauthlib                  3.2.0              pyhd8ed1ab_0    conda-forge
openblas                  0.3.20          pthreads_h2d9dd7e_0    conda-forge
openjpeg                  2.4.0                h45037e0_1    conda-forge
openssl                   1.1.1q               h4e544f5_0    conda-forge
outdated                  0.2.1                    pypi_0    pypi
packaging                 21.3               pyhd8ed1ab_0    conda-forge
pamela                    1.0.0                      py_0    conda-forge
pandas                    1.4.3           py310h9e1bc84_0    conda-forge
pandas-flavor             0.3.0                    pypi_0    pypi
pandoc                    2.18                 h8af1aa0_0    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
pango                     1.48.10              hc191093_2    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
partd                     1.2.0              pyhd8ed1ab_0    conda-forge
patsy                     0.5.2              pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h01db608_0    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    9.2.0           py310h31078c8_0    conda-forge
pingouin                  0.5.2                    pypi_0    pypi
pip                       22.1.2             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               hb9de7d4_0    conda-forge
prometheus_client         0.14.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.30             pyha770c72_0    conda-forge
protobuf                  3.20.1          py310h130cc07_0    conda-forge
psutil                    5.9.1           py310h761cc84_0    conda-forge
pthread-stubs             0.4               hb9de7d4_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.3           py310h761cc84_1010    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pycurl                    7.45.1          py310h0dc3a97_2    conda-forge
pygments                  2.12.0             pyhd8ed1ab_0    conda-forge
pyjwt                     2.4.0              pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyrsistent                0.18.1          py310hdc54845_1    conda-forge
pysocks                   1.7.1           py310hbbe02a8_5    conda-forge
pytables                  3.7.0           py310h6a1374c_0    conda-forge
python                    3.10.5          h023d47c_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python-fastjsonschema     2.15.3             pyhd8ed1ab_0    conda-forge
python-json-logger        2.0.1              pyh9f0ad1d_0    conda-forge
python_abi                3.10                    2_cp310    conda-forge
pytz                      2022.1             pyhd8ed1ab_0    conda-forge
pywavelets                1.3.0           py310h7943a33_1    conda-forge
pyyaml                    6.0             py310h761cc84_4    conda-forge
pyzmq                     23.2.0          py310h7c6bb8d_0    conda-forge
r-askpass                 1.1               r36h96a179c_2    conda-forge
r-assertthat              0.2.1             r36h6115d3f_2    conda-forge
r-backports               1.2.1             r36h96a179c_0    conda-forge
r-base                    3.6.3                h5de336e_8    conda-forge
r-base64enc               0.1_3           r36h96a179c_1004    conda-forge
r-bit                     4.0.4             r36h96a179c_0    conda-forge
r-bit64                   4.0.5             r36h96a179c_0    conda-forge
r-bitops                  1.0_7             r36h96a179c_0    conda-forge
r-blob                    1.2.1             r36h6115d3f_1    conda-forge
r-brew                    1.0_6           r36h6115d3f_1003    conda-forge
r-brio                    1.1.2             r36h96a179c_0    conda-forge
r-broom                   0.7.6             r36hc72bb7e_0    conda-forge
r-bslib                   0.2.5.1           r36hc72bb7e_0    conda-forge
r-cachem                  1.0.5             r36h96a179c_0    conda-forge
r-callr                   3.7.0             r36hc72bb7e_0    conda-forge
r-caret                   6.0_88            r36h96a179c_0    conda-forge
r-cellranger              1.1.0           r36h6115d3f_1003    conda-forge
r-class                   7.3_19            r36h96a179c_0    conda-forge
r-cli                     2.5.0             r36hc72bb7e_0    conda-forge
r-clipr                   0.7.1             r36h142f84f_0    conda-forge
r-codetools               0.2_18            r36hc72bb7e_0    conda-forge
r-colorspace              2.0_1             r36h96a179c_0    conda-forge
r-commonmark              1.7             r36h96a179c_1002    conda-forge
r-cpp11                   0.2.7             r36hc72bb7e_0    conda-forge
r-crayon                  1.4.1             r36hc72bb7e_0    conda-forge
r-curl                    4.3.1             r36h96a179c_0    conda-forge
r-data.table              1.14.0            r36h96a179c_0    conda-forge
r-dbi                     1.1.1             r36hc72bb7e_0    conda-forge
r-dbplyr                  2.1.1             r36hc72bb7e_0    conda-forge
r-desc                    1.3.0             r36hc72bb7e_0    conda-forge
r-devtools                2.1.0             r36h6115d3f_1    conda-forge
r-diffobj                 0.3.4             r36h96a179c_0    conda-forge
r-digest                  0.6.27            r36hecdc70b_0    conda-forge
r-dplyr                   1.0.6             r36hecdc70b_1    conda-forge
r-dtplyr                  1.1.0             r36hc72bb7e_0    conda-forge
r-e1071                   1.7_7             r36hecdc70b_0    conda-forge
r-ellipsis                0.3.2             r36h96a179c_0    conda-forge
r-evaluate                0.14              r36h6115d3f_2    conda-forge
r-fansi                   0.4.2             r36h96a179c_0    conda-forge
r-farver                  2.1.0             r36hecdc70b_0    conda-forge
r-fastmap                 1.1.0             r36hecdc70b_0    conda-forge
r-forcats                 0.5.1             r36hc72bb7e_0    conda-forge
r-foreach                 1.5.1             r36h142f84f_0    conda-forge
r-forecast                8.14              r36hc9dd72a_0    conda-forge
r-fracdiff                1.5_1             r36hc57f18f_1    conda-forge
r-fs                      1.5.0             r36h0357c0b_0    conda-forge
r-gargle                  1.1.0             r36hc72bb7e_0    conda-forge
r-generics                0.1.0             r36hc72bb7e_0    conda-forge
r-ggplot2                 3.3.3             r36hc72bb7e_0    conda-forge
r-gh                      1.3.0             r36hc72bb7e_0    conda-forge
r-git2r                   0.28.0            r36h8aefce9_0    conda-forge
r-gitcreds                0.1.1             r36hc72bb7e_0    conda-forge
r-glue                    1.4.2             r36h96a179c_0    conda-forge
r-googledrive             1.0.1             r36h6115d3f_1    conda-forge
r-googlesheets4           0.3.0             r36h4da3e95_0    conda-forge
r-gower                   0.2.2             r36hcdcec82_0    conda-forge
r-gtable                  0.3.0             r36h6115d3f_3    conda-forge
r-haven                   2.4.1             r36h14fd0b6_0    conda-forge
r-hexbin                  1.28.2            r36h6fc6016_0    conda-forge
r-highr                   0.9               r36hc72bb7e_0    conda-forge
r-hms                     1.1.0             r36hc72bb7e_0    conda-forge
r-htmltools               0.5.1.1           r36hecdc70b_0    conda-forge
r-htmlwidgets             1.5.3             r36hc72bb7e_0    conda-forge
r-httpuv                  1.6.1             r36hecdc70b_0    conda-forge
r-httr                    1.4.2             r36h6115d3f_0    conda-forge
r-ids                     1.0.1             r36h6115d3f_1    conda-forge
r-ini                     0.3.1           r36h6115d3f_1003    conda-forge
r-ipred                   0.9_11            r36h96a179c_0    conda-forge
r-irdisplay               1.0               r36hd8ed1ab_0    conda-forge
r-irkernel                1.2               r36hc72bb7e_0    conda-forge
r-isoband                 0.2.4             r36hecdc70b_0    conda-forge
r-iterators               1.0.13            r36h142f84f_0    conda-forge
r-jquerylib               0.1.4             r36hc72bb7e_0    conda-forge
r-jsonlite                1.7.2             r36h96a179c_0    conda-forge
r-kernsmooth              2.23_20           r36h2fbc33e_0    conda-forge
r-knitr                   1.33              r36hc72bb7e_0    conda-forge
r-labeling                0.4.2             r36h142f84f_0    conda-forge
r-later                   1.2.0             r36hecdc70b_0    conda-forge
r-lattice                 0.20_44           r36h96a179c_0    conda-forge
r-lava                    1.6.9             r36hc72bb7e_0    conda-forge
r-lifecycle               1.0.0             r36hc72bb7e_0    conda-forge
r-lmtest                  0.9_38            r36h9b2adfb_1    conda-forge
r-lubridate               1.7.10            r36hecdc70b_0    conda-forge
r-magrittr                2.0.1             r36h96a179c_1    conda-forge
r-markdown                1.1               r36h96a179c_1    conda-forge
r-mass                    7.3_54            r36h96a179c_0    conda-forge
r-matrix                  1.3_3             r36hb5b0af1_0    conda-forge
r-memoise                 2.0.0             r36hc72bb7e_0    conda-forge
r-mgcv                    1.8_35            r36hb5b0af1_0    conda-forge
r-mime                    0.10              r36h96a179c_0    conda-forge
r-modelmetrics            1.2.2.2           r36h0357c0b_1    conda-forge
r-modelr                  0.1.8             r36h6115d3f_0    conda-forge
r-munsell                 0.5.0           r36h6115d3f_1003    conda-forge
r-nlme                    3.1_152           r36h6fc6016_0    conda-forge
r-nnet                    7.3_16            r36h96a179c_0    conda-forge
r-numderiv                2016.8_1.1        r36h6115d3f_3    conda-forge
r-nycflights13            1.0.2             r36hc72bb7e_0    conda-forge
r-openssl                 1.4.4             r36h2820974_0    conda-forge
r-pbdzmq                  0.3_5             r36h5fd1efb_1    conda-forge
r-pillar                  1.6.1             r36hc72bb7e_0    conda-forge
r-pkgbuild                1.2.0             r36hc72bb7e_0    conda-forge
r-pkgconfig               2.0.3             r36h6115d3f_1    conda-forge
r-pkgload                 1.2.1             r36hecdc70b_0    conda-forge
r-plogr                   0.2.0           r36h6115d3f_1003    conda-forge
r-plyr                    1.8.6             r36h0357c0b_1    conda-forge
r-praise                  1.0.0           r36h6115d3f_1004    conda-forge
r-prettyunits             1.1.1             r36h6115d3f_1    conda-forge
r-proc                    1.17.0.1          r36hecdc70b_0    conda-forge
r-processx                3.5.2             r36h96a179c_0    conda-forge
r-prodlim                 2019.11.13        r36h0357c0b_1    conda-forge
r-progress                1.2.2             r36h6115d3f_2    conda-forge
r-promises                1.2.0.1           r36hecdc70b_0    conda-forge
r-proxy                   0.4_25            r36h96a179c_0    conda-forge
r-ps                      1.6.0             r36h96a179c_0    conda-forge
r-purrr                   0.3.4             r36h96a179c_1    conda-forge
r-quadprog                1.5_8             r36hf79f8cd_3    conda-forge
r-quantmod                0.4.18            r36hc72bb7e_0    conda-forge
r-r6                      2.5.0             r36hc72bb7e_0    conda-forge
r-randomforest            4.6_14          r36h9b2adfb_1004    conda-forge
r-rappdirs                0.3.3             r36h96a179c_0    conda-forge
r-rcmdcheck               1.3.3             r36h6115d3f_3    conda-forge
r-rcolorbrewer            1.1_2           r36h6115d3f_1003    conda-forge
r-rcpp                    1.0.6             r36hecdc70b_0    conda-forge
r-rcpparmadillo           0.10.4.0.0        r36h9983e65_0    conda-forge
r-rcurl                   1.98_1.3          r36h96a179c_0    conda-forge
r-readr                   1.4.0             r36he10960c_0    conda-forge
r-readxl                  1.3.1             r36hde08347_4    conda-forge
r-recipes                 0.1.16            r36hc72bb7e_0    conda-forge
r-rematch                 1.0.1           r36h6115d3f_1003    conda-forge
r-rematch2                2.1.2             r36h6115d3f_1    conda-forge
r-remotes                 2.3.0             r36hc72bb7e_0    conda-forge
r-repr                    1.1.3             r36h785f33e_0    conda-forge
r-reprex                  2.0.0             r36hc72bb7e_0    conda-forge
r-reshape2                1.4.4             r36h0357c0b_1    conda-forge
r-rlang                   0.4.11            r36h96a179c_0    conda-forge
r-rmarkdown               2.8               r36hc72bb7e_0    conda-forge
r-rodbc                   1.3_16            r36hcdcec82_1    conda-forge
r-roxygen2                7.1.1             r36h0357c0b_0    conda-forge
r-rpart                   4.1_15            r36h96a179c_2    conda-forge
r-rprojroot               2.0.2             r36hc72bb7e_0    conda-forge
r-rsqlite                 2.2.5             r36hecdc70b_0    conda-forge
r-rstudioapi              0.13              r36hc72bb7e_0    conda-forge
r-rvest                   1.0.0             r36hc72bb7e_0    conda-forge
r-sass                    0.4.0             r36hecdc70b_0    conda-forge
r-scales                  1.1.1             r36h6115d3f_0    conda-forge
r-selectr                 0.4_2             r36h6115d3f_1    conda-forge
r-sessioninfo             1.1.1           r36h6115d3f_1002    conda-forge
r-shiny                   1.6.0             r36hc72bb7e_0    conda-forge
r-sourcetools             0.1.7           r36he1b5a44_1002    conda-forge
r-squarem                 2021.1            r36hc72bb7e_0    conda-forge
r-stringi                 1.6.2             r36h86e2220_0    conda-forge
r-stringr                 1.4.0             r36h6115d3f_2    conda-forge
r-survival                3.2_11            r36h96a179c_0    conda-forge
r-sys                     3.4               r36h96a179c_0    conda-forge
r-testthat                3.0.2             r36hecdc70b_0    conda-forge
r-tibble                  3.1.2             r36h96a179c_0    conda-forge
r-tidyr                   1.1.3             r36hecdc70b_0    conda-forge
r-tidyselect              1.1.1             r36h4da3e95_0    conda-forge
r-tidyverse               1.3.1             r36hc72bb7e_0    conda-forge
r-timedate                3043.102        r36h6115d3f_1002    conda-forge
r-tinytex                 0.31              r36hc72bb7e_0    conda-forge
r-tseries                 0.10_48           r36h2fbc33e_0    conda-forge
r-ttr                     0.24.2            r36hcdcec82_0    conda-forge
r-urca                    1.3_0           r36h9b2adfb_1006    conda-forge
r-usethis                 1.6.3             r36h6115d3f_0    conda-forge
r-utf8                    1.2.1             r36h96a179c_0    conda-forge
r-uuid                    0.1_4             r36hcdcec82_1    conda-forge
r-vctrs                   0.3.8             r36h96a179c_1    conda-forge
r-viridislite             0.4.0             r36hc72bb7e_0    conda-forge
r-waldo                   0.2.5             r36hc72bb7e_0    conda-forge
r-whisker                 0.4               r36h6115d3f_1    conda-forge
r-withr                   2.4.2             r36hc72bb7e_0    conda-forge
r-xfun                    0.23              r36h96a179c_0    conda-forge
r-xml2                    1.3.2             r36h0357c0b_1    conda-forge
r-xopen                   1.0.0           r36h6115d3f_1003    conda-forge
r-xtable                  1.8_4             r36h6115d3f_3    conda-forge
r-xts                     0.12.1            r36h6ddfea1_0    conda-forge
r-yaml                    2.2.1             r36h96a179c_1    conda-forge
r-zoo                     1.8_9             r36h96a179c_0    conda-forge
rdatasets                 0.1.0                    pypi_0    pypi
readline                  8.1.2                h38e3740_0    conda-forge
reproc                    14.2.3               hf897c2e_0    conda-forge
reproc-cpp                14.2.3               h01db608_0    conda-forge
requests                  2.28.1             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.17.21         py310h761cc84_1    conda-forge
ruamel.yaml.clib          0.2.6           py310h761cc84_1    conda-forge
ruamel_yaml               0.15.80         py310h761cc84_1007    conda-forge
scikit-image              0.19.3          py310hdd6b5a8_0    conda-forge
scikit-learn              1.0.2                    pypi_0    pypi
scikit-posthocs           0.7.0                    pypi_0    pypi
scipy                     1.8.1           py310h39fff85_0    conda-forge
seaborn                   0.11.2               hd8ed1ab_0    conda-forge
seaborn-base              0.11.2             pyhd8ed1ab_0    conda-forge
sed                       4.8                  ha0d5d3d_0    conda-forge
send2trash                1.8.0              pyhd8ed1ab_0    conda-forge
setuptools                63.1.0          py310hbbe02a8_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.9                hc7e91e1_1    conda-forge
sniffio                   1.2.0           py310h4c7bcd0_3    conda-forge
sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
soupsieve                 2.3.1              pyhd8ed1ab_0    conda-forge
sqlalchemy                1.4.39          py310hdc54845_0    conda-forge
sqlite                    3.39.0               hc74f5b8_0    conda-forge
stack_data                0.3.0              pyhd8ed1ab_0    conda-forge
statsmodels               0.13.2          py310h7943a33_0    conda-forge
sympy                     1.10.1          py310h4c7bcd0_0    conda-forge
sysroot_linux-aarch64     2.17                h43d7e78_13    conda-forge
tabulate                  0.8.10                   pypi_0    pypi
tblib                     1.7.0              pyhd8ed1ab_0    conda-forge
terminado                 0.15.0          py310hbbe02a8_0    conda-forge
threadpoolctl             3.1.0              pyh8a188c0_0    conda-forge
tifffile                  2022.5.4           pyhd8ed1ab_0    conda-forge
tinycss2                  1.1.1              pyhd8ed1ab_0    conda-forge
tk                        8.6.12               hd8af866_0    conda-forge
tktable                   2.10                 hcd05d48_3    conda-forge
toml                      0.10.2                   pypi_0    pypi
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tornado                   6.1             py310hdc54845_3    conda-forge
tqdm                      4.64.0             pyhd8ed1ab_0    conda-forge
traitlets                 5.3.0              pyhd8ed1ab_0    conda-forge
typing_extensions         4.3.0              pyha770c72_0    conda-forge
tzdata                    2022a                h191b570_0    conda-forge
unicodedata2              14.0.0          py310h761cc84_1    conda-forge
unixodbc                  2.3.10               h04155f4_0    conda-forge
urllib3                   1.26.10            pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
websocket-client          1.3.3              pyhd8ed1ab_0    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
widgetsnbextension        3.6.1              pyha770c72_0    conda-forge
xarray                    2022.3.0                 pypi_0    pypi
xlrd                      2.0.1              pyhd8ed1ab_3    conda-forge
xorg-kbproto              1.0.7             h3557bc0_1002    conda-forge
xorg-libice               1.0.10               h3557bc0_0    conda-forge
xorg-libsm                1.2.3             h965e137_1000    conda-forge
xorg-libx11               1.7.2                h3557bc0_0    conda-forge
xorg-libxau               1.0.9                h3557bc0_0    conda-forge
xorg-libxdmcp             1.1.3                h3557bc0_0    conda-forge
xorg-libxext              1.3.4                h3557bc0_1    conda-forge
xorg-libxrender           0.9.10            h3557bc0_1003    conda-forge
xorg-renderproto          0.11.1            h3557bc0_1002    conda-forge
xorg-xextproto            7.3.0             h3557bc0_1002    conda-forge
xorg-xproto               7.0.31            h3557bc0_1007    conda-forge
xz                        5.2.5                h6dd45c4_1    conda-forge
yaml                      0.2.5                hf897c2e_2    conda-forge
yaml-cpp                  0.7.0                h4de3ea5_1    conda-forge
zeromq                    4.3.4                h01db608_1    conda-forge
zfp                       0.5.5                h01db608_8    conda-forge
zict                      2.2.0              pyhd8ed1ab_0    conda-forge
zipp                      3.8.0              pyhd8ed1ab_0    conda-forge
zlib                      1.2.12               h4e544f5_1    conda-forge
zlib-ng                   2.0.6                h4e544f5_0    conda-forge
zstd                      1.5.2                haad177d_2    conda-forge

Environment info

active environment : base
    active env location : /opt/conda
            shell level : 1
       user config file : /home/jovyan/.condarc
 populated config files : /opt/conda/.condarc
          conda version : 4.13.0
    conda-build version : not installed
         python version : 3.10.5.final.0
       virtual packages : __linux=5.10.104=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=aarch64
       base environment : /opt/conda  (writable)
      conda av data dir : /opt/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-aarch64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /opt/conda/pkgs
                          /home/jovyan/.conda/pkgs
       envs directories : /opt/conda/envs
                          /home/jovyan/.conda/envs
               platform : linux-aarch64
             user-agent : conda/4.13.0 requests/2.28.1 CPython/3.10.5 Linux/5.10.104-linuxkit ubuntu/20.04.4 glibc/2.31
                UID:GID : 1000:100
             netrc file : None
           offline mode : False
mfansler commented 1 year ago

I cannot recreate this issue, at least how it is narrated. E.g.,

CONDA_SUBDIR=linux-aarch64 mamba create -dn foo -c conda-forge r-terra python=3.10

solves without issue, implying that the blame is not correctly assigned. Please provide reproducible commands to encounter the issue. For example, a YAML would be preferable.

More importantly though: this just is not a good setup. If Python and R are getting co-installed in one environment, there is almost always a more effective and maintainable configuration. At a glance this should be at least three environments:

  1. Jupyter infrastructure
  2. Python kernel
  3. R kernel

The entry point for the container would be the Jupyter environment, which should have nb_conda_kernels installed. The other two environments should have their respective kernel packages, so they will be available through Jupyter, namely ipykernel and r-irkernel, respectively.

nathancarter commented 1 year ago

This more modular setup does indeed sound like a better practice than what I'm doing. Could you point me to an example Dockerfile that sets up such an environment, so that I could try to customize it to my own use case? Thanks for the suggestion!

Note that I am not sure whether it would be possible, even after decoupling the environments, to install an old Python in an ARM container. I would need to check on this. (Since the issue above is from July, I don't recall off the top of my head what my investigations 5 months ago revealed on this issue.)