Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603196 - dev-python/pillow-3.4.2-r1 USE=doc: AssertionError: len(context) = 4
Summary: dev-python/pillow-3.4.2-r1 USE=doc: AssertionError: len(context) = 4
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-20 14:02 UTC by Andrey Grozin
Modified: 2018-09-10 01:34 UTC (History)
1 user (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 Andrey Grozin gentoo-dev 2016-12-20 14:02:58 UTC
* python3_5: running distutils-r1_run_phase python_compile_all
make -j3 -C docs html 
make: Entering directory '/var/tmp/portage/dev-python/pillow-3.4.2-r1/work/Pillow-3.4.2-python3_5/docs'
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.3.5
....
/var/tmp/portage/dev-python/pillow-3.4.2-r1/work/Pillow-3.4.2-python3_5/docs/reference/plugins.rst:307: WARNING: autodoc: failed to import module 'PIL.WebPImagePlugin'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/sphinx/ext/autodoc.py", line 385, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/pillow-3.4.2-r1/work/Pillow-3.4.2-python3_5/build/lib/PIL/WebPImagePlugin.py", line 4, in <module>
    from PIL import _webp
ImportError: cannot import name '_webp'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [  1%] PIL
writing output... [  3%] about
writing output... [  5%] handbook/appendices
writing output... [  7%] handbook/concepts
writing output... [  9%] handbook/image-file-formats
writing output... [ 11%] handbook/index
writing output... [ 13%] handbook/overview
writing output... [ 15%] handbook/tutorial
writing output... [ 17%] handbook/writing-your-own-file-decoder
writing output... [ 19%] index

Exception occurred:
  File "/usr/lib/python3.5/site-packages/docutils/writers/_html_base.py", line 671, in depart_document
    assert not self.context, 'len(context) = %s' % len(self.context)
AssertionError: len(context) = 4


elrond ~ # emerge -pqv '=dev-python/pillow-3.4.2-r1::gentoo'
[ebuild   R   ] dev-python/pillow-3.4.2-r1  USE="doc* jpeg lcms tiff tk truetype zlib -examples -jpeg2k {-test} -webp" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4"

elrond ~ # emerge --info '=dev-python/pillow-3.4.2-r1::gentoo'
Portage 2.3.3 (python 3.5.2-final-0, default/linux/x86/13.0/desktop/plasma, gcc-5.3.0, glibc-2.23-r3, 4.4.0-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.0-gentoo-i686-Pentium-R-_Dual-Core_CPU_E5300_@_2.60GHz-with-gentoo-2.3
KiB Mem:     2061152 total,    600140 free
KiB Swap:    2088412 total,   1701896 free
Timestamp of repository gentoo: Tue, 20 Dec 2016 12:45:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

lisp
    location: /var/lib/layman/lisp
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/lisp.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

grozin
    location: /usr/local/portage
    masters: gentoo
    priority: 60

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/lib/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /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-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/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 xattr"
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="-j3"
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 acpi alsa bash-completion berkdb blas bluetooth boehm-gc branding bzip2 cairo cdda cdr consolekit cracklib crypt css cups curl cxx dbus declarative doc dri dvd dvdr emacs enca encode exif fam 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 mng modules mozilla mp3 mp4 mpeg mule ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf phonon plasma plotutils png policykit ppds python qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcl tcpd tiff tk truetype udev udisks umfpack unicode upower usb vorbis widgets wxwidgets x264 x86 xattr 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" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" 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="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-python/pillow-3.4.2-r1::gentoo was built with the following:
USE="jpeg lcms tiff tk truetype zlib -doc -examples -jpeg2k -test -webp" PYTHON_TARGETS="python2_7 python3_5 -pypy -python3_4"
Comment 1 Pavel Goran 2017-10-07 04:34:47 UTC
I just encountered this bug, as well.
Comment 2 Virgil Dupras (RETIRED) gentoo-dev 2018-06-29 00:28:58 UTC
I could not manage to reproduce this and I've tried many combinations of pillow/docutils/sphinx versions.

Could you please confirm that the failure still happens on an up-to-date environment?
Comment 3 Pavel Goran 2018-09-10 01:34:33 UTC
It now works for me, too.