lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend

Created by Nuno Araujo and last modified
Get this branch:
bzr branch lp:~russo79/mnemosyne-proj/force-matplotlib-pyqt4-backend
Only Nuno Araujo can upload to this branch. If you are Nuno Araujo please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Nuno Araujo
Project:
The Mnemosyne Project
Status:
Development

Recent revisions

1793. By Nuno Araujo

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

1792. By Peter Bienstman

2.3.1 release.

1791. By Peter Bienstman

Android bug fixing.

1790. By Peter Bienstman

More Android work.

1789. By Peter Bienstman

Refactor Android code.

1788. By Peter Bienstman

Update binding.

1787. By Peter Bienstman

Fix export format in new config.

1786. By Peter Bienstman

Mark 2.3.1

1785. By Peter Bienstman

Fix tabbing problems in dialogs.

1784. By Peter Bienstman

Fix overzealous warning about sister cards with different tags.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~peter-bienstman/mnemosyne-proj/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers