Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458924 - dev-python/matplotlib-1.2.0 fails to build/install GTK+ backend
Summary: dev-python/matplotlib-1.2.0 fails to build/install GTK+ backend
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-23 23:20 UTC by Linpeng Tang
Modified: 2015-03-20 12:36 UTC (History)
2 users (show)

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


Attachments
build.log (mat.build.log,749.54 KB, text/plain)
2013-02-27 16:59 UTC, Linpeng Tang
Details
info.log (info.log,4.61 KB, text/plain)
2013-02-27 16:59 UTC, Linpeng Tang
Details
vpq.log (vpq.log,134 bytes, text/plain)
2013-02-27 16:59 UTC, Linpeng Tang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Linpeng Tang 2013-02-23 23:20:59 UTC
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.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-26 14:59:29 UTC
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.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2013-02-27 14:55:51 UTC
can you try # emerge =dev-python/matplotlib-1.2.0-r1 or =dev-python/matplotlib-1.2.0
Comment 3 Linpeng Tang 2013-02-27 16:53:14 UTC
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
Comment 4 Linpeng Tang 2013-02-27 16:59:06 UTC
Created attachment 340370 [details]
build.log
Comment 5 Linpeng Tang 2013-02-27 16:59:24 UTC
Created attachment 340372 [details]
info.log
Comment 6 Linpeng Tang 2013-02-27 16:59:39 UTC
Created attachment 340374 [details]
vpq.log
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-28 03:15:50 UTC
emerge =dev-python/matplotlib-1.2.0
 * Last emerge --sync was 33d 1h 12m 53s ago.

That long?
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-28 08:47:19 UTC
Ah, sorry, the blocker was premature. That sync date is far too old to be related.
Comment 9 Linpeng Tang 2013-02-28 14:40:55 UTC
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.
Comment 10 Jeremy Egner 2013-03-09 07:01:13 UTC
Your emerge log showed "-gtk". Add "dev-python/matplotlib gtk" to package.use and try emerging again.
Comment 11 Linpeng Tang 2013-03-09 15:13:06 UTC
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.
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2013-12-11 14:03:10 UTC
(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.
Comment 13 Justin Lecher (RETIRED) gentoo-dev 2013-12-12 12:35:32 UTC
Is this reproducible with matplotlib-1.3.(0/1)?
Comment 14 Justin Lecher (RETIRED) gentoo-dev 2015-03-20 12:36:15 UTC
Please reopen if this problem still exists with version 1.4