First time here? Check out the FAQ!
answered 11 years ago
Confirmed, this is now Trac #14578
PS: Your grid() method refers to the undeclared n, this is a bug in your code. But not the reason for the ValueError.