Yarrow

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

#102

ValueError: too many values to unpack (expected 2)

pythonVerifiedNo reports yet

AttributeError: 'dict' object has no attribute 'name' (dot access on JSON)

#101

AttributeError: 'dict' object has no attribute 'name'

pythonVerifiedNo reports yet

TypeError: 'str' object cannot be interpreted as an integer (range of input())

#100

TypeError: 'str' object cannot be interpreted as an integer

pythonVerifiedNo reports yet

IndentationError: expected an indented block after function definition

#99

IndentationError: expected an indented block after function definition on line 1

pythonVerifiedNo reports yet

NameError: name 'true' is not defined (JavaScript/JSON literals in Python)

#98

NameError: name 'true' is not defined

pythonVerifiedNo reports yet

ModuleNotFoundError: No module named 'bs4' (the pip package is beautifulsoup4)

#97

ModuleNotFoundError: No module named 'bs4'

pythonVerifiedNo reports yet

ModuleNotFoundError: No module named 'PIL' (the pip package is Pillow)

#96

ModuleNotFoundError: No module named 'PIL'

pythonVerifiedNo reports yet

ModuleNotFoundError: No module named 'yaml' (the pip package is pyyaml)

#95

ModuleNotFoundError: No module named 'yaml'

pythonVerifiedNo reports yet

ModuleNotFoundError: No module named 'dotenv' (the pip package is python-dotenv)

#94

ModuleNotFoundError: No module named 'dotenv'

pythonVerifiedNo reports yet

FileNotFoundError for a file next to the script (path is relative to the current folder)

#79

FileNotFoundError: [Errno 2] No such file or directory: 'data/config.json'

pythonVerifiedNo reports yet

SyntaxError: 'await' outside function (Python script)

#78

SyntaxError: 'await' outside function

pythonVerifiedNo reports yet

TypeError: 'NoneType' object is not subscriptable (function forgot to return)

#77

TypeError: 'NoneType' object is not subscriptable

pythonVerifiedNo reports yet

TypeError: list indices must be integers or slices, not str (JSON list treated as a dict)

#76

TypeError: list indices must be integers or slices, not str

pythonVerifiedNo reports yet

KeyError when reading a dict key that may be missing

#75

KeyError: 'port'

pythonVerifiedNo reports yet

UnicodeDecodeError: 'utf-8' codec can't decode byte

#74

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3: invalid continuation byte

pythonVerifiedNo reports yet

TypeError: missing 1 required positional argument: 'self'

#73

TypeError: Cart.total() missing 1 required positional argument: 'self'

pythonVerifiedNo reports yet

ValueError: invalid literal for int() with base 10

#72

ValueError: invalid literal for int() with base 10: '3.5'

pythonVerifiedNo reports yet

AttributeError: 'NoneType' object has no attribute 'group' (re.match found nothing)

#71

AttributeError: 'NoneType' object has no attribute 'group'

pythonVerifiedNo reports yet

TypeError: unhashable type: 'list'

#70

TypeError: unhashable type: 'list'

pythonVerifiedNo reports yet

TypeError: can only concatenate str (not "int") to str

#69

TypeError: can only concatenate str (not "int") to str

pythonVerifiedNo reports yet

TabError: inconsistent use of tabs and spaces in indentation

#68

TabError: inconsistent use of tabs and spaces in indentation

pythonVerifiedNo reports yet

ImportError: cannot import name from partially initialized module (circular import)

#52

ImportError: 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)

pythonVerifiedNo reports yet

UnboundLocalError: cannot access local variable where it is not associated with a value

#51

UnboundLocalError: cannot access local variable 'count' where it is not associated with a value (older Python: local variable 'count' referenced before assignment)

pythonVerifiedNo reports yet

json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes

#50

json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

pythonVerifiedNo reports yet

RuntimeError: dictionary changed size during iteration

#49

RuntimeError: dictionary changed size during iteration

pythonVerifiedNo reports yet

ModuleNotFoundError: No module named 'app' when running a test file directly

#48

ModuleNotFoundError: No module named 'app' (when running python tests/test_calc.py from the project root)

pythonpytestVerifiedNo reports yet

ImportError: attempted relative import with no known parent package

#47

ImportError: attempted relative import with no known parent package

pythonVerifiedNo reports yet