Skip to content

Bug: No module named 'fcntl' on Windows #62

Open

Description

@antsehe-dev

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:

Activity

  1. lvxiang15 commented on Jun 30, 2026

    @lvxiang15

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

  2. aboood40091 commented on Aug 28, 2026

    @aboood40091

    依赖包 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. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions