[GH-ISSUE #549] Update.sh fails to update with a KeyError: 'args' error #261

Closed
opened 2026-11-04 01:41:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @bscout9956 on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/549

Problem: When issuing a command to update (through update.sh), the update process fails with a KeyError: 'args' error.

Expected Outcome:

The update process goes through smoothly.

Actual Outcome:

Right after Strata is linked and the engine is compiled the setup.py script fails with the following error and traceback:

[127/128] Building CXX object CMakeFi...strata.dir/src/program/generate.cpp.o
/home/blackscout/llm/Strata/src/program/generate.cpp:827:5: warning: ‘int {anonymous}::argmax(const std::vector<float>&)’ defined but not used [-Wunused-function]
  827 | int argmax(const std::vector<float>& v) {
      |     ^~~~~~
[128/128] Linking CXX executable strata
  [ok] engine compiled: /home/blackscout/llm/Strata/engine/strata
Traceback (most recent call last):
  File "/home/blackscout/llm/Strata/setup.py", line 3604, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/blackscout/llm/Strata/setup.py", line 2925, in main
    return update_install(have, a)
  File "/home/blackscout/llm/Strata/setup.py", line 2558, in update_install
    if "--mtp" in cfg["args"][:-1]:
                  ~~~^^^^^^^^
KeyError: 'args'

Additional Information

This happens at the current latest main branch at commit db4f91a. The original installation was at aeb35be and got installed, executed then later upgraded through a manual git pull then a ./update.sh command.

Environment

OS: Arch Linux x86_64
Kernel: Linux <hostname> 7.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 21 Sep 2026 18:51:14 +0000 x86_64 GNU/Linux
CPU: AMD Ryzen 5 5600
GPU: NVIDIA GeForce RTX 3060 12GB
Shell: zsh 5.9.2
OS Python Version: 3.14.7

Originally created by @bscout9956 on GitHub (Oct 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/549 ### Problem: When issuing a command to update (through update.sh), the update process fails with a KeyError: 'args' error. ### Expected Outcome: The update process goes through smoothly. ### Actual Outcome: Right after Strata is linked and the engine is compiled the setup.py script fails with the following error and traceback: ```bash [127/128] Building CXX object CMakeFi...strata.dir/src/program/generate.cpp.o /home/blackscout/llm/Strata/src/program/generate.cpp:827:5: warning: ‘int {anonymous}::argmax(const std::vector<float>&)’ defined but not used [-Wunused-function] 827 | int argmax(const std::vector<float>& v) { | ^~~~~~ [128/128] Linking CXX executable strata [ok] engine compiled: /home/blackscout/llm/Strata/engine/strata Traceback (most recent call last): File "/home/blackscout/llm/Strata/setup.py", line 3604, in <module> sys.exit(main()) ~~~~^^ File "/home/blackscout/llm/Strata/setup.py", line 2925, in main return update_install(have, a) File "/home/blackscout/llm/Strata/setup.py", line 2558, in update_install if "--mtp" in cfg["args"][:-1]: ~~~^^^^^^^^ KeyError: 'args' ``` ### Additional Information This happens at the current latest main branch at commit db4f91a. The original installation was at aeb35be and got installed, executed then later upgraded through a manual git pull then a `./update.sh` command. ### Environment **OS:** Arch Linux x86_64 **Kernel:** `Linux <hostname> 7.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 21 Sep 2026 18:51:14 +0000 x86_64 GNU/Linux` **CPU:** AMD Ryzen 5 5600 **GPU:** NVIDIA GeForce RTX 3060 12GB **Shell:** zsh 5.9.2 **OS Python Version:** 3.14.7
Author
Owner

@Niko1221 commented on GitHub (Oct 3, 2026):

Thanks for the clear traceback. Setup treated every strata-*.json in the Strata folder as a model config. One file there has no "args", so it wasn't written by setup (maybe it's your own file or one left over from another tool). Fixed in 0.1.38: such a file is skipped with a warning that names it, and the update goes on. Until then, you can get past it by moving that file out of the folder, or renaming it so its name doesn't start with strata-.

<!-- gh-comment-id:5964029228 --> @Niko1221 commented on GitHub (Oct 3, 2026): Thanks for the clear traceback. Setup treated every `strata-*.json` in the Strata folder as a model config. One file there has no `"args"`, so it wasn't written by setup (maybe it's your own file or one left over from another tool). **Fixed in 0.1.38**: such a file is skipped with a warning that names it, and the update goes on. Until then, you can get past it by moving that file out of the folder, or renaming it so its name doesn't start with `strata-`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#261
No description provided.