Skip to content

Conda/bioconda package missing TUI runtime deps (textual, rich-pixels, pillow) → snakesee watch fails with ModuleNotFoundError #86

Description

@yfarjoun

Summary

The bioconda snakesee (0.8.1, noarch) declares only defopt, orjson, python, rich, snakemake as runtime deps, but pyproject.toml also requires textual, rich-pixels, and pillow (the TUI stack).
So a clean conda/pixi install can't launch the TUI. It only appears to work in environments that already contain textual from another package.

Reproduce (macOS / osx-arm64, fresh isolated env)

  $ pixi global install -c conda-forge -c bioconda snakesee      # 0.8.1
  $ ~/.pixi/envs/snakesee/bin/python -c "import textual"
  ModuleNotFoundError: No module named 'textual'                  
  
  $ cd <any workflow dir containing a .snakemake/ directory>
  $ snakesee watch .
  Traceback (most recent call last):
    ... 
    File ".../snakesee/tui/app.py", line 11, in <module>
      from textual.app import App
  ModuleNotFoundError: No module named 'textual'

Because the package is noarch, this reproduces on any platform in a clean env. (A non-isolated env that already has textual masks the bug — which is why an existing dev env may "work".)

Root cause

The bioconda recipe's run: requirements are out of sync with pyproject.toml — three dependencies are declared upstream but missing from the package:

dependency pyproject.toml bioconda run:
python (>=3.11)
rich
defopt
snakemake
orjson
textual missing
rich-pixels missing
pillow missing

Conda resolvers use the recipe metadata, not the wheel/pyproject.toml, so the three TUI dependencies are silently never installed.

Suggested fix

Add to recipes/snakesee/meta.yaml run: and bump the build number:
- textual >=0.80.0
- rich-pixels >=3.0.1
- pillow >=10.0.0
Caveat: pillow is on conda-forge, but textual and rich-pixels appear to be PyPI-only (not on conda-forge) — so they'd need conda-forge feedstocks first, or the recipe/distribution strategy
adjusted. Keeping run: in sync with pyproject.toml (e.g. via grayskull) would prevent recurrence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions