fix(tirith): detect Termux and skip binary spawn gracefully - #26282
Closed
ygd58 wants to merge 1 commit into
Closed
Conversation
On Termux (Android), the tirith binary is dynamically linked against /lib/ld-linux-aarch64.so.1 which does not exist under Bionic libc. The binary file exists but subprocess.run() fails with ENOENT because the ELF interpreter cannot be found (issue NousResearch#26275). Fix: - _get_platform_triple() detects Termux via PREFIX env var or TERMUX_VERSION and returns None to skip binary download/spawn - When tirith_path is None on Termux, log a debug message with guidance (use proot-distro Ubuntu) instead of a WARNING Fixes NousResearch#26275
ygd58
force-pushed
the
fix/tirith-termux-fallback
branch
from
May 15, 2026 10:23
acba8bf to
f08ea96
Compare
Collaborator
3 tasks
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.
Problem
On Termux (Android), the tirith binary is dynamically linked against
/lib/ld-linux-aarch64.so.1which does not exist under Bionic libc. The binary file exists but spawn fails with ENOENT.Fix
PREFIXenv var orTERMUX_VERSIONNonefrom_get_platform_triple()to skip binary download/spawnFixes #26275