Skip to content

Latest commit

 

History

History
169 lines (123 loc) · 10.3 KB

TROUBLESHOOTING.md

File metadata and controls

169 lines (123 loc) · 10.3 KB

Installation and launch troubleshooting

Illustrated user guide · Runtime setup · Compatibility

Start with the stage that failed. Adding a repository, installing a package, preparing Python, opening the window and completing an analysis are separate steps.

Symptom First check
Repository added, no packages Raw repo.json address, selected repository and search filter
Package installed, no action PCB Editor, API enabled, environment preparation finished
Every IPC package fails at pythonw.exe -m venv KiCad's configured host interpreter exists on this computer; see the Windows interpreter check below
Action reports JSON or environment error Capture the actual error; recreate the environment only after correcting dependencies
Tool opens on an unexpected project Launch from the saved project's PCB Editor; check multiple-instance notes below
Analysis is partial or empty Selected scope, source/sink connectivity, filled zones and required stackup/models

Repository added but packages are missing

Add this exact repository descriptor in KiCad's Plugin and Content Manager (PCM):

https://raw.githubusercontent.com/wayri/WayriCAD/develop/pcm/repo.json

Select WayriCAD Plugin Repository in PCM's repository dropdown and clear the search field. pkgs.json, a plugin's metadata.json, and GitHub /blob/ pages are not repository descriptors. Refresh the repository after updating its URL.

From a source checkout, run this read-only network diagnostic:

python tools/diagnose_pcm.py

It reports endpoint/JSON/hash failures and the number of compatible packages. Use --platform windows, linux, or macos, and --kicad-version 10.0.5 to inspect compatibility rules. A successful check verifies repository discovery, not Python environment creation or every plugin feature.

Our v3.1.0 published feed returned 21 compatible packages during the September 2026 investigation. It omitted schema_version: 2; the corrected builder includes it and a package-feed digest. KiCad selects its validator using that integer, not $schema. The previous feed also passed v1 validation, so that omission alone did not explain every missing-package report.

Installed package has no action, or clicking it fails

KiCad 10 IPC actions appear in the PCB Editor after their Python environment finishes preparing. Enable the API under Preferences > Plugins, inspect the editor's warning panel, and use Recreate Plugin Environment on a failed plugin after correcting its dependency/interpreter error. Repository discovery and plugin environment setup are separate steps.

Do not share API tokens when reporting errors. Include KiCad version, operating system, plugin name, and the error text with private project paths removed.

Current packages include local help.html and images. Start with the installed tool's Help action or open that file directly. Standalone launches may request a project; toolbar launches use their originating editor's context. Engines that read saved files cannot include unsaved editor changes.

Windows: all IPC environments fail before the action appears

An error launching pythonw.exe -m venv --system-site-packages ... occurs in KiCad's environment creation, before WayriCAD's entry point runs. Fix the Python interpreter under Preferences > Plugins first. Reinstalling each plugin or changing its private dependency runtime cannot repair this stage.

Select an existing executable from the intended KiCad installation. All-user installations usually place it under %ProgramFiles%/KiCad/10.0/bin/; per-user installations use %LOCALAPPDATA%/Programs/KiCad/10.0/bin/. A copied setting may refer to another Windows user's profile, an old version or a removed install. Use the full executable path without stored quotation marks or command-line arguments. Prefer the bundled pythonw.exe when present. If it is missing but the adjacent python.exe is functional, select python.exe; it may show a console window. If neither is functional, repair the KiCad installation.

From a source checkout, inspect the host setting and installed candidates:

python tools/check_kicad_python.py --version 10.0
python tools/check_kicad_python.py --version 10.0 --json

The diagnostic reads api.interpreter_path from kicad_common.json, checks the executable, and probes Python's venv and ensurepip imports. It looks in the current user's installation, Program Files, the configured installation and the PCB Editor's PATH location. It honors KICAD_CONFIG_HOME as the settings base and appends the version; use --config-file when KiCad was started with different environment variables. The report lists inherited PYTHONHOME and PYTHONPATH overrides by name for review. Isolated probes do not establish how a separately launched KiCad process inherits those overrides.

