Skip to content

Troubleshooting

Start with archvow doctor: it checks Python, the archvow command and its version, Git and the hook, the template and its tools (Java, PySpark, ruff, pytest...), and prints the fix for each problem. If archvow itself does not start, run python3 -m archvow doctor.

archvow: command not found

pip installed the command in a folder that is not on your PATH (it says which, in a warning). Either add it (export PATH="$HOME/.local/bin:$PATH" on Linux, in ~/.bashrc), or run archvow through Python: python3 -m archvow ....

ModuleNotFoundError: No module named 'archvow', or an old version runs

Two installations, or the command points to a folder that no longer exists (an editable install from a deleted clone):

python3 -m pip uninstall -y archvow         # repeat until pip says it is not installed
python3 -m pip install archvow==<version>
hash -r                                     # forget the old path of the command in this shell
archvow --version

The Git hook does not run

Git uses .githooks/ only once per clone: git config core.hooksPath .githooks (-a git_hooks=pre-commit: pre-commit install). Check that .githooks/pre-commit is executable (chmod +x, then commit: Git keeps the bit; on Windows, git add --chmod=+x .githooks/pre-commit). Never commit with --no-verify: the CI runs the same checks.

unknown template 'acme-pyspark' (ARCH009)

The project uses a company template whose pack is not in .archvow/packs/ (its copy was not committed). The architect runs, once, archvow pack add <the pack's folder> and commits .archvow/packs/: from then on every clone and the CI find it (Packs). Until then nothing else is checked: without its template, the errors would be wrong (a generated dags/ file reported as ARCH015, say).

ARCH015 on a file archvow generated (dags/...)

The folders where the template itself writes Python files are always allowed, and a company template's allowed_paths adds to the base's. An ARCH015 on such a file means the template was not found: see the entry above.

ARCH012: the template version differs

archvow was upgraded, the project was not yet: archvow init <package> --force, review git diff, commit (Upgrading). Until then it is only a warning.

ruff fails on code that is not mine

Legacy code, when adopting archvow: list it in extend-exclude of ruff.toml, by name, until it is migrated (Adopting an existing project). The generated specs are already excluded (.archvow).

ARCH023 on an import of my own code

A module next to the importing file (import helpers with helpers.py beside it) is recognised as local. A module elsewhere, imported by its bare name, looks like a third-party package: import it through the package (from my_pipeline.p0_common import helpers); in legacy scripts, archvow freeze accepts it until they are migrated.

ARCH013 "cannot be parsed" on code that runs

archvow reads the code with the Python it runs on. Code written for a newer Python (for instance except A, B: without parentheses, Python 3.14) cannot be read by an older one: the message then names both versions, from the project's requires-python in pyproject.toml, and archvow doctor warns. Install archvow in a Python that matches the project and run it from there.

Spark: Python in worker has different version (PYSPARK_PYTHON)

The driver and the executors use different Pythons. Point both at the same one:

export PYSPARK_PYTHON=python3.12 PYSPARK_DRIVER_PYTHON=python3.12

The tests need Java 17 (java -version; PySpark 3.4 and 3.5 also run on Java 11, 4.0 needs 17). The pinned PySpark supports Pythons up to a ceiling: PySpark 3.5 up to 3.12, 4.0 up to 3.13.

Spark: bind / Cannot assign requested address on a laptop

Spark cannot bind its driver to the machine's network name (a VPN, several networks). Run it on the local address:

export SPARK_LOCAL_IP=127.0.0.1

The template's spark component sets spark.driver.bindAddress and spark.driver.host to 127.0.0.1 when the master is local[*], so projects whose get_spark_session follows its spec do not need it.

./entrypoint.sh --package fails

The wheel is built with pip wheel, in an isolated environment first, then with the build tools already installed (offline). Choose the Python with PYTHON=python3.12 ./entrypoint.sh --package, and install the build tools in it if you are offline: python3.12 -m pip install setuptools wheel.

FastAPI: uvicorn fails with ImportError from websockets (or httptools)

uvicorn loads the websockets and httptools packages when they are installed, and this one is too old or too new for it - usually because the Python environment belongs to another project (an activated virtualenv: deactivate). make run starts without websockets (--ws none); when you start uvicorn yourself, add --ws none (and --http h11 for httptools), or update the package (python3.12 -m pip install -U websockets). Best: install the project's own requirements in a clean environment.

FastAPI: curl localhost:8000 or a test of the running service fails behind a proxy

A company proxy in http_proxy also catches requests to your own machine. Add --noproxy localhost to curl, or set no_proxy=localhost,127.0.0.1.

Applying an archvow patch: git am stopped halfway

