> -----Original Message-----
> From: <email address hidden> [mailto:<email address hidden>] On Behalf
> Of Nuno Araujo
> Sent: 03 September 2014 22:22
> To: <email address hidden>
> Subject: [Merge] lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-
> backend into lp:mnemosyne-proj
>
> Nuno Araujo has proposed merging lp:~russo79/mnemosyne-proj/force-
> matplotlib-pyqt4-backend into lp:mnemosyne-proj.
>
> Requested reviews:
> Peter Bienstman (peter-bienstman)
>
> For more details, see:
> https://code.launchpad.net/~russo79/mnemosyne-proj/force-matplotlib-
> pyqt4-backend/+merge/233260
>
> 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/mnemosyne", line 191, in <module>
> debug_file=options.debug_file)
> File "/usr/lib/python2.7/site-
> packages/mnemosyne/libmnemosyne/__init__.py", line 172, in initialise
> self.register_components()
> File "/usr/lib/python2.7/site-
> packages/mnemosyne/libmnemosyne/__init__.py", line 242, in
> register_components
> exec("from %s import %s" % (module_name, class_name))
> File "<string>", line 1, in <module>
> File "/usr/lib/python2.7/site-
> packages/mnemosyne/pyqt_ui/statistics_wdgts_plotting.py", line 9, in
> <module>
> from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
> FigureCanvas
> File "/usr/lib/python2.7/site-
> packages/matplotlib/backends/backend_qt4agg.py", line 17, in <module>
> from .backend_qt5agg import NavigationToolbar2QTAgg
> File "/usr/lib/python2.7/site-
> packages/matplotlib/backends/backend_qt5agg.py", line 18, in <module>
> from .backend_qt5 import QtCore
> File "/usr/lib/python2.7/site-
> packages/matplotlib/backends/backend_qt5.py", line 28, in <module>
> import matplotlib.backends.qt_editor.figureoptions as figureoptions
> File "/usr/lib/python2.7/site-
> packages/matplotlib/backends/qt_editor/figureoptions.py", line 17, in
> <module>
> import matplotlib.backends.qt_editor.formlayout as formlayout
> File "/usr/lib/python2.7/site-
> packages/matplotlib/backends/qt_editor/formlayout.py", line 58, in
> <module>
> from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
> File "/usr/lib/python2.7/site-
> packages/matplotlib/backends/qt_compat.py", line 91, in <module>
> from PyQt5 import QtCore, QtGui, QtWidgets
> RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap
> the QObject class
>
> --
> https://code.launchpad.net/~russo79/mnemosyne-proj/force-matplotlib-
> pyqt4-backend/+merge/233260
> You are requested to review the proposed merge of
> lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend into
> lp:mnemosyne-proj.
Thanks, I've added the patch to my tree.
Peter
> -----Original Message----- pyqt4-backend into lp:mnemosyne-proj. /code.launchpad .net/~russo79/ mnemosyne- proj/force- matplotlib- +merge/ 233260 mnemosyne" , line 191, in <module> options. debug_file) python2. 7/site- mnemosyne/ libmnemosyne/ __init_ _.py", line 172, in initialise components( ) python2. 7/site- mnemosyne/ libmnemosyne/ __init_ _.py", line 242, in python2. 7/site- mnemosyne/ pyqt_ui/ statistics_ wdgts_plotting. py", line 9, in backends. backend_ qt4agg import FigureCanvasQTAgg as python2. 7/site- matplotlib/ backends/ backend_ qt4agg. py", line 17, in <module> ar2QTAgg python2. 7/site- matplotlib/ backends/ backend_ qt5agg. py", line 18, in <module> python2. 7/site- matplotlib/ backends/ backend_ qt5.py" , line 28, in <module> backends. qt_editor. figureoptions as figureoptions python2. 7/site- matplotlib/ backends/ qt_editor/ figureoptions. py", line 17, in backends. qt_editor. formlayout as formlayout python2. 7/site- matplotlib/ backends/ qt_editor/ formlayout. py", line 58, in backends. qt_compat import QtGui, QtWidgets, QtCore python2. 7/site- matplotlib/ backends/ qt_compat. py", line 91, in <module> /code.launchpad .net/~russo79/ mnemosyne- proj/force- matplotlib- +merge/ 233260
> From: <email address hidden> [mailto:<email address hidden>] On Behalf
> Of Nuno Araujo
> Sent: 03 September 2014 22:22
> To: <email address hidden>
> Subject: [Merge] lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-
> backend into lp:mnemosyne-proj
>
> Nuno Araujo has proposed merging lp:~russo79/mnemosyne-proj/force-
> matplotlib-
>
> Requested reviews:
> Peter Bienstman (peter-bienstman)
>
> For more details, see:
> https:/
> pyqt4-backend/
>
> 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=
> File "/usr/lib/
> packages/
> self.register_
> File "/usr/lib/
> packages/
> register_components
> exec("from %s import %s" % (module_name, class_name))
> File "<string>", line 1, in <module>
> File "/usr/lib/
> packages/
> <module>
> from matplotlib.
> FigureCanvas
> File "/usr/lib/
> packages/
> from .backend_qt5agg import NavigationToolb
> File "/usr/lib/
> packages/
> from .backend_qt5 import QtCore
> File "/usr/lib/
> packages/
> import matplotlib.
> File "/usr/lib/
> packages/
> <module>
> import matplotlib.
> File "/usr/lib/
> packages/
> <module>
> from matplotlib.
> File "/usr/lib/
> packages/
> from PyQt5 import QtCore, QtGui, QtWidgets
> RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap
> the QObject class
>
> --
> https:/
> pyqt4-backend/
> You are requested to review the proposed merge of
> lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend into
> lp:mnemosyne-proj.