Bug#1098247: joblib: autopkgtest failures against numpy2

Emilio Pozuelo Monfort pochu at debian.org
Tue Feb 18 10:49:35 GMT 2025


Source: joblib
Version: 1.4.2-2
Severity: serious

Hi,

joblib is still failing its autopkgtests when run against numpy 2:

>From the amd64 log:

=================================== FAILURES ===================================
__________________ test_joblib_pickle_across_python_versions ___________________

    @with_numpy
    def test_joblib_pickle_across_python_versions():
        # We need to be specific about dtypes in particular endianness
        # because the pickles can be generated on one architecture and
        # the tests run on another one. See
        # https://github.com/joblib/joblib/issues/279.
        expected_list = [np.arange(5, dtype=np.dtype('<i8')),
                         np.arange(5, dtype=np.dtype('<f8')),
                         np.array([1, 'abc', {'a': 1, 'b': 2}], dtype='O'),
                         np.arange(256, dtype=np.uint8).tobytes(),
                         # np.matrix is a subclass of np.ndarray, here we want
                         # to verify this type of object is correctly unpickled
                         # among versions.
                         np.matrix([0, 1, 2], dtype=np.dtype('<i8')),
                         u"C'est l'\xe9t\xe9 !"]
    
        # Testing all the compressed and non compressed
        # pickles in joblib/test/data. These pickles were generated by
        # the joblib/test/data/create_numpy_pickle.py script for the
        # relevant python, joblib and numpy versions.
        test_data_dir = os.path.dirname(os.path.abspath(data.__file__))
    
        pickle_extensions = ('.pkl', '.gz', '.gzip', '.bz2', 'lz4')
        if lzma is not None:
            pickle_extensions += ('.xz', '.lzma')
        pickle_filenames = [os.path.join(test_data_dir, fn)
                            for fn in os.listdir(test_data_dir)
                            if any(fn.endswith(ext) for ext in pickle_extensions)]
    
        for fname in pickle_filenames:
>           _check_pickle(fname, expected_list)


There may be other failures. For full logs see:

https://release.debian.org/britney/update_excuses.html#joblib

Some logs are also available here, but note that for some architectures the
tests still need to be rescheduled for the new version:

https://ci.debian.net/packages/j/joblib/

This is blocking the numpy 2 transition, so a prompt fix would be much
appreciated.

Cheers,
Emilio



More information about the debian-science-maintainers mailing list