Skip to content

fix: add missing runtime dependencies in pyproject.toml#45

Merged
bdqnghi merged 1 commit intoFSoft-AI4Code:mainfrom
zhalice2011:fix/missing-dependencies
Mar 16, 2026
Merged

fix: add missing runtime dependencies in pyproject.toml#45
bdqnghi merged 1 commit intoFSoft-AI4Code:mainfrom
zhalice2011:fix/missing-dependencies

Conversation

@zhalice2011
Copy link

Problem

When installing CodeWiki via pip install -e . (using only pyproject.toml declared dependencies), running codewiki generate fails with:

ModuleNotFoundError: No module named 'colorama'

Traceback:

File "codewiki/cli/adapters/doc_generator.py", line 75, in _configure_backend_logging
    from codewiki.src.be.dependency_analyzer.utils.logging_config import ColoredFormatter
File "codewiki/src/be/dependency_analyzer/utils/logging_config.py", line 29, in <module>
    from colorama import Fore, Style, init
ModuleNotFoundError: No module named 'colorama'

Root Cause

Several packages are imported in the source code and listed in requirements.txt, but not declared in pyproject.toml [project.dependencies]. This means pip install -e . or pip install codewiki will not install them automatically.

Missing packages

Package Used in Purpose
colorama dependency_analyzer/utils/logging_config.py Colored terminal output
fastapi src/fe/web_app.py, src/fe/routes.py Web application framework
uvicorn src/fe/web_app.py ASGI server
python-multipart Required by FastAPI Form data parsing
logfire src/be/agent_orchestrator.py Monitoring (currently commented out but infrastructure present)

Solution

Added all 5 missing runtime dependencies to pyproject.toml [project.dependencies].

Test plan

  • pip install -e . installs all required packages without manual intervention
  • codewiki config validate passes
  • codewiki generate --verbose no longer raises ModuleNotFoundError

Several packages (colorama, fastapi, uvicorn, python-multipart, logfire)
are imported in the source code but not declared in pyproject.toml,
causing ModuleNotFoundError when installed via pip install.
@bdqnghi bdqnghi merged commit c46a64b into FSoft-AI4Code:main Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants