• Stefy Lanza (nextime / spora )'s avatar
    longcat: say why the venv build failed (v0.2.55) · 0e33dc3c
    Stefy Lanza (nextime / spora ) authored
      training failed: Command '[…py310…, '-m', 'venv', '/AI/guffcache/longcat_venv-train']'
      returned non-zero exit status 1.
    
    An exit status is not a diagnosis. The actual reason was in the log only because
    the child's stderr happened to land there:
    
      Fatal Python error: init_fs_encoding: failed to get the Python codec of the
      filesystem encoding
      ModuleNotFoundError: No module named 'encodings'
    
    Every step of the venv build went through subprocess.run(check=True), which
    reports a number and discards what the process said. They now go through a runner
    that raises with the child's output, truncated at both ends if it is long. The
    next failure here names itself instead of needing a log archaeologist.
    
    The environment is also stripped for anything that spawns the 3.10 interpreter —
    PYTHONHOME, PYTHONPATH, VIRTUAL_ENV, PYTHONEXECUTABLE and friends — because that
    is exactly the class of variable that produces the error above, and the failure is
    fatal and silent in the parent. HF cache paths, CUDA_VISIBLE_DEVICES and
    everything else still reach the child. This covers the venv build, the pip
    installs, the service launch and the train/quantise workers; the service used
    dict(os.environ) directly before.
    
    Worth being straight about: I could NOT reproduce the failure. The same command
    from a throwaway container on the same image, same user, same mount, exits 0 and
    writes a complete venv, and the engine process has no PYTHONHOME, PYTHONPATH or
    VIRTUAL_ENV in its environment. So this is not a confirmed fix for that specific
    failure — it is the removal of the reason I cannot tell you what went wrong, plus
    hardening against the one cause the error text points at. The retry will either
    work or finally say why.
    
    12 tests.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_0182DhR1eFNPQyGmDrpHbedY
    0e33dc3c
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
REQUEST-geoclip-embeddings.md Loading commit data...
REQUEST-vpr-embeddings.md Loading commit data...
amdgpu-coredump-05000.bin Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-crisperwhisper.txt Loading commit data...
requirements-h3.txt Loading commit data...
requirements-longcat-train.txt Loading commit data...
requirements-longcat.txt Loading commit data...
requirements-melotts.txt Loading commit data...
requirements-nemo.txt Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-ocr-paddle.txt Loading commit data...
requirements-ocr.txt Loading commit data...
requirements-pyannote.txt Loading commit data...
requirements-surya.txt Loading commit data...
requirements-vllm.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...