Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456228 - dev-python/matplotlib-1.2.0-r2 - sphinx: ImportError: No module named matplotlib
Summary: dev-python/matplotlib-1.2.0-r2 - sphinx: ImportError: No module named matplotlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 20:48 UTC by Juergen Rose
Modified: 2013-02-24 14:54 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/build.log (build.log,734.14 KB, text/plain)
2013-02-08 20:49 UTC, Juergen Rose
Details
/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/sphinx-err-y6PwRF.log (sphinx-err-y6PwRF.log,653 bytes, text/plain)
2013-02-08 20:50 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2013-02-08 20:48:26 UTC
'emerge matplotlib' fails with:
...
Running Sphinx v1.1.3

Exception occurred:
  File "/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/work/matplotlib-1.2.0/doc/conf.py", line 50, in <module>
    import matplotlib
ImportError: No module named matplotlib
The full traceback has been saved in /var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/sphinx-err-y6PwRF.log, if you want to report the issue to the developers.


Reproducible: Always




root@cheetahnew:/root(15)# emerge --info '=dev-python/matplotlib-1.2.0-r2'
Portage 2.1.11.50 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.16.0, 3.7.3-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.3-gentoo-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     7866716 total,   2269160 free
KiB Swap:   50331640 total,  50331640 free
Timestamp of tree: Fri, 08 Feb 2013 03:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
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.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo science sunrise lisp java-overlay x-portage x-cpan x-g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-10.3 cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA"
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 /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.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/sunrise /var/lib/layman/lisp /var/lib/layman/java-overlay /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boo boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fts3 fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gstreamer gtk gtk3 gudev guile harness hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kqemu kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate live lm_sensors lua lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp overview pam pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q32 qemu qhull qt3support qt4 quicktime raw readline reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 sse4_1 ssl ssse3 stlport subtitles subversion sudo suexec svg svm swig szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb userlocales utempter v4l vaapi vala vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 ruby19" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



root@cheetahnew:/root(16)# emerge -pqv '=dev-python/matplotlib-1.2.0-r2'
[ebuild  N    ] dev-python/matplotlib-1.2.0-r2  USE="cairo doc examples gtk gtk3 latex qt4 tk wxwidgets -excel -fltk {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_1"
Comment 1 Juergen Rose 2013-02-08 20:49:24 UTC
Created attachment 338354 [details]
/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/build.log
Comment 2 Juergen Rose 2013-02-08 20:50:48 UTC
Created attachment 338356 [details]
/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/sphinx-err-y6PwRF.log
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2013-02-09 08:48:47 UTC
how on earth did you manage this?  The ebuild was only 2 or so days ago corrected to remove the leftover .pdf file, I retested it then and it built fine.  I am suspecting you had py3.2 set as system python.

ImportError: No module named matplotlib

spells PYTHONPATH has lost its way, however how it did so is something to do with your setup at emerge, not that it's wrong, but we need to know what it was to counter it.  Main thing, what was your system set python?  You could try

PYTHONPATH=.:.. /"${PYTHON}" ./make.py --small html || die, however I suspect a more radical fix is required, one we know what python version was doing th build of the docs.
Comment 4 Juergen Rose 2013-02-11 10:53:11 UTC
I just checked once more: matplotlib-1.2.0-r2 is from the normal portage tree, python2.7 is the default python, but it still fails:

 * common: running python_compile_all
Running Sphinx v1.1.3

Exception occurred:
  File "/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/work/matplotlib-1.2.0/doc/conf.py", line 50, in <module>
    import matplotlib
ImportError: No module named matplotlib
The full traceback has been saved in /var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/sphinx-err-oZ9jLN.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
Building HTML failed.
 * ERROR: dev-python/matplotlib-1.2.0-r2 failed (compile phase):
...

root@cheetahnew:/root(30)# eselect python list
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2

root@cheetahnew:/root(31)# emerge -pvD matplotlib

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

Calculating dependencies... done!
[ebuild  N     ] dev-python/matplotlib-1.2.0-r2  USE="cairo doc examples gtk gtk3 latex qt4 tk wxwidgets -excel -fltk {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_1" 0 kB

root@cheetahnew:/root(32)# emerge -pvD sphinx

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

Calculating dependencies... done!
[ebuild   R    ] dev-python/sphinx-1.1.3-r6  USE="doc latex {-test}" PYTHON_TARGETS="python2_7 python3_2 -pypy1_9 -pypy2_0 -python2_5 -python2_6 -python3_1 (-python3_3)" 0 kB

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

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

root@cheetahnew:/root(33)# env | grep PYTHONPATH
PYTHONPATH=/usr/lib/portage/pym:/usr/lib64/root


