[SciPy-User] Issues with lfilter after version upgrade

josef.pktd@gmai... josef.pktd@gmai...
Sat Jan 16 11:57:17 CST 2010


On Sat, Jan 16, 2010 at 10:33 AM, Richard Lyon <rchrdlyon1@gmail.com> wrote:
> Hi,
>
> Problem:
> =======
>
> Been successfully using scipy to run various signal processing
> simulations. Recently upgraded python, numpy and scipy. Now find lfilter
> in signal processing appears to crash the python interpreter.
>
> Details:
> ========
>
> Window Vista
> python 2.6.4
> pywin32 214
> numpy 1.4.0
> scipy 0.7.1
>
> The following code crashes
>
> ----------------------------------------------------------
> from numpy import zeros
> from scipy.signal import lfilter
>
> print 'Testing lfilter'
> B = [ +9.9416310E-01, -1.9883262E+00, +9.9416310E-01 ]
> A = [ +1.0000000E+00, -1.9882920E+00, +9.8836030E-01 ]
> z = zeros(2)
> x0 = zeros(80)
> # fails on this next line
> (x1, z) = lfilter(B, A, x0, -1, z)
> print 'Finished'
> ----------------------------------------------------------

scipy 0.7.x has binary incompatibility problems if it has been
compiled against numpy 1.3 and is run against numpy 1.4

When I run your script with scipy (trunk) compiled against numpy
1.4.0, I don't have any problem.
When I run your script with scipy-0.7.1.dev5744 compiled against numpy
1.3, and run it with the release version of numpy 1.4.0, then I also
have the crash. (I don't have a virtualenv with scipy-0.7.1 release to
try out).

There are 2 options, either you recompile scipy against numpy 1.4. or
downgrade to numpy 1.3 until numpy 1.4 compatible scipy binaries are
available.

(I still think there are other binary incompatibilities besides the
cython problem)

I'm on WindowXP

Josef



>
> Haven't seen any other problems yet.
>
> Regards
> RLYON
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-User mailing list