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

  • Committer: Nuno Araujo
  • Date: 2014-09-03 20:11:45 UTC
  • Revision ID: nuno.araujo@russo79.com-20140903201145-lkqrliu84ssmo29o
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
Filename Latest Rev Last Changed Committer Comment Size
..
mnemosyne 2 18 years ago pbienst Initial revision Diff
openSM2sync 896 14 years ago Peter Bienstman Refactor. Diff
pixmaps 2 18 years ago pbienst Initial revision Diff
po 1340.1.10 12 years ago Johannes Baiter Finished work on libmnemosyne gettext translation Diff
science_server 1039 13 years ago Peter Bienstman Rename txt log to science log. Diff
tests 462 15 years ago pbienst Testing framework. Diff
.coveragerc 1138 13 years ago Peter Bienstman Testing improvements. 361 bytes Diff Download File
ChangeLog 1792 9 years ago Peter.Bienstman at UGent 2.3.1 release. 39.8 KB Diff Download File
LICENSE 1671 11 years ago Peter Bienstman -remember column widths in browser again -fix brow 164 bytes Diff Download File
makefile 1784 9 years ago Peter.Bienstman at UGent Fix overzealous warning about sister cards with di 9.7 KB Diff Download File
MANIFEST.in 1556 11 years ago Peter Bienstman -RTL tweaks -translation tweaks -fix hang on abort 382 bytes Diff Download File
mnemosyne.1 1498.1.2 11 years ago Peter Bienstman Improve standards compliance. (robertle) 882 bytes Diff Download File
mnemosyne.desktop 391 15 years ago pbienst Make desktop file standards compliant. 189 bytes Diff Download File
README 1780 9 years ago Peter.Bienstman at UGent Documentation upgrade. 2 KB Diff Download File
README.devel 1754 10 years ago Peter.Bienstman at UGent More html tweaks. 159 bytes Diff Download File
setup.py 1773 9 years ago Peter.Bienstman at UGent Make setup.py more portable on freeBSD (Henryk) 10.1 KB Diff Download File
TODO 1790 9 years ago Peter.Bienstman at UGent More Android work. 17.6 KB Diff Download File