Skip to content

Install from source

Running from source is how you use TRACE on Linux, and how you follow the newest code on any system. One script per platform does the whole install.

You need Python 3.10 or newer – and nothing else. No C compiler, no Visual Studio Build Tools, and on macOS no Homebrew: The Sleuth Kit (pytsk3), libewf and every other forensic engine install as pre-built wheels for Windows, macOS (Apple Silicon and Intel) and Linux. The installers refuse to fall back to compiling, so a missing wheel fails clearly instead of half-way through a C build.

  1. Install Python 3.10 or newer from python.org if you do not have it.

  2. Get the code and run the installer in PowerShell:

    Terminal window
    git clone https://github.com/Gadzhovski/TRACE-Forensic-Toolkit.git
    cd TRACE-Forensic-Toolkit
    powershell -ExecutionPolicy Bypass -File install_windows.ps1
  3. Start TRACE – from any folder, no environment to activate:

    Terminal window
    TRACE.cmd

The installer looks for Python with the py launcher too, newest first, so a machine whose default python is older still installs. Add -Yes to accept every default without questions.

./install.sh --yes / install_windows.ps1 -Yes non-interactive: accept the detected platform and the defaults
TRACE_PYTHON=/path/to/python3.12 ./install.sh use this interpreter rather than the newest one found
$env:TRACE_PYTHON = 'C:\Python312\python.exe' the same on Windows, before running install_windows.ps1
install.log everything the install did, beside the scripts – attach the end of it to an install bug report

The scripts work in their own folder wherever you start them from, and can be run again at any time: a working venv is kept; one whose Python no longer runs, or is older than 3.10, is rebuilt.

Before it says TRACE is installed, the installer checks it: the forensic engines, Qt and libmagic must load, and on Linux every library TRACE’s window needs must be on the system – a missing one is named with the package that holds it. The launchers it writes (./trace, TRACE.cmd) start TRACE with its own Python; activating the venv and running python main.py still works too.

Long steps never scroll: on a terminal, one line shows what is happening now (Downloading pyside6 6.11.2 (175 MB)), and a failing step prints the end of install.log.

In an activated virtual environment:

Terminal window
pip install -r requirements.txt
python main.py

There is one requirements.txt for every platform; Windows-only packages carry environment markers, so the same file is correct everywhere.

Terminal window
git pull
./install.sh # or install_windows.ps1 on Windows

The test suite downloads public forensic images (checked against recorded SHA-256s) and runs in parallel:

Terminal window
python tools/fetch_test_images.py
python -m pytest -n auto --dist loadfile

See Testing and validation for what it covers.