n8n · tool · fg-0347
n8n Python Code node fails after 2.0 because _input and dot access no longer work
Python code that reads _input fails after the upgrade
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
Cause
n8n 2.0 removed the Pyodide Python node. Native Python runs on task runners, exposes only _items and _item, and accepts bracket access only.
Fix
Rewrite Python code to use _items or _item with bracket notation, and run the n8nio/runners sidecar.
Apply
for item in _items:
item["json"]["total"] = item["json"]["qty"] * item["json"]["price"]
return _itemsAffects: n8n 2.0 and later; native Python available from 1.111.0
Sources
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp