Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530492 - dev-python/matplotlib-1.3.1 src_configure(): The following required packages can not be built: qt4agg
Summary: dev-python/matplotlib-1.3.1 src_configure(): The following required packages ...
Status: RESOLVED OBSOLETE
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:
: 530804 (view as bug list)
Depends on: 530324 530538
Blocks:
  Show dependency tree
 
Reported: 2014-11-25 00:39 UTC by Thomas Capricelli
Modified: 2015-03-20 12:58 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,5.34 KB, text/plain)
2014-11-25 00:40 UTC, Thomas Capricelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2014-11-25 00:39:50 UTC
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
Comment 1 Thomas Capricelli 2014-11-25 00:40:15 UTC
Created attachment 390236 [details]
build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-26 23:38:30 UTC
*** Bug 530804 has been marked as a duplicate of this bug. ***
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2014-11-27 19:49:21 UTC
Could you try the following:

python2.7 -c "from PyQt4 import pyqtconfig ; qtconfig = pyqtconfig.Configuration()"

it shouldn't return anything if PyQt4 is working.
Comment 4 Juergen Rose 2014-11-27 20:48:11 UTC
(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
Comment 5 Thomas Capricelli 2014-11-27 22:15:35 UTC
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
Comment 6 Thomas Capricelli 2014-11-27 22:26:07 UTC
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 ?
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2014-11-28 20:32:07 UTC
This was fixed in matplotlib 1.4.1. Let's go for stabilizing 1.4.2
Comment 8 Peter Harpending 2014-11-29 11:30:48 UTC
> 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.
Comment 9 François Bissey 2014-11-29 20:04:00 UTC
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).
Comment 10 François Bissey 2014-11-30 22:11:42 UTC
If matplotlib 1.3.x is to stay in the tree, can you at least put a use.mask for it?
Comment 11 Juergen Rose 2014-12-04 14:45:36 UTC
(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
Comment 12 François Bissey 2014-12-04 19:00:17 UTC
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
Comment 13 Juergen Rose 2014-12-07 12:20:15 UTC
(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.
Comment 14 Andrey Grozin gentoo-dev 2015-02-25 17:30:12 UTC
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
Comment 15 Justin Lecher (RETIRED) gentoo-dev 2015-03-20 12:57:52 UTC
+  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