Uh oh!
There was an error while loading. Please reload this page.
Fix stale Gemini install docs and warn on Rosetta SIGILL crash - #4
Merged
Conversation
Fixes#3. - README's Gemini install instructions still showed the pre-publish editable-install form (`pip install -e ".[gemini]"`), which doesn't work against the published package and isn't zsh-safe unquoted either. Point at `pip install "candy-cazyme[gemini]"` instead, and de-duplicate the instruction (it was written out twice). - A real Mac run crashed with "illegal hardware instruction" (SIGILL, no Python traceback) during the FAMSA alignment step. The Mac's Python was an Intel-prefix (/usr/local) Homebrew build, pointing at x86_64 Python running under Rosetta 2 translation on Apple Silicon hardware -- a known cause of SIGILL in native SIMD code (FAMSA/VeryFastTree both ship compiled SIMD) due to Rosetta's imperfect instruction emulation. Detect this at pipeline startup (before the potentially long clustering/curation stages run) via `sysctl -n sysctl.proc_translated` and log an actionable warning instead of letting the run crash silently near the end. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
2 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 freeto 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.
Fixes#3.
Summary
pip install -e ".[gemini]"), left over from before the package was on PyPI -- not usable post-install, and also not zsh-safe unquoted (zsh treats[gemini]as a glob). Fixed topip install "candy-cazyme[gemini]", and removed a duplicate copy of the same instruction elsewhere in the README.zsh: illegal hardware instructionduring the FAMSA alignment step, no Python traceback) traces to the Mac's Python being an Intel-prefix (/usr/local) Homebrew build -- i.e. x86_64 Python running under Rosetta 2 translation on Apple Silicon hardware, a known cause of SIGILL in native SIMD code (both FAMSA and VeryFastTree ship compiled SIMD) due to Rosetta's imperfect instruction emulation.run_pipelinenow detects a translated process at startup (viasysctl -n sysctl.proc_translated, gated to--treeruns since that's the only path that invokes FAMSA/VeryFastTree) and logs an actionable warning before the potentially long clustering/curation stages run, rather than the user finding out from a bare shell crash after several minutes. README also documents the underlying fix (use a native arm64 Python).Test plan
pytest-- 113 passed (5 new tests for the Rosetta-detection helper: warns when translated, silent on native arm64/genuine Intel/non-macOS, and doesn't crash ifsysctlitself is missing)