CodeWiki icon indicating copy to clipboard operation
CodeWiki copied to clipboard

Bug: `No module named 'fcntl'` on Windows

Open antsehe-dev opened this issue 5 months ago • 2 comments

Bug: No module named 'fcntl' on Windows

Environment

  • OS: Windows
  • Shell: PowerShell
  • CodeWiki version: latest (installed via pip install git+https://github.com/FSoft-AI4Code/CodeWiki.git)
  • Python version: (add yours with python --version)

Steps to reproduce

  1. Install CodeWiki on Windows
  2. Configure with codewiki config set --provider claude-code --main-model claude-sonnet-4-6 --cluster-model claude-sonnet-4-6
  3. Navigate to a local repository
  4. Run codewiki generate

Expected behavior Documentation is generated successfully.

Actual behavior The process fails at step [1/5] Dependency Analysis with the following error:

antsehe-dev avatar Jun 08 '26 10:06 antsehe-dev

依赖包 caw 的 storage.py 顶层 import fcntl,只用于 JsonlWriter.append 里的文件锁(第 29 行 fcntl.flock)。fcntl 是 POSIX 专有,Windows 上根本没有,所以模块一加载就崩。 让AI修复一下就好了

lvxiang15 avatar Jun 30 '26 06:06 lvxiang15

依赖包 caw 的 storage.py 顶层 import fcntl,只用于 JsonlWriter.append 里的文件锁(第 29 行 fcntl.flock)。fcntl 是 POSIX 专有,Windows 上根本没有,所以模块一加载就崩。 让AI修复一下就好了

That's not the only issue you'll face when trying to use caw (Original repo: https://github.com/zzjas/caw, the version CodeWiki uses: https://github.com/anhnh2002/caw/tree/fix/codex-exec-robustness) on Windows. The repository as a whole makes many assumptions that it will only ever run on POSIX, unfortunately. :/

aboood40091 avatar Aug 28 '26 14:08 aboood40091