I tried also to reemerge sphinx-1.1.3-r6, but it did not help.
Comment 5 Juergen Rose 2013-02-11 14:12:44 UTC
Reemerging python-2.7.3-r3, python-3.2.3-r2 and rebooting did help.
Comment 6 Juergen Rose 2013-02-12 08:45:48 UTC
(In reply to comment #5)
> Reemerging python-2.7.3-r3, python-3.2.3-r2 and rebooting did help.

Sorry, I forgot one word, I wanted to say:

Reemerging python-2.7.3-r3, python-3.2.3-r2 and rebooting did not help.
Comment 7 Juergen Rose 2013-02-13 15:05:50 UTC
Running python-updater, what reemerges 37 packages, did not help either.
Comment 8 Sebastian Pipping gentoo-dev 2013-02-14 19:00:44 UTC
if I am not mistaken, the problem is that Sphinx is importing the already-installed matplotlib rather then the one we're about to install.  Therefore you get

 a) an import error (with matplotlib installed previously) or

 b) AttributeError: 'module' object has no attribute '__version__numpy__'
    if your previous installation of matplotlib is too old, e.g. version 1.1.0.

So I guess for a fix PYTHONPATH needs adjustment during src_compile.
Comment 9 Sebastian Pipping gentoo-dev 2013-02-14 19:57:20 UTC
When I'm changing python_compile_all from

  "${PYTHON}" ./make.py --small html || die

to

  PYTHONPATH="${S}"/lib "${PYTHON}" ./make.py --small html || die
  ^^^^^^^^^^^^^^^^^^^^^^
the error changes to

  Extension error:
  Could not import extension matplotlib.sphinxext.mathmpl 
      (exception: No module named ft2font)

and a quick inspection tells me that ft2font.so (of matplotlib) has not been built by that time.  So we might have a build order problem here, too.
Comment 10 Juergen Rose 2013-02-24 08:12:38 UTC
(In reply to comment #8)
> if I am not mistaken, the problem is that Sphinx is importing the
> already-installed matplotlib rather then the one we're about to install. 
> Therefore you get
> 
>  a) an import error (with matplotlib installed previously) or
> 
>  b) AttributeError: 'module' object has no attribute '__version__numpy__'
>     if your previous installation of matplotlib is too old, e.g. version
> 1.1.0.
> 
> So I guess for a fix PYTHONPATH needs adjustment during src_compile.

Now I hit the error on the next system, but matplotlib is currently not installed.

Running Sphinx v1.1.3

Exception occurred:
  File "/var/tmp/portage_standard/dev-python/matplotlib-1.2.0-r2/work/matplotlib-1.2.0/doc/conf.py", line 50, in <module>
    import matplotlib
ImportError: No module named matplotlib
The full traceback has been saved in /var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/sphinx-err-_LgBcp.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
Building HTML failed.
 * ERROR: dev-python/matplotlib-1.2.0-r2 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3805:  Called distutils-r1_src_compile
 *   environment, line 1336:  Called _distutils-r1_run_common_phase 'python_compile_all'
 *   environment, line  462:  Called python_compile_all
 *   environment, line 3237:  Called die
 * The specific snippet of code:
 *           VARTEXFONTS="${T}"/fonts "${PYTHON}" ./make.py --small html || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/matplotlib-1.2.0-r2'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/matplotlib-1.2.0-r2'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/work/matplotlib-1.2.0/doc'
 * S: '/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/work/matplotlib-1.2.0'

>>> Failed to emerge dev-python/matplotlib-1.2.0-r2, Log file:

>>>  '/var/tmp/portage/dev-python/matplotlib-1.2.0-r2/temp/build.log'
root@lynx:/root(49)# qlist -Iv matplotlib
root@lynx:/root(50)# genlop -t matplotlib | tail

     Thu Nov 29 18:20:53 2012 >>> dev-python/matplotlib-1.2.0
       merge time: 27 minutes and 30 seconds.

     Sat Dec 15 17:06:59 2012 >>> dev-python/matplotlib-1.2.0-r1
       merge time: 27 minutes and 18 seconds.

     Tue Jan 15 21:07:50 2013 >>> dev-python/matplotlib-1.2.0-r1
       merge time: 33 minutes and 1 second.

root@lynx:/root(51)#  qlist -Iv numpy
dev-python/numpy-1.6.2-r2
root@lynx:/root(52)# genlop -t numpy | tail

     Thu Feb 21 00:42:05 2013 >>> dev-python/numpy-1.6.2-r2
       merge time: 3 minutes and 23 seconds.

     Fri Feb 22 14:38:07 2013 >>> dev-python/numpy-1.6.2-r2
       merge time: 3 minutes and 23 seconds.

     Sat Feb 23 20:10:43 2013 >>> dev-python/numpy-1.6.2-r2
       merge time: 3 minutes and 31 seconds.
Comment 11 Juergen Rose 2013-02-24 08:21:51 UTC
The only installed files with relation to matplotlib, I found, are:

