Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481564 - dev-python/matplotlib-1.3.0 - .../work/matplotlib-1.3.0-python3_2/setupext.py: RuntimeError: Gtk couldn't be initialized
Summary: dev-python/matplotlib-1.3.0 - .../work/matplotlib-1.3.0-python3_2/setupext.py...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
: 485172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-18 18:56 UTC by Ian Delaney (RETIRED)
Modified: 2013-09-25 12:34 UTC (History)
5 users (show)

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


Attachments
build log (matplotlib-1.3.0_build.log,21.91 KB, text/x-log)
2013-08-18 18:56 UTC, Ian Delaney (RETIRED)
Details
upstream patch (matplotlib-1.3.0-gtkX.patch,1.34 KB, patch)
2013-08-19 15:44 UTC, Ian Delaney (RETIRED)
Details | Diff
ebuild, pulling in the patch (matplotlib-1.3.0.ebuild,4.81 KB, text/plain)
2013-09-24 10:06 UTC, Bodo Graumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2013-08-18 18:56:47 UTC
Created attachment 356390 [details]
build log

builds fine as user.

testuser@archtester ~/cvsPortage/gentoo-x86/dev-python/matplotlib $ ebuild matplotlib-1.3.0.ebuild clean install


fails with 

testuser@archtester ~/cvsPortage/gentoo-x86/dev-python/matplotlib $ sudo ebuild matplotlib-1.3.0.ebuild clean install

OR

archtester matplotlib # emerge -1 matplotlib
Comment 1 Rafał Mużyło 2013-08-18 22:59:01 UTC
Most likely it's just an updated matplotlib-1.2.0-setup.patch that's needed here.
Comment 2 MarisN 2013-08-19 10:23:26 UTC
Just for the record - there's an upstream issue with a patch: https://github.com/matplotlib/matplotlib/pull/1939
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2013-08-19 15:44:18 UTC
Created attachment 356424 [details, diff]
upstream patch

(In reply to Rafał Mużyło from comment #1)
> Most likely it's just an updated matplotlib-1.2.0-setup.patch that's needed
> here.

The old code being replaced isn't present in the new setup.py, no longer easily applied.

The patch cited in the pull request appears to be effective for the build as well as the test(s).

dev-python/matplotlib $ sudo ebuild matplotlib-1.3.0.ebuild clean merge

>>> dev-python/matplotlib-1.3.0 merged.
>>> Regenerating /etc/ld.so.cache...
Comment 4 Rafał Mużyło 2013-09-17 14:59:05 UTC
*** Bug 485172 has been marked as a duplicate of this bug. ***
Comment 5 Bodo Graumann 2013-09-24 10:06:32 UTC
Created attachment 359350 [details]
ebuild, pulling in the patch

I had the same issue, found the upstream patch, put it as "matplotlib-1.3.0-gtk-test.patch" into my local repository and used the attached ebuild. Now it merges fine.
Comment 6 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-09-25 12:34:40 UTC
+  25 Sep 2013; Kacper Kowalik <xarthisius@gentoo.org>
+  +files/matplotlib-1.3.0-setup_without_X11.patch, matplotlib-1.3.0.ebuild:
+  Backport upstream changes that allows to build matplotlib when X11 is not
+  available. Fixes #481564 by Ian Delaney <idella4@gentoo.org>. Thanks to MarisN
+  <maris.gis@gmail.com> and Bodo Graumann <mail@bodograumann.de> for finding and
+  testing the patch respectively