Closed pmoris closed 3 weeks ago
Found the culprit:
We don't directly install markdown-it-py
, but it is a dependency of trogon
(through its own dependency on textual
).
Looking at the conda-forge
recipe for textual (https://github.com/conda-forge/textual-feedstock/blob/main/recipe/meta.yaml), we see markdown-it-py
listed, without specifying linkify
. Meanwhile, the pyproject.toml
file for textual
does list it as an extra to install (https://github.com/Textualize/textual/blob/main/pyproject.toml). So it's actually this conda-forge recipe that is broken.
I've added the missing dependency to the bioconda recipe here: https://github.com/bioconda/bioconda-recipes/pull/51762.
I'll also open a PR for adding it explicitly to the pip requirements file (even though it is technically not necessary as long as it remains specified as a mandatory extra component by textual
(see https://github.com/Textualize/textual/blob/22770300252deb28d266fe4ed4766d6e2a2f5dd2/pyproject.toml#L44).
Also created a PR for the conda-forge recipe: https://github.com/conda-forge/textual-feedstock/pull/150.
If/when it gets added there, it would not strictly be necessary to add linkify-it-py
to the nf-core requirements anymore. But for the time being this would fix problems with people installing it through bioconda at least.
should be fixed now, thanks to the updated conda-forge recipe
Description of the bug
The most recent version of nf-core tools gives me an error when running most commands like
nf-core pipelines create
, but only for the version installed from bioconda (mamba create -n nf-core && mamba install -c bioconda nf-core
), not forpip
/PyPi.From what I can tell, the problem lies with the different way in which
pip
andconda
resolve optional dependencies (https://stackoverflow.com/questions/42587385/install-extras-with-conda).Looking at the documentation for markdown-it-py, you can see that one of its optional components is
linkify
, whichpip
can pull in by specifyingmarkdown-it-py[linkify]
. I suspect this is not happening in the bioconda recipe.Proposed fix: add linkify to the bioconda recipe: https://github.com/bioconda/bioconda-recipes/blob/master/recipes/nf-core/meta.yaml (and/or ping the trogon devs to do it too?).
System information
nf-core/tools version 3.0.2 Nextflow version 24.04.4 build 5917 Python 3.13.0 Operating System: Fedora Linux 40 (KDE Plasma)
Kernel: Linux 6.11.4-201.fc40.x86_64 Architecture: x86-64