For a custom installation or multiple installations, choose the intended root:

python tools/check_kicad_python.py --kicad-root "D:/Applications/KiCad/10.0"

To prepare a concrete setting change, preview an exact interpreter. Then close KiCad Manager and all KiCad editors before applying:

python tools/check_kicad_python.py --interpreter "C:/Program Files/KiCad/10.0/bin/python.exe"
python tools/check_kicad_python.py --interpreter "C:/Program Files/KiCad/10.0/bin/python.exe" --apply

The default command is read-only. --apply changes only api.interpreter_path, preserves all other settings and creates an exact-byte backup beside kicad_common.json. It refuses malformed settings JSON, an unavailable interpreter, a running KiCad process or settings changed since inspection. No plugin is installed and no existing environment is removed. To undo the change, close KiCad and restore the printed backup file over the configuration file.

Restart KiCad after a repair. Use Recreate Plugin Environment for previously failed packages, and wait for their dependency installation to finish. A passing interpreter check proves only executable/stdlib prerequisites; actual venv creation, package downloads, toolbar discovery and native plugin launches remain separate checks. An API-disabled report also requires enabling the API in Plugins preferences; the helper preserves that setting.

Analytics Studio stalls during startup on macOS

The 3.1.1 startup fix removes an unnecessary reverse-DNS lookup of the numeric loopback address. The previous lookup could delay the readiness handshake past its deadline even in headless mode. Update the package if an older launcher log stops inside socket.getfqdn / HTTPServer.server_bind. This failure does not require a longer timeout or a network connection for the local UI.

Windows: two open editors and an unreachable second instance

Quick SI and RLC users should also update to 4.0.0 for the native window shutdown fix tested on Windows KiCad 10.0.6. The launcher initializes the native saved-board reader before creating wx and reuses the loaded PCB; it rejects a source change during preparation.

We reproduced a KiCad 10.0.5 Windows IPC endpoint collision with two disposable PCB editors sharing the same temporary directory. Both server logs advertised the same api.sock endpoint; the second editor could not be addressed independently. The corrected WayriCAD client uses the originating action's socket and token and refuses to fall back to another board, but cannot repair an already-bound KiCad server.

The same symptom is the provided kicad_token did not match this KiCad instance's token. WayriCAD captures the socket and token together before preparing its runtime, preserves that pair through the child-process handoff, and authenticates before loading live board operations. It does not share a connection between plugin processes, scan for another editor, or retry with an empty token. A collision now explains the separate-namespace recovery instead of exposing only the raw token error. This does not repair an upstream server endpoint collision.

Open each project through this source-checkout helper to give each Windows editor its own temporary IPC namespace:

python tools/open_kicad.py "C:/projects/board/board.kicad_pcb"

Supply --pcbnew "C:/Program Files/KiCad/10.0/bin/pcbnew.exe" if needed. The helper preserves your normal KiCad configuration, library variables and project files. It waits for its editor to close and then removes its own temporary directory. Interrupting the helper leaves the editor running and retains its temporary files. It never modifies or stops existing editors. On Linux and macOS it launches the editor without the Windows temporary-directory workaround.

Two concurrent Windows editors with separate namespaces passed live socket/token project-identity checks and five fresh connections per editor. This is a tested workaround, not an upstream KiCad fix or proof that every KiCad version has the same behavior.

Maintainer reproduction commands (disposable projects and configuration):

python tools/validate_multi_instance.py
python tools/validate_multi_instance.py --separate-temp

The first reproduces the shared-namespace failure on the tested version; the second verifies the workaround. Only processes created by this harness are stopped. Detailed results remain under .validation/multi-instance/ and should not be committed with API logs.

Installation paths

The source installer honors redirected Windows Documents, macOS Documents and Linux XDG_DATA_HOME. KICAD_DOCUMENTS_HOME overrides the base documents/data directory; KiCad appends KiCad/<version>/plugins. --destination can explicitly select the complete plugin directory. Preview before applying:

python tools/install_suite.py
python tools/install_suite.py --apply

Primary references

See native runtime setup for corporate mirrors, proxies and offline wheels.