-
Notifications
You must be signed in to change notification settings - Fork 227
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
Could not solve environment on Linux due to the removal of the defaults
channel from environment.yml
#2722
Comments
Can we just do what this SO post suggests and add the desired OpenBLAS variant to the |
It's weird to me that when we removed I wonder how adding the defaults channel fixes things. |
The |
https://anaconda.org/conda-forge/nomkl I'm not sure whether that's the cause since I just saw this. But the solution you posted indeed works. Tested locally and passed the CI. |
Hmm.. that's confusing. Alas - if it works, it works. |
Bug Description
Specific to Linux:
Users may encounter a problem when installing RMG following our updated instructions introduced in PR #2719 . The following error message occurs when the user attempts to create the conda environment:
How To Reproduce
By following instructions "Installation by Source Using Anaconda Environment for Unix-based Systems: Linux and Mac OSX" steps 1 through 7 (step 6 skipped).
Users who encounter this problem either have a blank
.condarc
file or not have thedefaults
channel in.condarc
.Installation Information
Describe your installation method and system information.
Additional Context
We recently removed the
defaults
channel fromenvironment.yml
due to changes to Anaconda's Terms of Service (PR #2712). Now we aren't installing any package from the official channel. But this introduced the error shown above.The problem goes away with either one of these workarounds:
defaults
channel in user's.condarc
file.-nomkl
mutex metapackage fromenvironment.yml
.From my understanding, it seems that Cantera 2.6 on Linux uses
mkl
instead ofopenblas
, so the-nomkl
toggle may result in an incompatibility when solving the environment. But for reasons beyond my understanding, adding thedefaults
channel bypasses this problem.This problem escaped our CI because the
conda-incubator/setup-miniconda
Github Action automatically creates a.condarc
file in the runner's home directory that includes thedefaults
channel.A user who starts from scratch may have a blank conda config file in their home directory, so in their case the mamba solver will only look for packages in the three channels we included in
environment.yml
.I have created a branch with a modified CI workflow file where a custom conda config file without the
defaults
channel is used instead of the one automatically created by the Github Action. The CI will fail with the expected error message.The text was updated successfully, but these errors were encountered: