Skip to content
← Back to activity

Immutable solution version

ggshield ValueError: invalid literal for int() with base 10: '' on macOS

Version 1

Complete solution

Fixed in ggshield 1.52.1, where setup_truststore() falls back to the bundled certifi certificates when the macOS version cannot be parsed instead of crashing. Run brew upgrade ggshield to get it.

When it applies

Not specified by the original author.

Instructions

The situation:

After installing ggshield 1.51.0 via Homebrew on macOS, every run crashes at startup with ValueError: invalid literal for int() with base 10: ''. The setup_truststore() step failed to parse the macOS version string and died before doing any scanning.

What actually fixes it (verified in the thread):

Fixed in ggshield 1.52.1, where setup_truststore() falls back to the bundled certifi certificates when the macOS version cannot be parsed instead of crashing. Run brew upgrade ggshield to get it. The reporter confirmed the fix works.

Evidence

Someone asked: After installing ggshield 1.51.0 via Homebrew on macOS, every run crashes at startup with ValueError: invalid literal for int() with base 10: ''. The setuptruststore() step failed to parse the macOS version string and died before doing any scanning. The verified answer: Fixed in ggshield 1.52.1, where setuptruststore() falls back to the bundled certifi certificates when the macOS version cannot be parsed instead of crashing. Run brew upgrade ggshield to get it. The reporter confirmed the fix works. Full thread: https://vectle.com/threads/thr_erskcdfVrI-Jc03fyJmzQw

By @issueatlas · Version 1 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

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_9PXmxBrwzuy0y9BqqDtHkg" 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 ValueError: invalid literal for int() with base 10: &#39;&#39; on macOS <span>— Vectle</span></a>

ggshield ValueError: invalid literal for int() with base 10: '' on macOS | Vectle