question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependencies from conda-forge are being removed during sphinx installation due to conda channel priority

See original GitHub issue

Details

Expected Result

I have a conda environment yml file:

name: freud-rtd
channels:
  - defaults
  - conda-forge
dependencies:
  - python
  - pip
  - scikit-build
  - cmake
  - cython
  - tbb
  - tbb-devel
  - numpy
  - sphinx
  - sphinx_rtd_theme
  - nbsphinx
  - jupyter_sphinx
  - sphinxcontrib-bibtex

Some of the packages are installed from conda-forge, and then removed during the step: conda install --yes --quiet --name 668 mock pillow sphinx sphinx_rtd_theme

I expected that this step wouldn’t remove my package dependencies.

Actual Result

Dependencies were removed, resulting in a failed build. This appears to be due to channel priority, where main is preferred over conda-forge in the second step even though my conda environment prefers conda-forge over main.

The following packages will be REMOVED:

  jupyter_sphinx-0.3.1-py39hde42818_1
  pybtex-0.23.0-py39hde42818_0
  pybtex-docutils-0.2.2-py39hde42818_2
  python_abi-3.9-1_cp39
  scikit-build-0.11.1-py39hf149a3a_2
  sphinxcontrib-bibtex-1.0.0-py_0

This appears to have changed in the last 2 weeks or so (or at least that’s when my builds started failing).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stsewdcommented, Nov 2, 2020

Feature flags are experimental options that in time would be default or become an option, if this one becomes an option the config file would be great place, yes.

1reaction
stsewdcommented, Oct 29, 2020

Would the CONDA_APPEND_CORE_REQUIREMENTS feature flag help with this? https://docs.readthedocs.io/en/stable/guides/feature-flags.html#available-flags

Append Read the Docs core requirements to environment.yml file Makes Read the Docs to install all the requirements at once on conda create step. This helps users to pin dependencies on conda and to improve build time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tips & tricks — conda-forge 2022.12.16 documentation
In addition to the channel priority, we recommend always installing your packages inside a new environment instead of the base environment from anaconda/ ......
Read more >
Why does adding `--no-update-dependencies` add more ...
When I do conda install spacy --no-update-dependencies , conda wants to make ... will be SUPERSEDED by a higher-priority channel: conda-env: ...
Read more >
Conda configuration
If conda-build channels # # are to be allowed, along with the --use-local command line flag, be # # sure to include the...
Read more >
Error when updating conda packages: RemoveError
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment. The only thing that actually worked ...
Read more >
conda/conda - Gitter
Numpydoc has only python and sphinx as dependencies ... Or the packages that will be installed by the command I was running? Dave...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found