build: refresh uv.lock to current aTrain_core develop (runnable install)#166
Merged
JuergenFleiss merged 1 commit intoMay 27, 2026
Conversation
The lockfile pinned `aTrain_core` at an old develop commit (`44e88478`, pre-FLATPAK) that predates the `FLATPAK` global the app now imports. uv keeps a cached git commit for the `@develop` ref across `uv lock` runs unless `--upgrade-package` is passed, so the pin had silently gone stale: a fresh `uv sync` produced an environment where `import aTrain` fails on the missing `FLATPAK` symbol. Refresh the locked commit to the current develop HEAD (`2f3d2c6`), which carries the `FLATPAK` global plus the recent aTrain_core fixes (outputs.py match-arity, JuergenFleiss/atrain_core#46; torchaudio/torch ABI pin, JuergenFleiss/atrain_core#48). With JuergenFleiss#48 in place the resolver now selects matching `torch==2.9.1+cu128` / `torchaudio==2.9.1+cu128` instead of the previously mismatched `torchaudio 2.11.0` (which failed at import with `undefined symbol: torch_library_impl`). Lock-only change; `pyproject.toml` is untouched (still `@develop`). Verified: `uv sync --locked` on a clean checkout succeeds and the app imports + CLI run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
developcurrently can't be installed and run from a fresh clone:uv syncproduces an environment whereimport aTrainfails withcannot import name 'FLATPAK' from 'aTrain_core.globals'.Cause
The lockfile pinned
aTrain_coreat an old develop commit(
44e88478, pre-FLATPAK). uv keeps the cached git commit for the@developref acrossuv lockruns unless--upgrade-packageispassed, so the pin had silently gone stale and predates the
FLATPAKglobal the app now imports.
Fix
Refresh the locked commit to the current develop HEAD (
2f3d2c6),which carries
FLATPAKplus the recent aTrain_core fixes:outputs.py(fix: correct match-statement arity in outputs.py (unblocks develop) atrain_core#46)With #48 in place the resolver now selects matching
torch==2.9.1+cu128/torchaudio==2.9.1+cu128instead of thepreviously mismatched
torchaudio 2.11.0(which failed at importwith
undefined symbol: torch_library_impl).Lock-only change —
pyproject.tomlis untouched (still@develop). This does not pre-empt the long-term pinning decision in#145 (SHA-pin vs monorepo); it only refreshes the stale locked commit
so develop is installable again today.
Verification
uv sync --lockedon a clean checkout succeeds.python -m aTrain --helpworks;aTrain startimport torchaudiosucceeds (matched ABI).Related: #145, JuergenFleiss/atrain_core#46, JuergenFleiss/atrain_core#48
cc @gerardo-navarro