Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523204 - dev-python/sphinx-bootstrap-theme-0.4.0 - ImportError: No module named 'setuptools'
Summary: dev-python/sphinx-bootstrap-theme-0.4.0 - ImportError: No module named 'setup...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 08:17 UTC by Andrey Grozin
Modified: 2014-09-26 01:54 UTC (History)
0 users

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


Attachments
build log (sphinx-bootstrap-theme-0.4.0.log,29.92 KB, text/plain)
2014-09-19 08:17 UTC, Andrey Grozin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2014-09-19 08:17:40 UTC
Created attachment 385100 [details]
build log

I'm still trying to move away from PYTHON_TARGETS="... python3_2 ...", so far everything fails. I've run python-updater. I (after long trials) have fount a (very long) list of packages to re-emerge which does not lead to 10 screens of "!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:". Fine. With eselected python-3.4 emerging dev-python/sphinx-bootstrap-theme-0.4.0 (from where it has been pulled?) stops with the message that I should eselect python-3.3. OK, I've done this. Now

>>> Failed to emerge dev-python/sphinx-bootstrap-theme-0.4.0, Log file:

>>>  '/var/log/portage/dev-python:sphinx-bootstrap-theme-0.4.0:20140919-075041.log'

 * Messages for package dev-python/sphinx-bootstrap-theme-0.4.0:

 * ERROR: dev-python/sphinx-bootstrap-theme-0.4.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3416:  Called distutils-r1_src_compile
 *   environment, line  994:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  250:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3287:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2315:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2258:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2256:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2306:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  665:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  983:  Called distutils-r1_python_compile
 *   environment, line  863:  Called esetup.py 'build'
 *   environment, line 1434:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 * 
 * If you need support, post the output of `emerge --info '=dev-python/sphinx-bootstrap-theme-0.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/sphinx-bootstrap-theme-0.4.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-python:sphinx-bootstrap-theme-0.4.0:20140919-075041.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/sphinx-bootstrap-theme-0.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/sphinx-bootstrap-theme-0.4.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/sphinx-bootstrap-theme-0.4.0/work/sphinx-bootstrap-theme-0.4.0'
 * S: '/var/tmp/portage/dev-python/sphinx-bootstrap-theme-0.4.0/work/sphinx-bootstrap-theme-0.4.0'

What next? How can I get something usable after excluding python3_2 from PYTHON_TARGETS?

elrond ~ # emerge --info '=dev-python/sphinx-bootstrap-theme-0.4.0::gentoo'
Portage 2.2.13 (python 3.3.5-final-0, default/linux/x86/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.12.6-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-i686-Pentium-R-_Dual-Core_CPU_E5300_@_2.60GHz-with-gentoo-2.2
KiB Mem:     2062036 total,    117844 free
KiB Swap:    2088412 total,   1968244 free
Timestamp of tree: Thu, 18 Sep 2014 04:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.8, 3.2.5-r6, 3.3.5, 3.4.1
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo science lisp sunrise grozin
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/lisp /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa bash-completion berkdb blas bluetooth boehm-gc branding browserplugin bzip2 cairo cdda cdr consolekit cracklib crypt css cups curl cxx dbus declarative dirac doc dri dvd dvdnav dvdr emacs enca encode exif fam ffmpeg fftw firefox flac fltk fortran gd gdbm gif glamor gmp gpm gsl gtk iconv imagemagick jpeg kde kipi kpathsea lapack latex lcms ldap leim libnotify lzma mad mmx mng modules mozilla mp3 mp4 mpeg mule ncurses nls nptl nsplugin offensive ogg opengl openmp pam pango pcre pdf phonon plasma plotutils png policykit ppds python qt3support qt4 readline schroedinger sdl semantic-desktop session speex spell sse sse2 ssl startup-notification svg tcl tcpd theora tiff tk truetype udev udisks umfpack unicode upower usb v4l2 vcd vorbis win32codecs wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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"
USE_PYTHON="3.4 3.3 2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

elrond ~ # emerge -pqv '=dev-python/sphinx-bootstrap-theme-0.4.0::gentoo'
[ebuild  N    ] dev-python/sphinx-bootstrap-theme-0.4.0  PYTHON_TARGETS="python2_7 python3_3 (-python3_2)"
Comment 1 Andrey Grozin gentoo-dev 2014-09-19 08:26:50 UTC
I see. setuptools has not been emerged for python-3.3. But I cannot emerge it in any way except as a member of a list of about 100 packages. And portage, for some reason, decided to emerge this sphinx-bootstrap-theme before setuptools.

elrond ~ # emerge -av1 setuptools

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/setuptools-5.7  USE="{-test}" PYTHON_TARGETS="python2_7 python3_3* python3_4* -pypy (-python3_2*)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-python/setuptools:0

  (dev-python/setuptools-5.7:0/0::gentoo, ebuild scheduled for merge) pulled in by
    dev-python/setuptools (Argument)

  (dev-python/setuptools-5.7:0/0::gentoo, installed) pulled in by
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-)] required by (dev-python/numpy-1.8.2:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                       
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (dev-python/pytz-2014.7:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                                                                             
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (dev-python/pygments-1.6_p20140324:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                                                                                        
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-)] required by (dev-python/pyflakes-0.8.1:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                          
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_pypy(-)] required by (dev-python/cssutils-0.9.10-r1:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                    
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (dev-python/sphinx-1.2.2:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                                                                              
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (dev-python/chardet-2.2.1:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                                                                               
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)] required by (dev-python/logilab-common-0.61.0:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                                                                                       
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-)] required by (dev-python/ipython-1.2.1:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                                                                                         
    dev-python/setuptools[python_targets_python2_7(-)?,python_targets_python3_2(-)?,python_targets_python3_3(-)?,-python_single_target_python2_7(-),-python_single_target_python3_2(-),-python_single_target_python3_3(-)] required by (sci-libs/gdal-1.10.1:0/0::gentoo, installed)
                                                                                                                                                                                                                                                                                                     


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.
Comment 2 Andrey Grozin gentoo-dev 2014-09-19 08:42:26 UTC
Actually the list of packages which portage accepts (without these "multiple instances in a slot") is not 100 but 167 packages long. But portage tries to emerge them in such an order that the whole thing fails.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-09-25 15:15:19 UTC
What next? How can I get something usable after excluding python3_2 from PYTHON_TARGETS?

makes this appear a side effect of trying to purge py3.2 from your PYTHON_TARGETS while py3.2 is still being pulled in as an active python impl.  afaik the py3.2 use flags is masked but py3.2 isn't and why this is so is in the hands of that dev managing its demise.  I'd predict further down the track this kind of grief will disappear once py3.2 as an impl is (finally) masked and this block will disappear and this bug can be closed obsolete or can'tfix
Comment 4 Andrey Grozin gentoo-dev 2014-09-26 01:54:17 UTC
OK, I've found a workaround. It is long and tedious, but it works. After changing PYTHON_TARGETS="python2_7 python3_2" to "python2_7 python3_3 python3_4"

1. eselect python-3.2 (I already have all packages emerged for 3.2)
2. set USE=-doc (otherwise portage will try to emerge sphinx-bootstrap-theme early and will fail)
3. emerge a long list of packages (start from trying setuptools and add everything mentioned in portage error messages; the process terminates after 10 iterations or slightly more, and includes non-python packages like sci-libs/gdal or kde-base/kate)
4. eselect python-3.3
5. set USE=doc (I always have it this way)
6. Re-emerge the same list of packages (some additional ones will be pulled in by USE=doc)