[BUG] Windows 安装程序默默地生成了一个破坏性的安装: `kotaemon` 核心永远不会安装,成功检查无法检测到它
作者: viggotw创建于 2026年9月18日更新于 2026年9月18日
标签bug
1. The kotaemon core install never terminates (pip resolver backtracking)
libs/kotaemon/pyproject.toml pins:
"pydantic<=2.10.6",
"fastapi<=0.112.1",
"pandas>=2.2.2,<2.3",
"chromadb<=0.5.16",
"umap-learn==0.5.5",Every current release of LangChain-*, google-genai and protobuf requires newer
pydantic. pip therefore walks the entire release history of each package looking for a
combination that satisfies the pins. Running line 217 by hand:
Python -m pip install git+https://GitHub.com/Cinnamon/[email protected]#subdirectory=libs/kotaemonproduced, in 30+ minutes without terminating:
INFO: This is taking longer than usual. You might need to provide the dependency
resolver with stricter constraints to reduce runtime. ... If you want to abort this
run, press Ctrl + C. <- printed 7 times| Package | Versions tried |
|---|---|
LangChain-OpenAI |
122 |
google-genai |
52 |
LangChain-mistralai |
41 (down to 0.0.1, the oldest that exists) |
LangChain-google-genai |
24 |
gradio |
24 |
LangChain-ollama |
21 |
protobuf |
walked from 7.36 down to 6.33 |
Totals for the run: 532 .whl.metadata probes, 2 actual package downloads, 0 errors. |
|
| This matters for diagnosis: it never fails, it just grinds. Between the tiny metadata | |
| downloads pip is silent for minutes at a time, so on screen it is indistinguishable from | |
| a hang or a crash — users reasonably close the window, which is how the partial install | |
| happens. |
2. The individual pip install calls are not error-checked
scripts/run_windows.bat:217-219:
Python -m pip install git+https://GitHub.com/Cinnamon/kotaemon.git@"%app_version%"#subdirectory=libs/kotaemon
Python -m pip install
…内容来源: Cinnamon/kotaemon