Your message dated Tue, 5 Dec 2017 09:39:18 -0500 with message-id <[email protected]> and subject line Re: Bug#843156: python3-sklearn: Cannot import sklearn.cross_validation has caused the Debian Bug report #843156, regarding python3-sklearn: Cannot import sklearn.cross_validation to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 843156: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843156 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python3-sklearn Version: 0.17.1-2 Dear maintainer, The 'cross_validation' of sklearn module raises an ImportError, which makes it (and other modules using it) unavailable: --- $ python3 Python 3.5.2+ (default, Sep 22 2016, 12:18:14) [GCC 6.2.0 20160927] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sklearn.cross_validation Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/sklearn/cross_validation.py", line 29, in <module> from .externals.joblib import Parallel, delayed, logger ImportError: cannot import name 'logger' --- I believe this is caused by joblib not having 'logger' in its __all__: --- $ tail -n 3 /usr/lib/python3/dist-packages/joblib/__init__.py __all__ = ['Memory', 'MemorizedResult', 'PrintTime', 'Logger', 'hash', 'dump', 'load', 'Parallel', 'delayed', 'cpu_count', 'effective_n_jobs', 'register_parallel_backend', 'parallel_backend'] --- and sklearn.externals.joblib importing *: --- $ cat /usr/lib/python3/dist-packages/sklearn/externals/joblib/__init__.py # yoh: use system-wide joblib from joblib import * --- python3-sklearn version: 0.17.1-2 python3-joblib version: 0.10.2-1 python3 version: 3.5.1-4
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---Version: 0.19.1-1 I guess it was resolved ;) $> python3 -c 'import sklearn.cross_validation' /usr/lib/python3/dist-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning) $> python3 Python 3.6.3 (default, Oct 3 2017, 21:16:13) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sklearn.cross_validation /usr/lib/python3/dist-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning) >>> $> apt-cache policy python-sklearn python-sklearn: Installed: 0.19.1-1 Candidate: 0.19.1-1 Version table: *** 0.19.1-1 600 600 http://http.debian.net/debian sid/main amd64 Packages 600 http://http.debian.net/debian sid/main i386 Packages 100 /var/lib/dpkg/status 0.19.1-1~nd+1 500 500 http://neuro.debian.net/debian unstable/main amd64 Packages 500 http://neuro.debian.net/debian unstable/main i386 Packages 0.19.1-1~nd90+1 500 500 http://neuro.debian.net/debian stretch/main amd64 Packages 500 http://neuro.debian.net/debian stretch/main i386 Packages 0.19~b2-1~nd90+1 500 500 http://neuro.debian.net/debian-devel stretch/main amd64 Packages 500 http://neuro.debian.net/debian-devel stretch/main i386 Packages 0.18-5 100 100 http://http.debian.net/debian stretch/main amd64 Packages 100 http://http.debian.net/debian stretch/main i386 Packages 2 11029.....................................:Tue 05 Dec 2017 09:37:39 AM EST:. hopa:~ $> apt-cache policy python3-sklearn python3-sklearn: Installed: 0.19.1-1 Candidate: 0.19.1-1 Version table: *** 0.19.1-1 600 600 http://http.debian.net/debian sid/main amd64 Packages 600 http://http.debian.net/debian sid/main i386 Packages 100 /var/lib/dpkg/status On Fri, 04 Nov 2016, Valentin Lorentz wrote: > Package: python3-sklearn > Version: 0.17.1-2 > Dear maintainer, > The 'cross_validation' of sklearn module raises an ImportError, which > makes it (and other modules using it) unavailable: > --- > $ python3 > Python 3.5.2+ (default, Sep 22 2016, 12:18:14) > [GCC 6.2.0 20160927] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import sklearn.cross_validation > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python3/dist-packages/sklearn/cross_validation.py", > line 29, in <module> > from .externals.joblib import Parallel, delayed, logger > ImportError: cannot import name 'logger' > --- > I believe this is caused by joblib not having 'logger' in its __all__: > --- > $ tail -n 3 /usr/lib/python3/dist-packages/joblib/__init__.py > __all__ = ['Memory', 'MemorizedResult', 'PrintTime', 'Logger', 'hash', > 'dump', > 'load', 'Parallel', 'delayed', 'cpu_count', 'effective_n_jobs', > 'register_parallel_backend', 'parallel_backend'] > --- > and sklearn.externals.joblib importing *: > --- > $ cat /usr/lib/python3/dist-packages/sklearn/externals/joblib/__init__.py > # yoh: use system-wide joblib > from joblib import * > --- > python3-sklearn version: 0.17.1-2 > python3-joblib version: 0.10.2-1 > python3 version: 3.5.1-4 -- Yaroslav O. Halchenko Center for Open Neuroscience http://centerforopenneuroscience.org Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 WWW: http://www.linkedin.com/in/yarik
--- End Message ---

