Bug 1219556

Summary: python-matplotlib-qt4 requires python-matplotlib-qt5
Product: [Fedora] Fedora Reporter: Jiri Popelka <jpopelka>
Component: python-matplotlibAssignee: Thomas Spura <tomspur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: gwync, jonathan.underwood, jspaleta, mcdanlj, neteler, orion, paulo.cesar.pereira.de.andrade, quantum.analyst, tcaswell, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-matplotlib-1.4.3-13.fc23 python-matplotlib-1.4.3-13.fc22 python-matplotlib-1.5.1-3.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-13 07:22:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Popelka 2015-05-07 15:13:21 UTC
python -c "import matplotlib.backends.backend_qt4agg"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt4agg.py", line 17, in <module>
    from .backend_qt5agg import NavigationToolbar2QTAgg
ImportError: No module named backend_qt5agg


Version-Release number of selected component (if applicable):
python-matplotlib-qt4-1.4.3-3.fc22.x86_64

Comment 1 Orion Poplawski 2015-05-09 01:59:21 UTC
Elliot - looks like splitting off backend_qt5 is just not possible in the way you've done it as the qt4 backends import functions from the qt5 backends.

Comment 2 Elliott Sales de Andrade 2015-05-14 04:17:59 UTC
You are correct, and I noted as such in the original bug report where I suggested the spec file updates. Reading through its PR, I think this is intended as both backends are essentially the same with a small shim. It also appears to be smart enough to import either one or the other, but I don't know how you'd want to implement the dependency.

That being said, I cannot do anything about the package in Fedora, since I'm not actually a packager (I should do something about that some time...)

Comment 3 Fedora Admin XMLRPC Client 2015-09-09 19:30:07 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2015-09-09 19:51:05 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Jiri Popelka 2015-09-26 14:30:25 UTC
*** Bug 1266681 has been marked as a duplicate of this bug. ***

Comment 6 markusN 2015-10-10 17:42:54 UTC
Same problem here when using a newly developed plugin for QGIS:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 219, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/neteler/.qgis2/python/plugins/grassdataexplorer/__init__.py", line 28, in classFactory
    from grassdataexplorer import GrassDataExplorer
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/neteler/.qgis2/python/plugins/grassdataexplorer/grassdataexplorer.py", line 28, in 
    from grassdataexplorerdialog import GrassDataExplorerDialog
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/neteler/.qgis2/python/plugins/grassdataexplorer/grassdataexplorerdialog.py", line 30, in 
    from grass_raster_layer import GrassRasterLayer
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/neteler/.qgis2/python/plugins/grassdataexplorer/grass_raster_layer.py", line 30, in 
    from strds_settings_dialog import STRDSSettingsDialog
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/neteler/.qgis2/python/plugins/grassdataexplorer/strds_settings_dialog.py", line 33, in 
    from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_qt4agg.py", line 17, in 
    from .backend_qt5agg import NavigationToolbar2QTAgg
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named backend_qt5agg

Python version:
2.7.10 (default, Sep 24 2015, 17:50:09) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)]

Any chance to fallback to .backend_qt4agg?

Comment 7 markusN 2015-10-10 17:50:29 UTC
(In reply to markusN from comment #6)
> Same problem here when using a newly developed plugin for QGIS:
...
>   File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in
> _import
>     mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named backend_qt5agg
> 
> Python version:
> 2.7.10 (default, Sep 24 2015, 17:50:09) 
> [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)]
> 
> Any chance to fallback to .backend_qt4agg?

Workaround: 

dnf install python-matplotlib-qt5

Comment 8 tcaswell@gmail.com 2016-03-23 15:43:02 UTC
To add a back link this has been reported upstream as

https://github.com/matplotlib/matplotlib/issues/6209

Comment 9 Fedora Update System 2016-04-04 13:55:51 UTC
python-matplotlib-1.4.3-13.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-73ad4c0042

Comment 10 Fedora Update System 2016-04-04 13:56:02 UTC
python-matplotlib-1.4.3-13.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0551f09cf4

Comment 11 Fedora Update System 2016-04-05 15:22:16 UTC
python-matplotlib-1.4.3-13.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0551f09cf4

Comment 12 Jiri Popelka 2016-04-05 15:25:14 UTC
What about F24 build & update ?

Comment 13 Thomas Spura 2016-04-05 15:48:21 UTC
I was hoping to skip F24 and directly wanted to update to 1.5.1, but maybe that was a bit too optimistic...

Will do the update there too, if updating to 1.5.1 is no option in the next few days.

Comment 14 Fedora Update System 2016-04-05 15:53:45 UTC
python-matplotlib-1.4.3-13.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-73ad4c0042

Comment 15 Fedora Update System 2016-04-06 21:25:55 UTC
python-matplotlib-1.5.1-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b8bc6225f

Comment 16 Fedora Update System 2016-04-07 16:53:29 UTC
python-matplotlib-1.5.1-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b8bc6225f

Comment 17 Fedora Update System 2016-04-07 22:31:36 UTC
python-matplotlib-1.5.1-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b8bc6225f

Comment 18 Fedora Update System 2016-04-08 16:53:25 UTC
python-matplotlib-1.5.1-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b8bc6225f

Comment 19 Fedora Update System 2016-04-13 07:22:43 UTC
python-matplotlib-1.4.3-13.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2016-04-14 04:22:57 UTC
python-matplotlib-1.4.3-13.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2016-05-07 12:11:27 UTC
python-matplotlib-1.5.1-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.