Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581550 - dev-python/matplotlib-2.0.2 : The following required packages can not be built: * qt4agg
Summary: dev-python/matplotlib-2.0.2 : The following required packages can not be buil...
Status: RESOLVED OBSOLETE
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:
Depends on:
Blocks:
 
Reported: 2016-04-29 12:32 UTC by Toralf Förster
Modified: 2020-01-01 12:13 UTC (History)
6 users (show)

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


Attachments
dev-python:matplotlib-1.5.1:20160429-113808.log (dev-python:matplotlib-1.5.1:20160429-113808.log,537.57 KB, text/plain)
2016-04-29 12:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,309.06 KB, text/plain)
2016-04-29 12:32 UTC, Toralf Förster
Details
environment (environment,162.32 KB, text/plain)
2016-04-29 12:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-04-29 12:32:15 UTC
                        * The following required packages can not be built:
                        * qt4agg
 * ERROR: dev-python/matplotlib-1.5.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:


$ cat emerge-info.txt
  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named amd64-kde-unstable_20160423-211459) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

  make.conf: USE="mmx sse sse2 pax_kernel xtpax -cdinstall -oci8 -bindist X a52 aac aes-ni alsa apache2 avx avx2 cairo cdda cdr cgroups client consolekit corefonts cups custom-cflags custom-optimization dbus declarative dnssec drmkms dts dvb dvd dvdr ecc encode exif fam ffmpeg flac fontconfig fortran fpm gif git glamor gnuplot gpg gpm gtk gui help httpd hwaccel icu isag java jpeg kde lcms libnotify libvirtd live logrotate lua mad matroska mbox minizip mmx mng mp3 mp4 mpeg mpg123 mysql mysqli ogg opengl orc pcre16 pdf png policykit pwquality qemu qml qt3support qt5 rtsp samba script scrypt sddm sdl snmp spice sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssse3 startup-notification svg system-cairo system-icu system-jpeg system-libvpx system-sqlite theora thinkpad tiff tk tls tor-hardening truetype udev uml upnp usb usbredir uxa v4l v4l2 vaapi vcd vcdx video vorbis vpx widgets wxwidgets x264 xa xcb xinerama xkb xml xmp xscreensaver xv xvfb xvid xz zenmap -bindist -hpn -ldap -semantic-desktop -urandom python introspection"

  -----------------------------------------------------------------
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.23-r2, 4.4.8-hardened-r1 x86_64)
=================================================================
System uname: Linux-4.4.8-hardened-r1-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16157888 total,    925692 free
KiB Swap:   16777212 total,  16729340 free
Timestamp of repository gentoo: Fri, 29 Apr 2016 09:43:35 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: 1

local
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /etc/stunnel/stunnel.conf /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/yp/Makefile"
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.5/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php7.0/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="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--verbose-conflicts --color=n --nospinner --tree --quiet-build --accept-properties=-interactive --accept-restrict=-fetch"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gor.bytemark.co.uk/gentoo/ rsync://ftp.snt.utwente.nl/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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 aes-ni alsa amd64 apache2 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cgroups cli client consolekit corefonts cracklib crypt cups custom-cflags custom-optimization cxx dbus declarative dnssec dri drmkms dts dvb dvd dvdr ecc emboss encode exif fam ffmpeg firefox flac fontconfig fortran fpm gdbm gif git glamor gnuplot gpg gpm gtk gui help httpd hwaccel iconv icu introspection ipv6 isag java jpeg kde kipi lcms libnotify libvirtd live logrotate lua mad matroska mbox minizip mmx mmxext mng modules mp3 mp4 mpeg mpg123 multilib mysql mysqli ncurses nls nptl ogg opengl openmp orc pam pango pax_kernel pcre pcre16 pdf phonon plasma png policykit ppds pwquality python qemu qml qt3support qt4 qt5 readline rtsp samba script scrypt sddm sdl seccomp session snmp spell spice sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssse3 startup-notification svg system-cairo system-icu system-jpeg system-libvpx system-sqlite tcpd theora thinkpad tiff tk tls tor-hardening truetype udev udisks uml unicode upnp upower usb usbredir uxa v4l v4l2 vaapi vcd vcdx video vorbis vpx widgets wxwidgets x264 xa xattr xcb xcomposite xinerama xkb xml xmp xscreensaver xtpax xv xvfb xvid xz zenmap zlib" ABI_X86="64" 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="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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Toralf Förster gentoo-dev 2016-04-29 12:32:18 UTC
Created attachment 432564 [details]
dev-python:matplotlib-1.5.1:20160429-113808.log
Comment 2 Toralf Förster gentoo-dev 2016-04-29 12:32:20 UTC
Created attachment 432566 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2016-04-29 12:32:23 UTC
Created attachment 432568 [details]
environment
Comment 4 Andrey Grozin gentoo-dev 2016-12-19 10:42:45 UTC
The same problem (with slight variations). I'm trying to emerge matplotlib-1.5.3 on a ~x86 box with PYTHON_TARGETS="python2_7 python3_5". In 2.7 everything's fine, distutils-r1_run_phase python_compile succeeds. In 3.5

