Package Details: mnemosyne 2.8-1

Git Clone URL: https://aur.archlinux.org/mnemosyne.git (read-only, click to copy)
Package Base: mnemosyne
Description: A flash-card tool with a sophisticated card review algorithm
Upstream URL: http://www.mnemosyne-proj.org
Keywords: Anki flashcard learn memorize
Licenses: GPL
Conflicts: mnemosyne-bzr
Submitter: wide-eyed
Maintainer: billypilgrim
Last Packager: billypilgrim
Votes: 86
Popularity: 0.88
First Submitted: 2007-11-04 20:08
Last Updated: 2021-07-12 06:22

Latest Comments

« First ‹ Previous ... 2 3 4 5 6 7 8 9 Next › Last »

russo79 commented on 2014-09-03 19:51

Here [1] you'll find a PKGBUILD that fix this issue.

The only thing to do is to force matplotlib to use the Qt4 backend.
By default it chooses the Qt5 one and that conflicts with mnemosyne.

[1] https://cloud.russo79.com/public.php?service=files&t=f00d660f9ae6001dd09276e960a02e9d

Feel free to take it!

joelsc commented on 2014-09-03 17:45

Note that you can get the basic functionality (without plotting) by commenting line 9 from the file /usr/lib/python2.7/site-packages/mnemosyne/pyqt_ui/statistics_wdgts_plotting.py:

- from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
+ #from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas

vagyok commented on 2014-08-30 18:54

Thanks for your quick and helpful response. I can confirm that downgrading to python2-matplotlib 1.3.1-4 fixed the issue for me.

As far as I can see, though, the current version of python2-matplotlib in [community] has been 1.4.0-1 since 2014-08-28.

smls commented on 2014-08-30 14:15

For now, you can make it work by downgrading python2-matplotlib to version 1.3.x (which is still the current version in [community] -- only version 1.4.0 from [community-testing] is causing the issue).

As for the python2-pyqt -> python2-pyqt4 rename, I've updated the PKGBUILD now to reflect this.

Still investigating the issue with matplotlib 1.4 though.

smls commented on 2014-08-30 13:06

@vagyok: Thanks for reporting; I see the same errors. For what it's worth, python2-pyqt4 is the correct dependency as Mnemosyne is a Qt4 program; the fact that the matplotlib dependency tries to load Qt5 is strange. I'll investigate.

vagyok commented on 2014-08-30 12:09

python2-pyqt , which is currently a dependency of this package, no longer seems to exist - it is apparently either python2-pyqt4 (which replaced python2-pyqt ) or python2-pyqt5 in [extra] now.

Trying it with python2-pyqt4 (and its pyqt4-common dependency) gave me the following error:

File "/usr/lib/python2.7/site-packages/matplotlib/backends/qt_compat.py", line 91, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: No module named PyQt5

(in full: http://pastebin.com/FMT3WFsB )

Trying it with both python2-pyqt4 (and its pyqt4-common dependency) and python2-pyqt5 (and its pyqt5-common dependency) installed before rebuilding the package gave me the following error:

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

(in full: http://pastebin.com/6aMr6es9 )

Trying to remove python2-pyqt4 (and/or pyqt4-common) so as to use only python2-pyqt5 and pyqt5-common failed because this package depends on python2-matplotlib in [community], which requires python2-pyqt4 explicitly, which, in turn, requires pyqt4-common.

Any suggestions?

smls commented on 2013-08-24 11:39

Glad it worked out :)

gojun077 commented on 2013-08-24 05:05

You are a godsend, smls!!! Thanks to the path info you gave me for latex tmp files created by Mnemosyne, I was able to track down tmp.tex and open it in Gummi, my LaTeX editor. The problem was that tmp.tex failed to build at all due to a missing font!

My LaTeX preamble in Mnemosyne was as follows:

\documentclass[12pt]{article}
\usepackage{amsmath, amsfonts, amssymb, cancel}
...

Unfortunately the LaTeX font package cancel.sty in \usepackage above was missing from my Arch install! The font is provided by the package texlive-extralatex

Now creating LaTeX cards works perfectly when running Mnemosyne as a local user. I wonder why running Mnemosyne as root allowed LaTeX to render despite missing one font file, however...

gojun077 commented on 2013-08-24 05:00

You are a godsend, smls!!! Thanks to the path info you gave me for latex tmp files created by Mnemosyne, I was able to track down tmp.tex and open it in Gummi, my LaTeX editor. The problem was that tmp.tex failed to build at all due to a missing font!

My LaTeX preamble in Mnemosyne was as follows:

\documentclass[12pt]{article}
\usepackage{amsmath, amsfonts, amssymb, cancel}
...

Unfortunately the LaTeX font package cancel.sty in \usepackage above was missing from my Arch install! The font is provided by the package texlive-extralatex

Now creating LaTeX cards works perfectly when running Mnemosyne as a local user. I wonder why running Mnemosyne as root allowed LaTeX to render despite missing one font file, however...

smls commented on 2013-08-23 11:36

@gojun077
If the problem persists, try manually following the individual steps that Mnemosyne performs, to see where exactly the problem lies:

1) Create a file called tmp.tex with the following content:

\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
$\sqrt{x^3}$
\end{document}

2) Execute the command...

latex tmp.tex

...which will try to create a file called tmp.dvi in the same folder. Be sure to also check the console output for errors.

3) Execute the command...

dvipng -D 200 -T tight tmp.dvi

...which will try to create a file called tmp1.png in the same folder.