Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590296 - sci-libs/scikits_learn-0.17* is incompatible with >=dev-python/joblib-0.10.0
Summary: sci-libs/scikits_learn-0.17* is incompatible with >=dev-python/joblib-0.10.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 606200
  Show dependency tree
 
Reported: 2016-08-02 11:23 UTC by Ralf Ramsauer
Modified: 2017-02-14 06:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Ramsauer 2016-08-02 11:23:35 UTC
sci-libs/scikits_learn depends on dev-python/joblib, no version constraints.

While it runs fine with <=dev-python/joblib-0.9.4, it does not run with joblib-0.10.0 (find runtime error message below).

Proposed quickfix for affected systems: mask joblib-0.10.0
Proposed fix: add a version constraint to scikits_learn's ebuild.

  Ralf

--


In [1]: from sklearn import tree
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-fcc6e7d2ee3e> in <module>()
----> 1 from sklearn import tree

/usr/lib64/python3.4/site-packages/sklearn/tree/__init__.py in <module>()
      4 """
      5 
----> 6 from .tree import DecisionTreeClassifier
      7 from .tree import DecisionTreeRegressor
      8 from .tree import ExtraTreeClassifier

/usr/lib64/python3.4/site-packages/sklearn/tree/tree.py in <module>()
     28 from ..base import RegressorMixin
     29 from ..externals import six
---> 30 from ..feature_selection.from_model import _LearntSelectorMixin
     31 from ..utils import check_array
     32 from ..utils import check_random_state

/usr/lib64/python3.4/site-packages/sklearn/feature_selection/__init__.py in <module>()
     18 from .variance_threshold import VarianceThreshold
     19 
---> 20 from .rfe import RFE
     21 from .rfe import RFECV
     22 

/usr/lib64/python3.4/site-packages/sklearn/feature_selection/rfe.py in <module>()
     15 from ..base import clone
     16 from ..base import is_classifier
---> 17 from ..cross_validation import check_cv
     18 from ..cross_validation import _safe_split, _score
     19 from ..metrics.scorer import check_scoring

/usr/lib64/python3.4/site-packages/sklearn/cross_validation.py in <module>()
     27                                check_array, column_or_1d)
     28 from .utils.multiclass import type_of_target
---> 29 from .externals.joblib import Parallel, delayed, logger
     30 from .externals.six import with_metaclass
     31 from .externals.six.moves import zip

ImportError: cannot import name 'logger'
Comment 1 Benda Xu gentoo-dev 2017-02-14 06:50:49 UTC
A fix is in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d71430e877ec01acffeb3f9d988c09103c0fb78a with a version bump.

`from sklearn import tree` works for me on python-2.7.

Please test if it works for you.