qt4agg: no  [Check timed out]

...

* The following required packages can not be built:
* qt4agg

PyQt4 has been successfully emerged for python 2.7 and 3.5 very recently. What can be the reason of this timeout specific to python3?
Comment 5 Andrey Grozin gentoo-dev 2016-12-19 11:17:23 UTC
The next attempt has succeeded. It seems this timeout error depends on something random (not the phase of the moon because both the failed attempt and the successful one are today). Is it possible to increase the timeout value to make the test more robust?
Comment 6 Fabio Rossi 2017-02-21 16:44:26 UTC
I confirm the same problem even with the latest stable version, 1.4.3, and PYTHON_TARGETS="python2_7 python3_4 -python3_5"

upstream added the timeout to avoid race conditions, but they didn't understand which is the reason of the race itself. See also https://github.com/matplotlib/matplotlib/issues/3738

I have created a patch to reverse the order of backend checks, first the one for qt4 and then qt5. On my system works solving my problem but I don't know if it's a definitive solution for everyone.

Here is the simple patch:

--- setup.py    2015-02-16 04:46:36.000000000 +0100
+++ setup.py.new        2017-02-21 17:24:28.903840102 +0100
@@ -92,8 +92,8 @@
     # being the most preferred.  The first one that looks like it will
     # work will be selected as the default backend.
     setupext.BackendMacOSX(),
-    setupext.BackendQt5(),
     setupext.BackendQt4(),
+    setupext.BackendQt5(),
     setupext.BackendPySide(),
     setupext.BackendGtk3Agg(),
     setupext.BackendGtk3Cairo(),
Comment 7 Andrey Grozin gentoo-dev 2017-06-05 23:48:51 UTC
The same happened to me: matplotlib-2.0.2, PYTHON_TARGETS="python2_7 python3_5 python3_6".
The next attempt (without any changes) proceeded farther, and then failed for a different reason. I'll file a separate bug.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-06 07:12:31 UTC
Could one of you report this upstream since I can't reproduce it?
Comment 9 Andrey Grozin gentoo-dev 2017-06-06 11:21:37 UTC
(In reply to Michał Górny from comment #8)
> Could one of you report this upstream since I can't reproduce it?
Sure I can. But the failure is undeterministic. I have no substantial statistics; from the little one I have it happens with 50% probability.
Comment 10 Jean-Claude Repetto 2017-06-20 13:16:34 UTC
Hello,
I have a similar problem:

The following required packages can not be built:
* gtk3agg
Comment 11 Mircea Sava 2017-12-16 10:45:25 UTC
Same happened here during an --emptytree rebuild. The folowing rebuild succeded nicely.
Comment 12 Mircea Sava 2017-12-16 10:46:47 UTC
(In reply to Mircea Sava from comment #11)
> Same happened here during an --emptytree rebuild. The folowing rebuild
> succeded nicely.

Ah, sorry, I forgot to mention my version was actually 1.5.3-r2.
Comment 13 Martin von Gagern 2018-01-08 00:07:39 UTC
I hit comment 10 (the gtk3agg version of this), too, while writing bug 641624 comment 4. Do we have an upstream bug for this yet?

Would changing the timeout be a viable workaround? There is a huge gap between the 150 minutes used by the Debian build system described in https://github.com/matplotlib/matplotlib/issues/3738 and the 10 seconds used by https://github.com/matplotlib/matplotlib/pull/3741. If we were to change it to e.g. 180 seconds, then we would stand a better chance to see whether this is just a bad timeout or actually some hanging process? Might run some tests with this if I find the time, but feel free to do the same as I am short on time just now.
Comment 14 David Seifert gentoo-dev 2020-01-01 12:13:46 UTC
File a new bug if problem persists.