fix: drop netifaces (unbuildable), harden build install #9

Merged
jknapp merged 1 commits from fix/netifaces-build into main 2026-07-18 05:40:51 +00:00
Owner

Fixes the ModuleNotFoundError: PySide6 crash in the packaged exe. netifaces broke pip install -e . (no wheel, needs MSVC); replaced with socket-based LAN IP detection and made pip failures fatal + added a runtime-import smoke check.

Fixes the ModuleNotFoundError: PySide6 crash in the packaged exe. netifaces broke `pip install -e .` (no wheel, needs MSVC); replaced with socket-based LAN IP detection and made pip failures fatal + added a runtime-import smoke check.
jknapp added 1 commit 2026-07-18 05:40:50 +00:00
The packaged exe crashed with ModuleNotFoundError: No module named 'PySide6'.
Root cause: `pip install -e .` aborted because netifaces has no wheel for the
build's Python and needs MSVC to compile from source, so NO dependencies were
installed — and the workflow didn't catch it (native-command failures don't
trip $ErrorActionPreference, and the next pip command succeeded).

- Replace netifaces with a dependency-free socket-based LAN IP detection in the
  GUI; remove netifaces from pyproject and all PyInstaller specs.
- Make pip failures fatal (check $LASTEXITCODE) and add a "Verify runtime
  imports" step that fails the build before bundling if any dep is missing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jknapp merged commit d409b64efa into main 2026-07-18 05:40:51 +00:00
jknapp deleted branch fix/netifaces-build 2026-07-18 05:40:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MacroPad/MP-Server#9