emerge matplotlib on stable "amd64". It fails with : ... qt4agg: no [PyQt4 not found] ... * The following required packages can not be built: * qt4agg PyQt4 is installed (checked with eix): dev-python/PyQt4 Installed versions: 4.11.3(23:53:38 16/11/2014)(X dbus debug declarative doc examples help kde multimedia opengl phonon script sql svg webkit -designer -scripttools -testlib -xmlpatterns PYTHON_TARGETS="python2_7 -python3_3 -python3_4") Reproducible: Always
Created attachment 390236 [details] build.log
*** Bug 530804 has been marked as a duplicate of this bug. ***
Could you try the following: python2.7 -c "from PyQt4 import pyqtconfig ; qtconfig = pyqtconfig.Configuration()" it shouldn't return anything if PyQt4 is working.
(In reply to Kacper Kowalik (Xarthisius) from comment #3) > Could you try the following: > > python2.7 -c "from PyQt4 import pyqtconfig ; qtconfig = > pyqtconfig.Configuration()" > > it shouldn't return anything if PyQt4 is working. I get here: root@impala:/root(2)# python2.7 -c "from PyQt4 import pyqtconfig ; qtconfig = pyqtconfig.Configuration()" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: cannot import name pyqtconfig
Same here.... orzel@berlioz /home/orzel% python2.7 -c "from PyQt4 import pyqtconfig ; qtconfig =pyqtconfig.Configuration()" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: cannot import name pyqtconfig
Found this: http://pyqt.sourceforge.net/Docs/PyQt4/build_system.html The sip version installed on my system is dev-python/sip-4.16.4, so this rules out the "sip5" stuff. But maybe PyQt4 is not built with the right configure stuff ?
This was fixed in matplotlib 1.4.1. Let's go for stabilizing 1.4.2
> This was fixed in matplotlib 1.4.1. Let's go for stabilizing 1.4.2 There is one notable case where this doesn't work, and that's the use of sci-mathematics/sage from the sage-on-gentoo overlay. Sage depends on matplotlib-1.3.* . We ran into this issue here: https://github.com/cschwan/sage-on-gentoo/issues/328#issuecomment-64926051 . I imagine a lot of people who need the matplotlib package also need sage, as they are used in roughly the same field.
Just to be clear. sage-on-gentoo doesn't need to have USE=qt4 for matplotlib. I am not sure there are dependencies requiring matplotlib[qt4] anywhere in the tree. As far as I am concerned you can go ahead with stabilising MPL 1.4.x, as a bonus MPL 1.4.x works with numpy 1.9.x whereas 1.3.x has issues (at runtime).
If matplotlib 1.3.x is to stay in the tree, can you at least put a use.mask for it?
(In reply to Francois Bissey from comment #10) > If matplotlib 1.3.x is to stay in the tree, can you at least put a use.mask > for it? What do you mean by masking? If I mask >dev-python/matplotlib-1.3.1 in /etc/portage/packages/mask . 'emerge -uvDN world' does no more complain about slot conflicts, but it still wants to reemerge matplotlib-1.3.1: root@impala:/usr/local/portage/dev-python(25)# emerge -p --update --newuse --deep --with-bdeps=y --backtrack=30 world These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-python/matplotlib-1.3.1 PYTHON_TARGETS="(-python3_2%)" which fails, because qt4agg can not be built: * The following required packages can not be built: * qt4agg * ERROR: dev-python/matplotlib-1.3.1::gentoo failed (compile phase): What can I still do? Regards
I meant a use.mask like this one: /usr/portage/profiles/base/use.mask That comment was meant for dev that have access to the tree. As an individual you always have an option to put it in /etc/portage/package.use: =dev-python/matplotlib-1.3* -qt4
(In reply to Francois Bissey from comment #12) > I meant a use.mask like this one: > /usr/portage/profiles/base/use.mask > That comment was meant for dev that have access to the tree. As an > individual you always have an option to put it in /etc/portage/package.use: > =dev-python/matplotlib-1.3* -qt4 Thanks, works for me.
trying to emerge matplotlib-1.4.3 I get OPTIONAL BACKEND EXTENSIONS macosx: no [Mac OS-X only] qt5agg: yes [installing, Qt: 5.4.0, PyQt: 5.4.0] qt4agg: no [Check timed out] pyside: no [skipping due to configuration] No protocol specified No protocol specified No protocol specified No protocol specified gtk3agg: yes [installing, version 3.8.14] gtk3cairo: no [skipping due to configuration] gtkagg: no [skipping due to configuration] tkagg: yes [installing, version version not identified] wxagg: no [skipping due to configuration] gtk: no [skipping due to configuration] agg: yes [installing] cairo: yes [installing, pycairo version 1.10.0] windowing: no [Microsoft Windows only] OPTIONAL LATEX DEPENDENCIES dvipng: yes [version 1.14] ghostscript: yes [version 9.15] latex: yes [version 3.14159265] pdftops: yes [version 0.31.0] ============================================================================ * The following required packages can not be built: * qt4agg * ERROR: dev-python/matplotlib-1.4.3::gentoo failed (compile phase): * (no error message) dns ~ # eix -c PyQt4 [I] dev-python/PyQt4 (4.11.3@04.02.2015): Python bindings for the Qt framework
+ 20 Mar 2015; Justin Lecher <jlec@gentoo.org> -matplotlib-1.1.1.ebuild, + -matplotlib-1.3.0-r1.ebuild, -matplotlib-1.4.0.ebuild, + matplotlib-1.4.2.ebuild, matplotlib-1.4.3.ebuild, matplotlib-9999.ebuild: + Drop old; add qt5 support, bug #530492; fix slot usages + Should be fixed. Please reopen is still exists with latest versions