FS#62890 - Missing dependency for python-scikit-learn

Attached to Project: Community Packages
Opened by charlie (charlie) - Thursday, 13 June 2019, 18:24 GMT
Last edited by Andrzej Giniewicz (Giniu) - Friday, 14 June 2019, 06:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Andrzej Giniewicz (Giniu)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Missing dependency for python-scikit-learn

There seems to be a missing dependency for the package python-scikit-learn. I have installed it with pacman with no error reported from pacman. Then when trying to import sklearn in python, one gets the error: "ModuleNotFoundError: No module named 'joblib'". UNofrtunately there does not seem to be a (python-)joblib package in the official repository which would (maybe?) explain why the missing dependency is not signalled.

After installing the package python-joblib from AUR, "import sklearn" does not yield an error anymore.

Additional info:
* package version(s): 0.21.2-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Install python-scikit-learn, launch a python terminal and type "import sklearn".
This task depends upon

Closed by  Andrzej Giniewicz (Giniu)
Friday, 14 June 2019, 06:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.21.2-2
Comment by charlie (charlie) - Thursday, 13 June 2019, 18:26 GMT
$ sudo pacman -S python-scikit-learn
resolving dependencies...
looking for conflicting packages...

Packages (1) python-scikit-learn-0.21.2-1

Total Download Size: 4,89 MiB
Total Installed Size: 28,78 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
python-scikit-learn... 4,9 MiB 4,33M/s 00:01 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
:: Processing package changes...
(1/1) installing python-scikit-learn [######################] 100%
Optional dependencies for python-scikit-learn
python-matplotlib: for examples with plotting [installed]
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...



$ python
Python 3.7.3 (default, Mar 26 2019, 21:43:19)
[GCC 8.2.1 20181127] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>> import sklearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/sklearn/__init__.py", line 76, in <module>
from .base import clone
File "/usr/lib/python3.7/site-packages/sklearn/base.py", line 16, in <module>
from .utils import _IS_32BIT
File "/usr/lib/python3.7/site-packages/sklearn/utils/__init__.py", line 17, in <module>
from . import _joblib
File "/usr/lib/python3.7/site-packages/sklearn/utils/_joblib.py", line 8, in <module>
import joblib
ModuleNotFoundError: No module named 'joblib'
>>>



Loading...