Hi, I try to emerge dev-python/matplotlib on gentoo-prefix (but I expect it be a gentoo problem). I have installed gtk and pygtk, but matplotlib just won't recognize these on emerge. Reproducible: Always Steps to Reproduce: 1. emerge dev-python/matplotlib (on gentoo-prefix) 2. 3. Actual Results: * Building of dev-python/matplotlib-1.2.0-r1 with CPython 2.7... python2.7 setup.py build -b build basedirlist is: ['/usr/local', '/usr'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.0 python: 2.7.3 (default, Feb 1 2013, 02:47:33) [GCC 4.6.3] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.6.2 freetype2: 16.0.10 * WARNING: Could not find 'freetype2' headers in any * of '/usr/local/include', '/usr/include', * '/usr/local/include', '/usr/include', '.', '/state * /partition1/linpengt/gentoo/usr/include/freetype2' * . OPTIONAL BACKEND DEPENDENCIES libpng: 1.5.13 Mac OS X native: no Qt: no Qt4: Qt: 4.8.4, PyQt4: 4.9.4 PySide: no Cairo: 1.10.0 OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 2.1 pytz: 2012j OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: 8.70 latex: 3.1415926 pdftops: 0.20.5 Expected Results: However, if I download the matlplotlib source and build it by my own, the result is: bash-3.2$ python setup.py build basedirlist is: ['/usr/local', '/usr'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.0rc1 python: 2.7.3 (default, Feb 1 2013, 02:47:33) [GCC 4.6.3] platform: linux2 REQUIRED DEPENDENCIES numpy: 1.6.2 freetype2: 16.0.10 * WARNING: Could not find 'freetype2' headers in any * of '/usr/local/include', '/usr/include', * '/usr/local/include', '/usr/include', '.', '/state * /partition1/linpengt/gentoo/usr/include/freetype2' * . OPTIONAL BACKEND DEPENDENCIES libpng: 1.5.13 Tkinter: Tkinter: 81008, Tk: 8.6, Tcl: 8.6 Gtk-Message: Failed to load module "canberra-gtk-module" Gtk+: gtk+: 2.24.14, glib: 2.34.1, pygtk: 2.24.0, pygobject: 2.28.6 Mac OS X native: no Qt: no Qt4: Qt: 4.8.4, PyQt4: 4.9.4 PySide: no Cairo: 1.10.0 OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 2.1 pytz: 2012j OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: 8.70 latex: 3.1415926 pdftops: 0.20.5 Then it can find the Tkinter, gtk+, etc.
1) Please post your `emerge --info' output in a comment. 2) Please post your `emerge --vpq dev-python/matplotlib' output in a comment. 3) Please attach the entire build log to this bug report.
can you try # emerge =dev-python/matplotlib-1.2.0-r1 or =dev-python/matplotlib-1.2.0
Ian, Thanks for the reply. I tried, but it didn't help. I think there is something wrong with the patch for dev-python/matplotlib. (In reply to comment #2) > can you try # emerge =dev-python/matplotlib-1.2.0-r1 or > =dev-python/matplotlib-1.2.0
Created attachment 340370 [details] build.log
Created attachment 340372 [details] info.log
Created attachment 340374 [details] vpq.log
emerge =dev-python/matplotlib-1.2.0 * Last emerge --sync was 33d 1h 12m 53s ago. That long?
Ah, sorry, the blocker was premature. That sync date is far too old to be related.
Hi, Just an update. I ran emerge --sync and then emerge --oneshot portage, and then emerged dev-python/matplotlib on the upgraded system. The "bug" still persists. (In reply to comment #8) > Ah, sorry, the blocker was premature. That sync date is far too old to be > related.
Your emerge log showed "-gtk". Add "dev-python/matplotlib gtk" to package.use and try emerging again.
Jeremy, Hi, I just tried your suggestion, but it didn't help. Same results. Best. (In reply to comment #10) > Your emerge log showed "-gtk". Add "dev-python/matplotlib gtk" to > package.use and try emerging again.
(In reply to Linpeng Tang from comment #11) > Jeremy, > > Hi, I just tried your suggestion, but it didn't help. Same results. > > Best. > Please attach a build.log from that.
Is this reproducible with matplotlib-1.3.(0/1)?
Please reopen if this problem still exists with version 1.4