[Debian-astro-maintainers] Bug#911708: scikit-learn breaks astroml autopkgtest: ImportError: cannot import name 'GMM'

Paul Gevers elbrus at debian.org
Tue Oct 23 20:26:29 BST 2018


Source: scikit-learn, astroml
Control: found -1 scikit-learn/0.20.0+dfsg-1
Control: found -1 astroml/0.3-7
X-Debbugs-CC: debian-ci at lists.debian.org
User: debian-ci at lists.debian.org
Usertags: breaks needs-update

Dear maintainers,

With a recent upload of scikit-learn the autopkgtest of astroml fails in
testing when that autopkgtest is run with the binary packages of
scikit-learn from unstable. It passes when run with only packages from
testing. In tabular form:
                       pass            fail
scikit-learn           from testing    0.20.0+dfsg-1
astroml                from testing    0.3-7
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is contributing to the delay of the migration
of scikit-learn to testing [1]. Due to the nature of this issue, I filed
this bug report against both packages. Can you please investigate the
situation and reassign the bug to the right package? If needed, please
change the bug's severity.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=scikit-learn

https://ci.debian.net/data/autopkgtest/testing/amd64/a/astroml/1196880/log.gz

autopkgtest [04:37:20]: test command2: [-----------------------
/usr/lib/python3/dist-packages/astroML/time_series/periodogram.py:8:
UserWarning: Using slow version of lomb_scargle. Install astroML_addons
to use an optimized version
  warnings.warn("Using slow version of lomb_scargle. Install
astroML_addons "
EEEE/usr/lib/python3/dist-packages/astroML/dimensionality/iterative_pca.py:136:
RuntimeWarning: invalid value encountered in true_divide
  ratio_i = X[i][notM[i]] / X_recons[i][notM[i]]
.E../usr/lib/python3/dist-packages/astroML/stats/_binned_statistic.py:323:
RuntimeWarning: invalid value encountered in true_divide
  result[a] /= flatcount
/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:2957:
RuntimeWarning: Mean of empty slice.
  out=out, **kwargs)
/usr/lib/python3/dist-packages/numpy/core/_methods.py:80:
RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
..........................................................................................................................................................................................
======================================================================
ERROR: Failure: ImportError (cannot import name 'GMM')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
  File
"/usr/lib/python3/dist-packages/astroML/classification/__init__.py",
line 1, in <module>
    from .gmm_bayes import GMMBayes
  File
"/usr/lib/python3/dist-packages/astroML/classification/gmm_bayes.py",
line 8, in <module>
    from sklearn.mixture import GMM
ImportError: cannot import name 'GMM'

======================================================================
ERROR: Failure: ImportError (cannot import name 'GMM')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
  File "/usr/lib/python3/dist-packages/astroML/clustering/__init__.py",
line 1, in <module>
    from .mst_clustering import HierarchicalClustering, get_graph_segments
  File
"/usr/lib/python3/dist-packages/astroML/clustering/mst_clustering.py",
line 8, in <module>
    from sklearn.mixture import GMM
ImportError: cannot import name 'GMM'

======================================================================
ERROR: Failure: ImportError (cannot import name 'GMM')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
  File "/usr/lib/python3/dist-packages/astroML/datasets/__init__.py",
line 21, in <module>
    from .generated import generate_mu_z
  File "/usr/lib/python3/dist-packages/astroML/datasets/generated.py",
line 3, in <module>
    from ..density_estimation import FunctionDistribution
  File
"/usr/lib/python3/dist-packages/astroML/density_estimation/__init__.py",
line 2, in <module>
    from .xdeconv import XDGMM
  File
"/usr/lib/python3/dist-packages/astroML/density_estimation/xdeconv.py",
line 17, in <module>
    from sklearn.mixture import GMM
ImportError: cannot import name 'GMM'

======================================================================
ERROR: Failure: ImportError (cannot import name 'GMM')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
  File
"/usr/lib/python3/dist-packages/astroML/density_estimation/__init__.py",
line 2, in <module>
    from .xdeconv import XDGMM
  File
"/usr/lib/python3/dist-packages/astroML/density_estimation/xdeconv.py",
line 17, in <module>
    from sklearn.mixture import GMM
ImportError: cannot import name 'GMM'

======================================================================
ERROR: Failure: ImportError (cannot import name 'GMM')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in
loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.6/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/lib/python3.6/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
  File "/usr/lib/python3/dist-packages/astroML/plotting/__init__.py",
line 1, in <module>
    from .hist_tools import hist
  File "/usr/lib/python3/dist-packages/astroML/plotting/hist_tools.py",
line 5, in <module>
    from astroML.density_estimation import\
  File
"/usr/lib/python3/dist-packages/astroML/density_estimation/__init__.py",
line 2, in <module>
    from .xdeconv import XDGMM
  File
"/usr/lib/python3/dist-packages/astroML/density_estimation/xdeconv.py",
line 17, in <module>
    from sklearn.mixture import GMM
ImportError: cannot import name 'GMM'

----------------------------------------------------------------------
Ran 194 tests in 0.880s

FAILED (errors=5)
autopkgtest [04:37:23]: test command2: -----------------------]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-astro-maintainers/attachments/20181023/23389e52/attachment.sig>


More information about the Debian-astro-maintainers mailing list