Merge lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend into lp:~peter-bienstman/mnemosyne-proj/trunk
Status: | Merged |
---|---|
Merge reported by: | Peter Bienstman |
Merged at revision: | not available |
Proposed branch: | lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend |
Merge into: | lp:~peter-bienstman/mnemosyne-proj/trunk |
Diff against target: |
13 lines (+3/-0) 1 file modified
mnemosyne/mnemosyne/pyqt_ui/statistics_wdgts_plotting.py (+3/-0) |
To merge this branch: | bzr merge lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Peter Bienstman | Pending | ||
Review via email: mp+233260@code.launchpad.net |
Description of the change
Force the usage of matplotlib PyQt4 backend
matplotlib tries its backends on a given order
The PyQt5 backend comes before the PyQt4 backend.
On systems that have both backends installed, this caused a RuntimeError
due to conflicting PyQt versions:
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "/usr/bin/
debug_
File "/usr/lib/
self.
File "/usr/lib/
exec("from %s import %s" % (module_name, class_name))
File "<string>", line 1, in <module>
File "/usr/lib/
from matplotlib.
File "/usr/lib/
from .backend_qt5agg import NavigationToolb
File "/usr/lib/
from .backend_qt5 import QtCore
File "/usr/lib/
import matplotlib.
File "/usr/lib/
import matplotlib.
File "/usr/lib/
from matplotlib.
File "/usr/lib/
from PyQt5 import QtCore, QtGui, QtWidgets
RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class
I forgot to specify that this is only an issue since matplotlib-1.4.0