fuckingpython.lol

Python error messages, explained

Each page takes one Python error message and shows the code that raises it, what it means and how to fix it. Every example was run on CPython 3.9.6, 3.10.22, 3.11.17, 3.12.15, 3.13.17, 3.14.9 and 3.15.1, and each page shows how every one of those versions words the message.

What is new in Python error messages

Python error messages, by exception

TypeError

AttributeError

ValueError

SyntaxError

IndentationError

TabError

NameError

UnboundLocalError

ModuleNotFoundError

ImportError

IndexError

KeyError

RecursionError

pip

Before Python starts