Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593042 - dev-python/matplotlib needs cairocffi when installed for python3*
Summary: dev-python/matplotlib needs cairocffi when installed for python3*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 593058
Blocks:
  Show dependency tree
 
Reported: 2016-09-07 10:04 UTC by Horea Christian
Modified: 2017-02-02 18:46 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horea Christian 2016-09-07 10:04:14 UTC
Trying to plot with matpltlib on python3* (in the absence of cairocffi) gives:

```
/usr/lib/python3.4/site-packages/matplotlib/backends/backend_gtk3agg.py:18:
UserWarning: The Gtk3Agg backend is known to not work on Python 3.x with pycairo.
Try installing cairocffi.
"The Gtk3Agg backend is known to not work on Python 3.x with pycairo."
```

This can be solved by python-conditionally depending on cairoffi:

I added:

```
$( python_gen_cond_dep 'dev-python/cairocffi[${PYTHON_USEDEP}]' 'python3*' )
```

At the end of RDEPEND, and now the ebuilds pull in what they should when they should.

I can,t however get this oast repoman, which gives me the following error:

```
 dependency.bad [fatal]        81
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: arm(default/linux/arm/13.0)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: arm(default/linux/arm/13.0)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop/gnome)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop/gnome)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop/gnome/systemd)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop/gnome/systemd)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop/kde)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
   dev-python/matplotlib/matplotlib-1.4.3.ebuild: RDEPEND: ppc(default/linux/powerpc/ppc32/13.0/desktop/kde)
[     'dev-python/cairocffi[python_targets_python3_3(-)?,-python_single_target_python3_3(-),python_targets_python3_4(-)?,-python_single_target_python3_4(-),python_targets_python3_5(-)?,-python_single_target_python3_5(-)]']
```

Can you help me finalize this fix?
Comment 1 David Seifert gentoo-dev 2017-02-02 18:46:27 UTC
commit f94cc35897d4d6dae8cf5a18329ba437ce8c7a50
Author: David Seifert <soap@gentoo.org>
Date:   Thu Feb 2 19:18:31 2017 +0100

    dev-python/matplotlib: RDEPEND on dev-python/cairocffi only
    
    Gentoo-bug: 593042