Bug 11131

Summary: python-matplotlib requires python-matplotlib-qt4
Product: Mageia Reporter: Filipe Saraiva <mail>
Component: RPM PackagesAssignee: Philippe Makowski <makowski.mageia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal Keywords: Triaged
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: python-matplotlib-1.3.0-1.mga4.src.rpm CVE:
Status comment:

Description Filipe Saraiva 2013-09-02 01:33:36 CEST
Hello, after fix the bug 11128, I get this error after try import pyplot:

$ python
Python 2.7.5 (default, Aug 12 2013, 12:36:20) 
[GCC 4.8.2 20130808 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 98, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
    globals(),locals(),[backend_name])
ImportError: No module named backend_qt4agg
>>> import matplotlib
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 98, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/lib64/python2.7/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
    globals(),locals(),[backend_name])
ImportError: No module named backend_qt4agg
>>>

This error was fixed after install python-matplotlib-qt4. I think, how pyplot is default in matplotlib, matplotlib-qt4 must be required (mandatoty) during python-matplotib installation.

Thank you.

Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-09-06 23:58:12 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => makowski.mageia

Comment 1 Philippe Makowski 2013-09-07 12:36:54 CEST
python-matplotlib-1.3.0-2.mga4 should fix this
Comment 2 Philippe Makowski 2013-09-11 20:29:44 CEST
is the fix ok ?
Comment 3 Filipe Saraiva 2013-09-11 20:56:06 CEST
Yes Phillippe, thank you!

Status: NEW => RESOLVED
Resolution: (none) => FIXED