[SciPy-user] Install problem - Overwriting message when importing scipy

Rob Managan managan at llnl.gov
Wed Dec 21 10:55:50 CST 2005


I see the same thing on Mac OSX 10.3.9. I also see after the fact 
that the file fwrite.mat has zero length. This implies that the 
fwrite failed!

At 4:04 PM +0000 12/21/05, Hugo Gamboa wrote:
>Has anyone been able to reproduce the segmentation fault caused by fread?
>
>Hugo Gamboa
>
>
>
>from scipy import *
>import timing
>
>def tic():
>     timing.start()
>
>def tac(s=""):
>     timing.finish()
>     print(':ms:'+str(timing.milli())+" "+s)
>
>tic()
>a=randn(1000,1000)
>tac("Generate data")
>
>
>tic()
>f=open("fwrite.mat","w")
>io.fwrite(f,size(a),a,"d",)
>tac("Write")
>
>tic()
>f=open("fwrite.mat","r")
>b=io.fread(f,size(a),"d")  #FAILS - SEGMENTATION FAULT
>tac("Read")
>
>
>Hugo Gamboa

-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan               email managan at llnl.gov
LLNL                      phone: 925-423-0903
P.O. Box 808, L-095       FAX:   925-422-3389
Livermore, CA  94551-0808



More information about the SciPy-user mailing list