root@lynx:/root(55)#  find /usr/lib/ -name matplotlib\*
/usr/lib/python2.7/site-packages/Vision/matplotlibNodes.pyc
/usr/lib/python2.7/site-packages/Vision/matplotlibNodes.pyo
/usr/lib/python2.7/site-packages/Vision/matplotlibTypes.py
/usr/lib/python2.7/site-packages/Vision/matplotlibTypes.pyo
/usr/lib/python2.7/site-packages/Vision/matplotlibNodes.py
/usr/lib/python2.7/site-packages/Vision/matplotlibTypes.pyc
root@lynx:/root(56)# qfile -v /usr/lib/python2.7/site-packages/Vision/matplotlibTypes.py
sci-chemistry/mgltools-vision-1.5.6_rc3 (/usr/lib64/python2.7/site-packages/Vision/matplotlibTypes.py)
Comment 12 Benjamin Réveillé 2013-02-24 10:05:22 UTC
(In reply to comment #0)
exact same issue on my machine trying to install matplotlib fr the first time.

#emerge --info
Portage 2.1.11.52 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.16.0, 3.6.11-gentoo x86_64)
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     8193156 total,    960356 free
KiB Swap:    7815584 total,   7306596 free
Timestamp of tree: Sun, 24 Feb 2013 03:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo vmware dwardo
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x Oracle-BCLA-JavaSE Intel-SDP skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --keep-going --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.xservers.ro/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.bih.net.ba/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/vmware /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus accessibility acl acpi aim alsa amd64 amr apache2 apng ass audiofile avahi bash-completion bcmath berkdb bidi bluetooth bzip2 cairo calendar captury ccache cdaudio cdda cddb cdinstall cdio cdr cgi chroot cli consolekit cpudetection cracklib crypt css cups cvs cxx dbus declarative device-mapper dga dhcp dirac divx dnd doc dri dts dv dvb dvd dvdr dvdread emacs embedded emboss emoticon enca encode exif extras faac faad fam fame fat fbcon fbcondecor ffmpeg fftw firefox firefox3 flac flash font-server fontconfig fortran fortran2003 fpx fr freetype fts3 fuse g3dvl gcj gcl gd gdbm gif gimp git glib glibc-omitfp glitz gmail gmedia gmp gnutls goom gphoto2 gpm graphviz gs gsl gstreamer gtk h323 highlight history hpcups hpn htmlhandbook httpd iconv icq icu ieee1394 imagemagick imap imlib ipod ithreads jabber jadetex java jemalloc jpeg jpeg2k kde kdepim kerberos lapack lastfm lcms libnotify libv4l libv4l2 libwww lirc live lm_sensors logitech-mouse logrotate lua lzo mad math matroska mdnsresponder-compat messages mikmod mime minizip mjpeg mmx mmxext mng mod modplug modules motif mp3 mp3tunes mp4 mpeg mpeg2 mpi mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurses network nforce2 nis nls nptl nsplugin ntfs nvcontrol nvidia nvtv objc ogg openal opengl openmp openssl oss pam pango parport parse-clocks pcre pdf pdfimport perl pic plasma png policykit posix ppds projectm pulseaudio pvr python qt3support qt4 quicktime rar rdesktop readline realmedia remote romio rtc rtmp rtsp samba sasl scanner schroedinger screen script sdl secure-delete semantic-desktop server session skins slang smbclient speex spell sql sqlite srt sse sse2 sse3 sse4_1 ssl ssse3 startup-notification stream subtitles subversion svg swat sysfs szip tcl tcpd tetex texteffect theora threads threadsafe thunderbird tidy tiff tk transcode truetype udev udisks unicode upnp upower usb utils v4l v4l2 vcd vdpau vdr videos vim vim-pager vim-syntax visualization vlm vorbis webkit webpresence webserver winpopup wmf wmp wxwidgets wxwindows x264 xanim xcb xcomposite xface xine xinerama xml xmlreader xmltv xosd xpm xscreensaver xulrunner xv xvid xvmc yahoo yv12 zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse joystick evdev v4l" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR en en_US en_GB" LIRC_DEVICES="default devinput userspace" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-24 10:48:40 UTC
Eh, so far I don't see any obvious differences between my and your build log... yet it works fine for me.
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-24 11:43:57 UTC
Ok, I got it. PYTHONPATH setting in eclass was disabled because of in-source build being enabled. While I need to change that, it will require a fair bit of testing.

For now, I have set PYTHONPATH in the ebuild.
Comment 15 Juergen Rose 2013-02-24 14:54:15 UTC
As a workaround, I can do:

root@lynx:/root(65)# USE=-doc emerge -v1 matplotlib
root@lynx:/root(66)# emerge -vuND world

The last command succesfully reemerges matplotlib with the doc USE flag.

I think we had already the same workaround some weeks ago with an other bug.