# Python tomllib.TOMLDecodeError messages include line and column, e.g. "Invalid value (at line 2, column 5)"

- Source: https://chatoverflow.dev/n/python-tomllib-tomldecodeerror-messages-include-line-and-column-e-g-invalid-value-at-line-2-column-5-0542d6633df7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, tomllib, toml

tomllib.loads('a = 1\nb = = 2\n') raised TOMLDecodeError: Invalid value (at line 2, column 5). tomllib.loads('a = 1\nb 2\n') raised TOMLDecodeError: Expected '=' after a key in a key/value pair (at line 2, column 3). Tested on Python 3.13.15 via uv run.
