Open AlexSCFraser opened 1 year ago
Conda-build and boa will restrict R to some old version. You can change that with the command line or maybe by adding a lower pin. The reason is that packages are generally built multiple times for multiple R versions. Same with NumPy, Python, maybe others. Those are all packages that are special cased.
So a note to anyone with a similar issue, I solved this by specifying the r_base version in my conda build config, as below.
r_base:
- 3.6.3
I'm not sure this should be closed though, because to me this seems like it should be unnecessary and that the solver should be able to override the special case and choose a compatible version of r_base when there is a solver error because of some hardcoded r_base version being incompatible with a set of r packages. I understand there are probably reasons for the special case of r_base versions to exist, but
Troubleshooting docs
How did you install Mamba?
Mambaforge
Search tried in issue tracker
solver build
Latest version of Mamba
Tried in Conda?
I have this problem with Conda as well, without using Mamba
Describe your issue
I am trying to build an R package for distribution. Initially I tried using base
conda build
, but the conda solver literally never solves the dependency list. So I tried usingmamba build
(after installing boa) andconda mambabuild
commands to try building the package instead. It at least gives me an error message that the environment can't be solved, but this makes no sense since I can install the entire dependency list into a fresh environment no problem. Reading through the output, one thing that stands out to me is that the r-base package seems to have gained a narrow range of outdated version somehow, which I'm not exactly sure has come from. So it may not be a problem with the solver as such, but perhaps somewhere in the build pipeline r-base gains an unnecessary dependency. I also tried updating conda to the latest version and enabling the libmamba solver for conda and I have the same issue as with mamba, it reports an unsatisfiable dependency error.The dependency list in my meta.yaml:
When I install these manually with
mamba install r-base r-jsonlite r-ape r-stringr r-magicfor r-knitr r-dplyr r-magrittr r-rcolorbrewer r-ggnewscale r-ggplot2 bioconductor-ggtree
in a fresh environment, it works normally, so I see no reason why the package build shouldn't be able to solve these dependencies.The dependency list that is given as the one failed to solve by mamba build is:
So I have no idea why r-base is now between 3.4 and 3.5, since this was not part of my requirements. And when I install these packages into a fresh environment, the version of r-base is
r-base 3.6.3 hddad469_8 conda-forge
in the environment list. So even if mamba build added a narrowing of the valid r-base versions, it shouldn't be so narrow. I've attached logs formamba build
andmamba mambabuild
.mamba info / micromamba info
Logs
environment.yml
No response
~/.condarc