#1728·ScoutSuite

Python 3.13 and __main__.py L257: Initialization failure: No module named 'pkg_resources'

Author: rbeedeCreated Apr 16, 2026Updated Apr 16, 2026
Labelsbugpotential
ERROR __main__.py L257: Initialization failure: No module named 'pkg_resources'

Ubuntu 25.10 Python 3.13.7 Google Cloud SDK 565.0.0 Scout Suite 5.14.0

Same error whether I pip install scoutsuite or git clone the current repo version.

Fix

bash
pip install -r requirements.txt
pip install \
  "google-cloud-monitoring>=2.0.0" \
  "google-cloud-kms>=2.0.0" \
  "google-api-core>=2.11.0" \
  "protobuf>=3.20.3,<4.0.0" \
  setuptools

So the requirements.txt probably needs updated for Python 3.13.