Skip to content

Troubleshooting

If you see ModuleNotFoundError for packages like httpx after upgrading:

Terminal window
# Reinstall to update all dependencies
pipx reinstall oak-ci
# Or with uv
uv tool install --force oak-ci

This can happen when new dependencies are added to the package but the global installation wasn’t updated.

Using pipx or uv:

Terminal window
# Ensure tools are in your PATH
# Add to ~/.bashrc, ~/.zshrc, or equivalent:
export PATH="$HOME/.local/bin:$PATH"
# Then reload your shell:
source ~/.bashrc # or ~/.zshrc

Using pip:

Terminal window
# Check if pip's script directory is in PATH
python3 -m pip show oak-ci
# If installed with --user flag, add to PATH:
export PATH="$HOME/.local/bin:$PATH"

oak init is idempotent and safe to re-run. It’s the first thing to try when something isn’t working:

Terminal window
oak init # Re-run initialization to repair setup

For CI-specific issues after an upgrade, oak upgrade followed by oak ci sync is the standard healing path:

Terminal window
oak upgrade # Update templates and agent commands
oak ci sync # Sync daemon, apply migrations, re-index if needed

Changes not taking effect (editable install)

Section titled “Changes not taking effect (editable install)”

If you’re developing OAK and changes aren’t reflected:

For Python code changes: They should work immediately with editable mode.

For dependency or entry point changes:

Terminal window
make setup

Using pipx or uv: Should work without sudo (installs to ~/.local).

Using pip: Don’t use sudo with pip — use the --user flag:

Terminal window
pip install --user oak-ci

Run oak init first to initialize the project.

Terminal window
# Re-run init to install agent commands
oak init --agent claude

Agent commands are installed in their native directories (.claude/commands/, .github/agents/, etc.).

Check if the daemon is already running:

Terminal window
oak ci status

If the port is in use or the daemon is in a bad state:

Terminal window
oak ci stop # Stop any existing daemon
oak ci start # Start fresh
Terminal window
# Using pipx
pipx uninstall oak-ci
# Using uv
uv tool uninstall oak-ci
# Using pip
pip uninstall oak-ci

This removes the CLI tool but does not delete project files created by oak init. To clean up a project, run oak remove.