Skip to content

Instantly share code, notes, and snippets.

@ikks
Last active August 21, 2025 01:59
Show Gist options
  • Save ikks/e902b9a56765e1b2336f8bc7e05c665e to your computer and use it in GitHub Desktop.
Save ikks/e902b9a56765e1b2336f8bc7e05c665e to your computer and use it in GitHub Desktop.
SSL Error for python scripts on Windows when fetching from https

Environment/Versions

  • GIMP version number: 3.0.4
  • Package: Installer from gimp.org
  • Operating System: Windows
  • (if Linux) Display system:

Description of the bug

When running this script from the Gimp3 python console

import urllib.request, json
with urllib.request.urlopen("https://raw.githubusercontent.com/Haidra-Org/AI-Horde-image-model-reference/refs/heads/main/stable_diffusion.json") as url:
     data = json.load(url)
     print(len(data))

I get ssl error

Python traceback

Reproduction

Is the bug reproducible? Always, another user [https://discord.com/channels/401713534116823043/1406069498779402300](from Discord) hit the error too in Gimp 3.1.2

Reproduction steps:

  1. Open python Console
  2. Copy/Paste the snippet above and execute
  3. instead of getting a number, the length of the answer, it gives an error

Expected result: print in the console a number

Actual result: Traceback complaining about ssl

Additional information

In linux works flawlessly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment