Skip to content

Diagnose import-hook contention

metapathology answers a narrow debugging question:

Which finder handled this import, and did that stop another import hook from running?

It is for Python developers investigating behavior that changes when editable installs, test runners, tracing, runtime type checking, or other import hooks are combined.

pip install metapathology
python -m metapathology your_script.py
python -m metapathology -m pytest tests/

The target runs normally. The report goes to standard error at exit. Metapathology observes and reports; it never supplies a module spec or changes an import result.

Choose the next page

The library API is intended for environments where the CLI wrapper is impractical. Most users do not need it.