Gael Varoquaux <gael.varoquaux@...> writes:

> 
> On Tue, Jan 22, 2013 at 10:30:01PM +0000, Ark wrote:
> > /home/n7/newenv/lib/python2.6/site-
> > packages/sklearn/externals/joblib/numpy_pickle.pyc in 
read_zfile(file_handle)
> >      69     assert len(data) == length, (
> >      70         "Incorrect data length while decompressing %s."
> > ---> 71         "The file could be corrupted." % file_handle)
> >      72     return data
> >      73 
> 
> > AssertionError: Incorrect data length while decompressing <open file 
> > 'compressedclassifier.joblib_01.npy.z', mode 'rb' at 0x2d5b5d0>.The file 
could 
> > be corrupted.
> 
> Well, I can't tell for sure, but it really seems that the file is
> corrupted: the length of the data restored does not match the length of
> the data that was originaly given to compress.
> 
> G
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> 

Hi, I'm working with Ark on this project. Yes, that's what it looks like 
- some investigation into this appears to show that either this is a bug 
in zlib (the length returned is incorrect) or this is a bug in joblib.dump
(when called with compression set to anything other than 0, it might not 
be writing the whole file out. We're using compress=9.)



------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to