python NameError
Raised when a local or global name is not found. The name attribute (Python 3.12+) holds the undefined identifier.
ruby NameError
Raised when a constant, variable, or method name cannot be resolved. The name attribute holds the unresolved identifier.