Skip to content

Fix starnet_extract for StarNet++ v2.5+ CLI (named flags) - #188

Open
Thundras wants to merge 1 commit into
bscholer:mainfrom
Thundras:fix/starnet-v25-cli
Open

Thundras wants to merge 1 commit into
bscholer:mainfrom
Thundras:fix/starnet-v25-cli

Conversation

@Thundras

@Thundras Thundras commented Aug 28, 2026 •

Copy link
Copy Markdown

Summary

Fix starnet_extract for StarNet++ v2.5+, which switched from positional arguments to named flags (-i/-o/-s). Also adds <starnet_dir>/lib/ to LD_LIBRARY_PATH since v2.5 ships its shared libraries there.

Current code passes positional args and exits 1 with PARSE ERROR: Couldn't find match for argument.

Test plan

  • pytest tests/ passes locally — 674/682 tests pass; 8 pre-existing failures unrelated to this PR: test_orphan_master_removed (timing bug confirmed on upstream fcb1243), 2x test_scanner_orphans (Windows path-separator bug in _remove_orphans, only visible without -x), 5x test_siril_runtime (no Siril binary on Windows dev machine)
  • npm run check clean from ui/ — 0 errors; 3 pre-existing CSS warnings in playground/themes (unrelated)
  • Manually exercised the affected flow in the browser — StarNet++ v2.5.4 runs to completion with named flags
  • N/A — explain why

Notes for the reviewer

The -i/-o/-s flag style is the only documented interface in the v2.5 release notes. I have not tested against v2.4 or earlier with named flags, but the StarNet++ changelog notes the flags were added without removing positional support until v2.5 — so this should be safe either way.

StarNet++ v2.5+ uses named flags (-i/-o/-s) instead of positional args.
Also include the lib/ subdirectory in LD_LIBRARY_PATH so bundled OpenCV
and ONNX Runtime shared objects resolve without a wrapper script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant