Skip to content

Collect compiled chardet helpers and ZIP-readable model resources - #14

Merged
ctoth merged 1 commit into
masterfrom
fix/chardet-frozen-data
Oct 30, 2026
Merged

ctoth merged 1 commit into
masterfrom
fix/chardet-frozen-data

Conversation

@ctoth

@ctoth ctoth commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

A current QSeek Windows artifact builds successfully but exits during startup: html_to_text imports chardet, whose compiled pipeline extension cannot find chardet.pipeline.orchestrator__mypyc. Chardet also reads five model files through importlib.resources, so copying those beside the executable would not satisfy its ZIP-backed package layout.

Register a shared chardet hook beside the existing package hooks. It queues the root and present pipeline/models packages for py2exe's immediate-member collection and adds the actual model .bin files under their ZIP package paths. Older layouts without these subpackages continue to package normally. No product-local hook, dependency pin or native-extension disablement is introduced.

Validation: hosted Python 3.8 and 3.14 CI both pass all 87 tests and wheel/sdist builds; configured mypy and compatibility checks pass. Three new tests exercise real finder native-member enumeration, ZIP-backed importlib.resources reads, older layouts and hook registration before freezing. Full PR review gate is complete.

Native startup must still be verified in QSeek after this owner change is integrated. QSeek PR #1 remains independent of this branch.

@ctoth
ctoth merged commit 9fc6703 into master Oct 30, 2026
2 checks passed
@ctoth
ctoth deleted the fix/chardet-frozen-data branch October 30, 2026 02:51
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