Missing Python six library? # emerge -av sci-libs/tensorflow-estimator These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sci-libs/tensorflow-estimator-2.1::gentoo PYTHON_TARGETS="python3_6 -python3_7" 0 KiB Total: 1 package (1 new), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) sci-libs/tensorflow-estimator-2.1::gentoo * tensorflow-estimator-2.1.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] * bazelbuild-rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking tensorflow-estimator-2.1.tar.gz to /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work Copying bazelbuild-rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip to bazel distdir as 0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip >>> Source unpacked in /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work >>> Preparing source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1 ... bazel --bazelrc=/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/temp/bazelrc --output_base=/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1-bazel-base build //tensorflow_estimator/tools/pip_package:build_pip_package Extracting Bazel installation... WARNING: ignoring LD_PRELOAD in environment. WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown". INFO: Analyzed target //tensorflow_estimator/tools/pip_package:build_pip_package (24 packages loaded, 300 targets configured). INFO: Found 1 target... ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1/tensorflow_estimator/BUILD:67:1: Executing genrule //tensorflow_estimator:estimator_python_api_gen_compat_v1 failed (Exit 1) Traceback (most recent call last): File "/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/create_tensorflow_estimator.python.estimator_api_1_estimator_python_api_gen_compat_v1.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py", line 26, in <module> from tensorflow_estimator.python.estimator import estimator_lib # pylint: disable=unused-import File "/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/create_tensorflow_estimator.python.estimator_api_1_estimator_python_api_gen_compat_v1.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/estimator_lib.py", line 22, in <module> from tensorflow_estimator.python.estimator.canned.baseline import BaselineClassifier File "/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1-bazel-base/execroot/org_tensorflow_estimator/bazel-out/host/bin/tensorflow_estimator/create_tensorflow_estimator.python.estimator_api_1_estimator_python_api_gen_compat_v1.runfiles/org_tensorflow_estimator/tensorflow_estimator/python/estimator/canned/baseline.py", line 52, in <module> import six ModuleNotFoundError: No module named 'six' ---------------- Note: The failure of target //tensorflow_estimator:create_tensorflow_estimator.python.estimator_api_1_estimator_python_api_gen_compat_v1 (with exit code 1) may have been caused by the fact that it is a Python 2 program that was built in the host configuration, which uses Python 3. You can change the host configuration (for the entire build) to instead use Python 2 by setting --host_force_python=PY2. If this error started occurring in Bazel 0.27 and later, it may be because the Python toolchain now enforces that targets analyzed as PY2 and PY3 run under a Python 2 and Python 3 interpreter, respectively. See https://github.com/bazelbuild/bazel/issues/7899 for more information. ---------------- Target //tensorflow_estimator/tools/pip_package:build_pip_package failed to build ERROR: /var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1/tensorflow_estimator/tools/pip_package/BUILD:18:1 Executing genrule //tensorflow_estimator:estimator_python_api_gen_compat_v1 failed (Exit 1) INFO: Elapsed time: 4.881s, Critical Path: 0.24s INFO: 0 processes. FAILED: Build did NOT complete successfully * ERROR: sci-libs/tensorflow-estimator-2.1::gentoo failed (compile phase): * ebazel failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3395: Called ebazel 'build' '//tensorflow_estimator/tools/pip_package:build_pip_package' * environment, line 1573: Called die * The specific snippet of code: * "${@}" || die "ebazel failed" * * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-estimator-2.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-estimator-2.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1' * S: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1' >>> Failed to emerge sci-libs/tensorflow-estimator-2.1, Log file: >>> '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/temp/build.log' * Messages for package sci-libs/tensorflow-estimator-2.1: * ERROR: sci-libs/tensorflow-estimator-2.1::gentoo failed (compile phase): * ebazel failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3395: Called ebazel 'build' '//tensorflow_estimator/tools/pip_package:build_pip_package' * environment, line 1573: Called die * The specific snippet of code: * "${@}" || die "ebazel failed" * * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-estimator-2.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-estimator-2.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1' * S: '/var/tmp/portage/sci-libs/tensorflow-estimator-2.1/work/estimator-2.1' Reproducible: Always Steps to Reproduce: 1.emerge --sync 2.emerge -av sci-libs/tensorflow Actual Results: Notice Tensorflow pulls in tensorflow-estimator which fails to install Expected Results: Tensorflow to have install along with all of its deps # eselect python list Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python3.8 (fallback) [4] python2.7 (fallback) # emerge --info '=sci-libs/tensorflow-estimator-2.1::gentoo' Portage 2.3.87 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-9.2.0, glibc-2.30-r3, 5.5.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.5.1-gentoo-x86_64-Intel-R-_Celeron-R-_CPU_G3930_@_2.90GHz-with-gentoo-2.6 KiB Mem: 32853244 total, 32107604 free KiB Swap: 3906556 total, 3906556 free Timestamp of repository gentoo: Wed, 05 Feb 2020 23:00:01 +0000 Head commit of repository gentoo: 93ceeb886d25b210422a410523105255e2198c25 sh bash 5.0_p11 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 5.0_p11::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.6::gentoo, 3.8.1::gentoo dev-util/cmake: 3.16.3::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.1-r2::gentoo sys-devel/binutils: 2.32-r1::gentoo, 2.33.1::gentoo, 2.34::gentoo sys-devel/gcc: 9.2.0-r3::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers) sys-libs/glibc: 2.30-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo 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 localrepo location: /var/db/repos/localrepo masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/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="-march=native -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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/var/cache/binpkgs" 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 alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli client colord crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv icu introspection ipv6 jpeg jpeg2k json lcms ldap libnotify libsecret libtirpc mad mbox mmx mng mongodb mp3 mp4 mpeg multilib nautilus ncat ncurses ndiff networkmanager nls nping nptl nse ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 raw readline sasl sdl seccomp sendmail smtp spell split-usr spoof-source sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zenmap 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="mmx mmxext sse sse2" 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="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev intel 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # emerge -pqv '=sci-libs/tensorflow-estimator-2.1::gentoo' [ebuild N ] sci-libs/tensorflow-estimator-2.1 PYTHON_TARGETS="python3_6 -python3_7"
Fixed by running: # eselect python set # I would expect the system to have already set this...