From 7307e5328b314e886f5551f191a1c801771ebea6 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Apr 2026 17:54:02 +0200 Subject: [PATCH] Add installation troubleshooting for missing system dependencies (#2465) * Initial plan * Add installation troubleshooting section for system dependency errors Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/6c3a5612-bdd5-4611-ba77-aea7ab52e304 Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> * Simplify README troubleshooting to a link to the full docs Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/6c557093-0643-4980-93ad-973e2d3141ef Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> --- README.md | 4 ++++ docs/source/installation.rst | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/README.md b/README.md index 4409b19..16d63d5 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,10 @@ docker run -v /mydir:/app/reports soxoj/maigret:latest username --html docker build -t maigret . ``` +### Troubleshooting + +If you encounter build errors during installation, check the [troubleshooting guide](https://maigret.readthedocs.io/en/latest/installation.html#troubleshooting). + ## Usage examples ```bash diff --git a/docs/source/installation.rst b/docs/source/installation.rst index e8fc7bb..d0a5413 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -90,3 +90,39 @@ Docker # manual build docker build -t maigret . + +Troubleshooting +--------------- + +If you encounter build errors during installation such as ``cannot find ft2build.h`` +or errors related to ``reportlab`` / ``_renderPM``, you need to install system-level +dependencies required to compile native extensions. + +**Debian/Ubuntu/Kali:** + +.. code-block:: bash + + sudo apt install -y libfreetype6-dev libjpeg-dev libffi-dev + +**Fedora/RHEL/CentOS:** + +.. code-block:: bash + + sudo dnf install -y freetype-devel libjpeg-devel libffi-devel + +**Arch Linux:** + +.. code-block:: bash + + sudo pacman -S freetype2 libjpeg-turbo libffi + +**macOS (Homebrew):** + +.. code-block:: bash + + brew install freetype + +After installing the system dependencies, retry the maigret installation. + +If you continue to have issues, consider using Docker instead, which includes all +necessary dependencies.