[SciPy-Dev] lfilter segfault with initial condition on windows

josef.pktd at gmail.com josef.pktd at gmail.com
Thu Mar 4 13:47:41 EST 2010


On Thu, Mar 4, 2010 at 1:37 PM, Ariel Rokem <arokem at berkeley.edu> wrote:
> This is off-topic, but since the problem seems to have been solved, I'll go
> ahead and ask: How do you get the revision number in your version number?
>
> All I get is:
>
> In [3]: scipy.version.version
> Out[3]: '0.8.0.dev'

I think because I was building scipy from the svn checkout. If I
remember correctly, setup.py looks for the svn revision number.

Josef


>
> Thanks - Ariel
>
> On Thu, Mar 4, 2010 at 6:39 AM, <josef.pktd at gmail.com> wrote:
>>
>> On Thu, Mar 4, 2010 at 9:29 AM, Oscar Benjamin
>> <oscar.bristol at googlemail.com> wrote:
>> > Hi,
>> >
>> > It seems this was just a problem with my installation somehow. Before
>> > sending the previous email I had uninstalled and reinstalled both numpy
>> > and scipy and the problem remained. I've just got back from lunch and
>> > rebooted, uninstalled and reinstalled both again (using the same
>> > installer files) and the problem seems now to be fixed. I'm not really
>> > sure what happened there.
>>
>> good to hear,
>> It is easy to get some left-over files from a previous install that
>> create problems.
>>
>> Josef
>>
>> >
>> > Thanks for your help,
>> > Oscar.
>> >
>> > josef.pktd at gmail.com wrote:
>> >> On Thu, Mar 4, 2010 at 8:06 AM, Oscar Benjamin
>> >> <oscar.bristol at googlemail.com> wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> I've just discovered that a program of mine (which works on my ubuntu
>> >>> karmic machine at home) segfaults on win32 at work.
>> >>>
>> >>> I've made a short test case:
>> >>>
>> >>>  > #!/usr/bin/env python
>> >>>  >
>> >>>  > from numpy import ones
>> >>>  > from scipy.signal import lfilter
>> >>>  >
>> >>>  > x = ones(100)
>> >>>  > a = ones(5)
>> >>>  > b = ones(5)
>> >>>  > zi = ones(4)
>> >>>  > #xf = lfilter(b, a, x)
>> >>>  > xf, zf = lfilter(b, a, x, zi=zi)
>> >>>
>> >>> Swap the comment on the last two lines to prevent segfault. On my
>> >>> machine I get the "Unhandled Exception in python.exe" message box (I
>> >>> assume this is a segfault).
>> >>> versions:
>> >>> python 2.6.4
>> >>> numpy 1.3.0
>> >>> scipy 0.7.1
>> >>>
>> >>> I can see a few tickets about problems with memory leaks and segfaults
>> >>> with lfilter but they seem to be old and marked as closed. Should I
>> >>> expect the above to work? Is this a known issue that's already fixed?
>> >>>
>> >>
>> >> I don't have a segfault or any other problem with your script on
>> >> WindowsXP with python 2.5.2. numpy 1.4.0 and a scipy from a while ago.
>> >>
>> >>>>> numpy.version.version
>> >>>>>
>> >> '1.4.0'
>> >>
>> >>>>> scipy.version.version
>> >>>>>
>> >> '0.8.0.dev6156'
>> >>
>> >> I also think I never had a segfault before with lfilter, and I have
>> >> been using it for quite some time.
>> >> (The only segfault I have seen is when scipy is not binary compatible
>> >> with numpy 1.4.0)
>> >>
>> >> Are your numpy and scipy from the official installers?
>> >>
>> >> I don't know if there were any problems with python 2.6 before.
>> >>
>> >> Josef
>> >>
>> >>
>> >>> Thanks,
>> >>> Oscar.
>> >>>
>> >>> _______________________________________________
>> >>> SciPy-Dev mailing list
>> >>> SciPy-Dev at scipy.org
>> >>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>> >>>
>> >>>
>> >> _______________________________________________
>> >> SciPy-Dev mailing list
>> >> SciPy-Dev at scipy.org
>> >> http://mail.scipy.org/mailman/listinfo/scipy-dev
>> >>
>> >>
>> >
>> > _______________________________________________
>> > SciPy-Dev mailing list
>> > SciPy-Dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/scipy-dev
>> >
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>
>
> --
> Ariel Rokem
> Helen Wills Neuroscience Institute
> University of California, Berkeley
> http://argentum.ucbso.berkeley.edu/ariel
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>



More information about the SciPy-Dev mailing list