<div dir="ltr"><div><div><div><div><div><div><div>Package: python-scipy<br></div>Version: 0.18.1-2<br><br></div><div>I was running a program under the debugger pdb, and a bug generated this message:<br></div><br>(Pdb) n<br>TypeError: TypeErro...0, 1).",)<br>> /usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py(212)_root_hybr()<br>-> shape, dtype = _check_func('fsolve', 'func', func, x0, args, n, (n,))<br>(Pdb)<br><br></div>I submit that this message is not helpful.<br><br></div>Eventually I found the code in minpack.py that assembled the message, and determined that the complete message was<br><br>"fsolve: there is a mismatch between the input and output shape of the 'func' argument 'mce'.Shape should be (9,) but it is (10, 1)."<br><br></div>which would actually have been helpful.  It should not have been abbreviated.<br><br></div>It may be appropriate to reassign this bug to pdb.<br><br></div>          - Jim Van Zandt<br></div>