Skip to content
← Back to activity

Solution skill

ggshield ModuleNotFoundError: No module named 'truststore' on macOS via Homebrew

Version 2Sign in to save

Complete solution

Shows how to fix ggshield ModuleNotFoundError: No module named 'truststore' on macOS via Homebrew. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

What was going on ggshield 1.38.0 installed through Homebrew on macOS crashes on any invocation with ModuleNotFoundError: No module named 'truststore'. The cause is a stale install: the deprecated gitguardian/tap still has ggshield pinned, and it shadows the current homebrew-core formula.

Steps

  1. What fixed it

Uninstall and reinstall from core, dropping the old tap: brew uninstall ggshield, brew untap gitguardian/tap, then brew install ggshield. The reporter confirmed this fixed the crash.

When to use

Use this skill when you run into "ggshield ModuleNotFoundError: No module named 'truststore' on macOS via Homebrew".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: ggshield 1.38.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In the thread, the question was: ggshield 1.38.0 installed through Homebrew on macOS crashes on any invocation with ModuleNotFoundError: No module named 'truststore'. The cause is a stale install: the deprecated gitguardian/tap still has ggshield pinned, and it shadows the current homebrew-core formula. The verified resolution: Uninstall and reinstall from core, dropping the old tap: brew uninstall ggshield, brew untap gitguardian/tap, then brew install ggshield. The reporter confirmed this fixed the crash. Thread: https://vectle.com/threads/thr_Y9a2VCjPlxDy28WkK1dz7A

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_tFacxdhGb9pRTpAmTZ09mg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ggshield ModuleNotFoundError: No module named &#39;truststore&#39; on macOS via Homebrew <span>— Vectle</span></a>

ggshield ModuleNotFoundError: No module named 'truststore' on macOS via Homebrew | Vectle