Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717454 - sci-libs/scikits_learn-0.22.2_p1 doesn't install required dependency dev-python/joblib
Summary: sci-libs/scikits_learn-0.22.2_p1 doesn't install required dependency dev-pyth...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-04-14 16:16 UTC by glyphimor
Modified: 2020-11-13 21:32 UTC (History)
3 users (show)

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 glyphimor 2020-04-14 16:16:15 UTC
I installed sci-libs/scikits_learn-0.22.2_p1. All versions are keyworded -- this, most recent version supports python3.7. It also installed sci-libs/scikits-0.1-r2 and dev-python/wheel-0.34.2. wheel doesn't yet support python 3.8, so I had to remove the python 3.8 target for scikits_learn.

However, after the install finished, import sklearn failed (in both python 3.6 and 3.7) because joblib wasn't installed. Interestingly, equery depgraph sci-libs/scikits_learn-0.22.2_p1 DOES list dev-python/joblib. After installing joblib manually, import sklearn succeeds.

Testing shows that the previous version, sci-libs/scikits_learn-0.20.4 installs and works fine. From version 0.20.4 to 0.22.2_p1, 2 dependencies were removed (dev-python/matplotlib and dev-python/nose) and 4 dependencies were added (dev-python/wheel, python 3.7, dev-python/joblib, and dev-python/pytest).

Reproducible: Always

Steps to Reproduce:
1. uninstall sci-libs/scikits_learn and dev-python/joblib, if already installed
2. emerge sci-libs/scikits_learn-0.22.2_p1
3. load python interpreter
4. import sklearn
Actual Results:  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/site-packages/sklearn/__init__.py", line 82, in <module>
    from .base import clone
  File "/usr/lib/python3.7/site-packages/sklearn/base.py", line 20, in <module>
    from .utils import _IS_32BIT
  File "/usr/lib/python3.7/site-packages/sklearn/utils/__init__.py", line 24, in <module>
    from . import _joblib
  File "/usr/lib/python3.7/site-packages/sklearn/utils/_joblib.py", line 7, in <module>
    import joblib
ModuleNotFoundError: No module named 'joblib'

Expected Results:  
import sklearn succeeds

Portage 2.3.89 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.2.0, glibc-2.29-r7, 5.4.28-gentoo x86_64)
=================================================================
System uname: Linux-5.4.28-gentoo-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-gentoo-2.6
KiB Mem:    32814240 total,  19783544 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 14 Apr 2020 03:30:01 +0000
Head commit of repository gentoo: 1f64b0ee002dfa9ef9e1df793b3e2d2e7be2fcf1
Head commit of repository brother-overlay: 7603f9a413f84b5b0f886bb58a7bbedec0aba62f

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo, 3.8.2-r1::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            8.3.0-r3::gentoo, 9.2.0-r2::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

brother-overlay
    location: /usr/local/overlay/brother-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/signon-ui/ /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://cosmos.illinois.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdda cdr cli crypt css cups dbus declarative dri dts dvd dvdr dvdread elogind emboss encode exif ffmpeg flac gdbm gif gpm iconv icu ipv6 jpeg kde kipi kwallet lcms libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg multilib ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline scanner sdl seccomp semantic-desktop spell split-usr sql ssl startup-notification svg tcpd threads truetype udev udisks unicode usb vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="abm aes avx avx2 bmi bmi2 cx16 f16c fma fma3 fsgsbase fxsr lzcnt mmx mmxext movbe pclmul popcnt rdrnd sahf sse sse2 sse3 sse4_1 sse4_2 ssse3 xsave xsaveopt" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python3_7 python3_8" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Haschka 2020-05-09 23:58:44 UTC
I can confirm this bug on my machines. joblib should be pulled by scikits_learn
Comment 2 Gottfried Munda 2020-05-19 08:19:54 UTC
I can confirm the bug as well.

Just installing scikits_learn gives an import error 
ModuleNotFoundError: No module named 'joblib'

After installing joblib manually it works.
Comment 3 Nuno Alexandre 2020-08-11 17:39:14 UTC
I can confirm this bug as well.

Also, can we get a version bump to 0.23.2?
Make sure to include dev-python/threadpoolctl in the dep list for the version bump.
Comment 4 Larry the Git Cow gentoo-dev 2020-11-13 21:32:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6229bdc8c39660607a4f11c4d1624587c33cc932

commit 6229bdc8c39660607a4f11c4d1624587c33cc932
Author:     Aisha Tammy <gentoo@aisha.cc>
AuthorDate: 2020-11-09 18:25:04 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2020-11-13 21:32:14 +0000

    sci-libs/scikit-learn: renamed sci-libs/scikits_learn
    
    Closes: https://bugs.gentoo.org/665482
    Closes: https://bugs.gentoo.org/717454
    
    Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
    Signed-off-by: Aaron Bauman <bman@gentoo.org>

 dev-python/nltk/nltk-3.5.ebuild                                      | 2 +-
 profiles/updates/2Q-2020                                             | 1 -
 profiles/updates/4Q-2020                                             | 2 ++
 sci-libs/scikit-learn/Manifest                                       | 2 ++
 sci-libs/{scikits_learn => scikit-learn}/metadata.xml                | 0
 .../scikit-learn-0.22.2_p1-r1.ebuild}                                | 5 ++---
 .../scikit-learn-0.23.2.ebuild}                                      | 3 ---
 sci-libs/scikits_learn/Manifest                                      | 2 --
 sys-cluster/ceph/ceph-14.2.11-r1.ebuild                              | 2 +-
 sys-cluster/ceph/ceph-14.2.11.ebuild                                 | 2 +-
 sys-cluster/ceph/ceph-14.2.13.ebuild                                 | 2 +-
 sys-cluster/ceph/ceph-15.2.4-r3.ebuild                               | 2 +-
 sys-cluster/ceph/ceph-15.2.5-r1.ebuild                               | 2 +-
 13 files changed, 12 insertions(+), 15 deletions(-)