[Python-modules-team] Bug#681270: causes FTBFS of pymvpa2 on s390x: TypeError: Improper input parameters in leastsq call

Denis Laxalde denis at laxalde.org
Thu Jul 12 14:55:42 UTC 2012


tags 681270 +moreinfo
thanks

Yaroslav Halchenko wrote:
> Please see attached a somewhat minimalistic code to reproduce the
> problem.
>
> it fails only on s390x -- fine on s390 and any other architecture/port where
> pymvpa2 was just built.
>
> Traceback (most recent call last):
>    File "scipy-fx-failure2.py", line 65, in<module>
>      1.47441522,  1.78073152,  2.08704783,  2.39336413,  2.69968044]))
>    File "scipy-fx-failure2.py", line 52, in least_sq_fit
>      return leastsq(efx, params)
>    File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 324, in leastsq
>      raise errors[info][1](errors[info][0])
> TypeError: Improper input parameters.

Does it occur when dual_gaussian returns np.nan? I'd help if you could 
attach the full output of your script and also print err in efx.

It is not clear to me why this is a bug in scipy. This exception comes 
from MINPACK's lmdif FORTRAN routine directly. It is often triggered 
when the objective function returns an array with wrong dimensions.

-- 
Denis Laxalde
-------------- next part --------------
A non-text attachment was scrubbed...
Name: denis.vcf
Type: text/x-vcard
Size: 144 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120712/e63ac6b2/attachment.vcf>


More information about the Python-modules-team mailing list