Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

testing issue in joblib #1033

Closed
amueller opened this Issue · 11 comments

3 participants

@amueller
Owner

I get::
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'tell'",) in 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?

@amueller
Owner

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

@ogrisel
Owner

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

@amueller
Owner

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

@ogrisel
Owner

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

@amueller
Owner

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
@ogrisel
Owner

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

@amueller
Owner

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

@ogrisel
Owner

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

@ogrisel ogrisel was assigned
@amueller
Owner

(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.

@amueller
Owner

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

@amueller amueller closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.