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

Rob Managan managan at llnl.gov
Wed Dec 21 12:00:05 EST 2005


I have to retract that previous email. I can't type and that caused 
the file to not be written.

When I type correctly I simply get
numpyio.error: There was an error reading from the file


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")
>

-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
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