Skip to content

[GUI auto-update] Updating to napari-deeplabcut v0.4.0 with uv on py3.12+ may pull the wrong numpy version for numba #3534

Description

@C-Achard

For users accepting the update prompt in the DeepLabCut GUI and updating the napari plugin only, DeepLabCut may report:
ImportError: Numba needs NumPy 2.4 or less. Got NumPy 2.5.

Affects Python 3.12 environments with uv installed.
Environments without uv are not affected.

Fix

Activate the environment you run DeepLabCut from, then run:
uv pip install "numpy<2.5" "opencv-python-headless<5"

Do not install numpy<2 instead.

Until this is fixed

Update the labeling plugin from a terminal rather than the GUI prompt:
python -m pip install -U napari-deeplabcut

Cause

The GUI updater runs uv pip install -U <package>.
uv's -U also upgrades every dependency of the requested package, and ignores constraints held by installed packages outside that request.
Updating napari-deeplabcut therefore moved NumPy past what the installed numba supports.

Activity

  1. self-assigned this
    on Sep 29, 2026
  2. added
    bug
    on Sep 29, 2026
  3. added theissue type on Sep 29, 2026
  4. added
    GUI
    versioning
    napari-dlc
    and removed
    versioning
    on Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.0.3GUIbugnapari-dlc

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions