Skip to content

Require ultralytics 8.0.200 and warn on older releases - #79

Merged
piotrekno1 merged 1 commit into
develfrom
fix/ultralytics-min-version
Oct 20, 2026
Merged

piotrekno1 merged 1 commit into
develfrom
fix/ultralytics-min-version

Conversation

@piotrekno1

Copy link
Copy Markdown
Collaborator

Closes #71.

Problem

On ultralytics releases before 8.0.200, the ultralytics integration was silently disabled, including on 8.0.0, the documented minimum. Those releases keep their helpers under ultralytics.yolo.utils. The integration imported ultralytics and ultralytics.utils.WEIGHTS_DIR in the same try, so the failed second import set _ultralytics = None, and instrument("ultralytics") succeeded while doing nothing.

Change

As decided on #71, this raises the minimum rather than supporting the old layout:

  • Compat matrix: ultralytics min goes from 8.0.0 to 8.0.200. The setuptools pin that 8.0.0 needed on Python 3.12 and 3.13 (it imported pkg_resources without declaring setuptools) goes away. docs/compatibility.md is regenerated.

  • Integration: the two imports are separate now. If ultralytics imports but ultralytics.utils doesn't, the installed version is recorded, and instrument("ultralytics") logs the warning below instead of returning silently. The warning comes from instrument(), not from the import, because the integrations module loads for every SDK user, including those not using ultralytics:

    wildedge: ultralytics 8.0.0 is older than 8.0.200, the oldest supported release; the ultralytics integration is disabled
    
  • Compat test: the xfail markers for the old layout are removed. The predict() marker for ultralytics model.predict() is not tracked #72 stays.

  • Changelog: a new "Changed" entry.

Tested

  • Compat min rows with ultralytics 8.0.200 and numpy 1.26.4 on Python 3.10, 3.11, 3.12 and 3.13: 2 passed and 1 xfailed (ultralytics model.predict() is not tracked #72) each.
  • The warning appears with real ultralytics 8.0.0 installed (see above).
  • New unit test: with an old version recorded, install_auto_load_patch logs the warning and leaves YOLO.__init__ unpatched. It fails without the SDK change.
  • Full suite: 703 passed, 28 skipped. ruff is clean. The docs-drift test from Fix the compat matrix and make it test each integration #69 caught the stale table before the regenerate.

🤖 Generated with Claude Code

Releases before 8.0.200 keep their helpers under ultralytics.yolo.utils, so
the integration's import of ultralytics.utils failed and the whole
integration turned off without a word, including on 8.0.0, the documented
minimum. The compat minimum moves to 8.0.200 (which also drops the setuptools
pin 8.0.0 needed on Python 3.12+), and instrument("ultralytics") logs a
warning naming the installed version when it is older.

Closes #71
@github-actions

Copy link
Copy Markdown

Coverage report

  • Total: 88% (10018/11420 lines)

Top uncovered files

  • wildedge/integrations/mlx.py: 28.7% (122 lines missed)
  • wildedge/integrations/transformers.py: 62.9% (112 lines missed)
  • wildedge/integrations/ultralytics.py: 67.7% (86 lines missed)
  • wildedge/integrations/pytorch.py: 57.5% (79 lines missed)
  • wildedge/platforms/macos.py: 56.8% (67 lines missed)

@piotrekno1
piotrekno1 merged commit 4471b15 into devel Oct 20, 2026
90 checks passed
@piotrekno1
piotrekno1 deleted the fix/ultralytics-min-version branch October 20, 2026 15:44
@github-actions github-actions Bot mentioned this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ultralytics integration is silently disabled on early 8.0.x releases, including the documented minimum 8.0.0

1 participant