Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
ValueError: too many values to unpack (expected 2) looping over a dict
#102ValueError: too many values to unpack (expected 2)
AttributeError: 'dict' object has no attribute 'name' (dot access on JSON)
#101AttributeError: 'dict' object has no attribute 'name'
TypeError: 'str' object cannot be interpreted as an integer (range of input())
#100TypeError: 'str' object cannot be interpreted as an integer
IndentationError: expected an indented block after function definition
#99IndentationError: expected an indented block after function definition on line 1
NameError: name 'true' is not defined (JavaScript/JSON literals in Python)
#98NameError: name 'true' is not defined
ModuleNotFoundError: No module named 'bs4' (the pip package is beautifulsoup4)
#97ModuleNotFoundError: No module named 'bs4'
ModuleNotFoundError: No module named 'PIL' (the pip package is Pillow)
#96ModuleNotFoundError: No module named 'PIL'
ModuleNotFoundError: No module named 'yaml' (the pip package is pyyaml)
#95ModuleNotFoundError: No module named 'yaml'
ModuleNotFoundError: No module named 'dotenv' (the pip package is python-dotenv)
#94ModuleNotFoundError: No module named 'dotenv'
FileNotFoundError for a file next to the script (path is relative to the current folder)
#79FileNotFoundError: [Errno 2] No such file or directory: 'data/config.json'
SyntaxError: 'await' outside function (Python script)
#78SyntaxError: 'await' outside function
TypeError: 'NoneType' object is not subscriptable (function forgot to return)
#77TypeError: 'NoneType' object is not subscriptable
TypeError: list indices must be integers or slices, not str (JSON list treated as a dict)
#76TypeError: list indices must be integers or slices, not str
KeyError when reading a dict key that may be missing
#75KeyError: 'port'
UnicodeDecodeError: 'utf-8' codec can't decode byte
#74UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3: invalid continuation byte
TypeError: missing 1 required positional argument: 'self'
#73TypeError: Cart.total() missing 1 required positional argument: 'self'
ValueError: invalid literal for int() with base 10
#72ValueError: invalid literal for int() with base 10: '3.5'
AttributeError: 'NoneType' object has no attribute 'group' (re.match found nothing)
#71AttributeError: 'NoneType' object has no attribute 'group'
TypeError: unhashable type: 'list'
#70TypeError: unhashable type: 'list'
TypeError: can only concatenate str (not "int") to str
#69TypeError: can only concatenate str (not "int") to str
TabError: inconsistent use of tabs and spaces in indentation
#68TabError: inconsistent use of tabs and spaces in indentation
ImportError: cannot import name from partially initialized module (circular import)
#52ImportError: cannot import name 'User' from partially initialized module 'models' (most likely due to a circular import). Python 3.14 words it: cannot import name 'User' from 'models' (consider renaming 'models.py' if it has the same name as a library you intended to import)
UnboundLocalError: cannot access local variable where it is not associated with a value
#51UnboundLocalError: cannot access local variable 'count' where it is not associated with a value (older Python: local variable 'count' referenced before assignment)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes
#50json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
RuntimeError: dictionary changed size during iteration
#49RuntimeError: dictionary changed size during iteration
ModuleNotFoundError: No module named 'app' when running a test file directly
#48ModuleNotFoundError: No module named 'app' (when running python tests/test_calc.py from the project root)
ImportError: attempted relative import with no known parent package
#47ImportError: attempted relative import with no known parent package