testing issue in joblib #1033

Closed
amueller opened this Issue Aug 17, 2012 · 11 comments

Comments

Projects
None yet
3 participants
Owner

amueller commented Aug 17, 2012

I get::
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.del of memmap(1.70710087163e-313)> ignored
and
Warning: file "/tmp/tmpxxaFga/test.pkl934" appears to be a zip, ignoring mmap_mode "r" flag passed

@GaelVaroquaux do you know where this comes from? And is it easy to fix?

Owner

amueller commented Aug 17, 2012

To be clear: these don't produce failed tests but avoiding anything that looks broken in a release seems desirable ;)

Owner

ogrisel commented Aug 17, 2012

Yes this is due to the lack of support for pickling np.memmap instances in numpy. It fails with various error messages or silently copy the content depending on the numpy version.

This is why I want to soon resume my work on memmap arrays for multiprocessing: joblib/joblib#43

Owner

amueller commented Jan 5, 2014

Btw, I still get this error on master @ogrisel. Is that expected?

Owner

ogrisel commented Jan 6, 2014

Do you have the full traceback or at least the name of the test that produces this error at hand by any chance?

Owner

amueller commented Jan 6, 2014

It is test_numpy_persistence.

sklearn.externals.joblib.test.test_numpy_pickle.test_numpy_persistence ... Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(5.6602627e-316)> ignored
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(5.6032807e-316)> ignored
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(5.6032807e-316)> ignored
/home/andy/checkout/scikit-learn/sklearn/externals/joblib/test/test_numpy_pickle.py:197: Warning: file "/tmp/tmpe8QxWa/test.pkl341" appears to be a zip, ignoring mmap_mode "r" flag passed
  numpy_pickle.load(this_filename, mmap_mode='r')
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in <bound method memmap.__del__ of memmap(1.040501934e-315)> ignored
Owner

ogrisel commented Jan 6, 2014

Thanks I will try to have a look at it tomorrow.

Owner

amueller commented Jan 6, 2014

Thanks. It might not be so urgent, I just saw it again and was not sure if it was still expected or not.

Owner

ogrisel commented Jan 7, 2014

I am not 100% sure but I think I so such warnings in the past releases as well.

ogrisel was assigned Jan 7, 2014

Owner

amueller commented Jan 7, 2014

(parsing so as saw) Yes they were there in the past. Given your explanation of the error I was just wondering if they still should be there in the current joblib release. That was a naive question, not really understanding the improvements you made.

Owner

amueller commented Jul 18, 2014

closing as we don't test joblib any more ^^

amueller closed this Jul 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment