Bug 1219556
Summary: | python-matplotlib-qt4 requires python-matplotlib-qt5 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jiri Popelka <jpopelka> |
Component: | python-matplotlib | Assignee: | Thomas Spura <tomspur> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | 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
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. 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...) This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. *** Bug 1266681 has been marked as a duplicate of this bug. *** 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? (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 To add a back link this has been reported upstream as https://github.com/matplotlib/matplotlib/issues/6209 python-matplotlib-1.4.3-13.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-73ad4c0042 python-matplotlib-1.4.3-13.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0551f09cf4 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 What about F24 build & update ? 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. 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 python-matplotlib-1.5.1-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b8bc6225f 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 python-matplotlib-1.5.1-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6b8bc6225f 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 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. 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. 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. |