git am --abort        # back to where you were
git status            # must be clean: commit or stash your own changes first
git am archvow-<old>-to-<new>.patch

Patches apply in order, each on the version before it.

An AI assistant says it is not approved

It is doing what AGENTS.md says. If the project should allow it, an architect approves it (archvow init <package> --force -a ai_tools=<the complete list>, then commit). If it runs inside another tool's window (an agent in JetBrains AI chat, say), it is approved under its own name (AI assistants).

archvow stops inside my AI agent (ARCH051, ARCH052)

The agent runs outside a sandbox, or in YOLO mode. Start it again as the message's fix: says (Claude Code: /sandbox, without --dangerously-skip-permissions; on Windows, inside WSL2). archvow doctor, run by the agent or by you, shows what archvow sees. Seen as an agent while you type in your own terminal? A variable says so: AGENT or AI_AGENT set in your shell, for instance (Agent security).

archvow stops my AI agent with ARCH054

The agent ran a command that decides or changes the spec (decision make, component add...): only a person runs those. Run the command it gives in your own terminal (Agent security).

My commit is refused with ARCH053

A file of the commit says an agent wrote it (@assisted <tool>), and that agent's last run here was stopped by archvow, or it never ran archvow here (mode strict). Let the agent run archvow check protected, then commit again (Agent security).

The arrows print ^[[D in an archvow question

Line editing comes from Python's readline module, which archvow loads before asking. If ^[[D still appears, this Python has no readline (some custom builds): use Backspace, Ctrl+W (the last word) or Ctrl+U (the whole line), or install a Python with it (python.org, Homebrew). On Windows the console edits the line itself.

Tab completes nothing

  • Run archvow completion <your shell> --install once more: it says which startup file loads the script, and adds the line if it is missing. Then open a new terminal.
  • Check it ran: type _archvow (zsh, bash) or Get-Command _ArchvowRun (PowerShell).
  • zsh: the line is in ~/.zshrc (not ~/.zprofile).
  • bash on macOS: Terminal opens login shells, which read ~/.bash_profile, not ~/.bashrc.
  • archvow __complete zsh "archvow sp" prints what Tab would offer. Nothing printed: the archvow command found first is an old one (archvow --version).

Ctrl+C or Ctrl+D during a question

Both stop archvow, without a traceback (exit code 130), like q. In specify, the answers given before are kept and the specs follow them; archvow show <component> lists what is still open. init writes nothing until every question is answered.

An error names something I cannot find

archvow show <name> (a function, a class, a column, a ticket, a business example...) lists where it is: the vows, the code (defined, used), the tests and their marks, the business examples, the briefs, the template, and the problems of archvow check that name it, each with its file and line. Nothing found: it gives the close names (a typo). Whole words only; --json gives every place.

A business example fails, or ARCH055 shows after opening a CSV

archvow show <component> shows, under Examples, the rows or lines where actual/ (what the test wrote) differs from expected/: fix the code, never expected/. ARCH055 right after opening a CSV in Excel: it was saved again (a BOM, ;, 5,00): git checkout -- tests/examples/..., and export "CSV UTF-8" when a file really must change.

See what archvow does (slow command, something skipped)

Add -v anywhere on the line (archvow check -v): archvow prints, on stderr, each phase and how long it took - the spec loaded, each check step, the views written, the agent gate, the exit code. -vv adds each git call and every error archvow caught and went on from (with its traceback). In a hook or in CI, set ARCHVOW_LOG=info (or debug) instead; ARCHVOW_LOG_FILE=archvow.log appends the same records as JSON lines. The log never holds an answer, a name or a secret, and never goes to stdout, so --json output stays clean.

internal error (a bug) and exit code 70

archvow met an error it did not expect. It wrote a report in ~/.cache/archvow/ (the line says which file): version, Python, system, the command with its values masked, the traceback and the last log records - nothing from your project. Send that file with the command you ran.

is changing the spec of this project: wait for it to finish

Another archvow (the IDE plugin, another terminal) is writing the spec; archvow waited 10 seconds. Run the command again. If no archvow is running (a machine that crashed, a copy of the folder), delete .archvow/write.local (it is local, never committed).

A feature folder has no <feature>.vow

The feature's vow was deleted (a bad merge, a wrong git checkout): archvow still reads its components, but the feature has no description any more, and check reports ARCH050. Restore it with the command the message gives (git checkout -- .archvow/features/<feature>/<feature>.vow), or archvow feature add <feature> -d "..." to write it again. A component's vow deleted by mistake is the component gone: git checkout -- .archvow/features/<feature>/components/<id>.vow brings it back.

Something else

archvow <command> --help lists every option with examples. Every error message names what to do next; if one does not, that is a bug: report it with the command and its output.