## Package Details: mnemosyne 2.8-3

Git Clone URL: https://aur.archlinux.org/mnemosyne.git (read-only, click to copy) mnemosyne A flash-card tool with a sophisticated card review algorithm https://www.mnemosyne-proj.org Anki flashcard learn memorize GPL mnemosyne-bzr wide-eyed billypilgrim billypilgrim 86 0.001127 2007-11-04 20:08 (UTC) 2022-05-09 10:56 (UTC)

### Sources (2)

#### colluphid commented on 2022-05-03 20:03 (UTC) (edited on 2022-05-03 20:03 (UTC) by colluphid)

I also ran into the the checksum issue. Using yay, the checksum verification can be skipped with:

yay -S mnemosyne --mflags '--skipchecksums'

#### j18318 commented on 2022-05-01 16:31 (UTC)

The package build refers to a different hash: c5a57b1486dda325d53c3692fdd63778d8224efa0774ac750434e04f2162f3a2

Not sure if the commit was ever c5a57..... maybe the author force-pushed a new commit?

Anyways, pacman is failing to install with the PKGBUILD as it is currently..

#### billypilgrim commented on 2021-09-25 07:43 (UTC)

@Lukas1818: I've followed your suggestion and updated the PKGBUILD accordingly. Let me know if you have any issues :-)

#### LuckyTurtleDev commented on 2021-09-14 12:06 (UTC) (edited on 2021-09-14 12:37 (UTC) by LuckyTurtleDev)

@billypilgrim I do not think waiting until the next release make sense. At the current state the application can not be used by anyone who has not already installed python-googletrans. So this package is useless for many users at the moment.

Furthermore the pull-request was already merged to the upstream.

#### billypilgrim commented on 2021-09-13 13:58 (UTC)

Hi CI-Lukas1818. Thanks for doing this. I think I'll hold off on updating the PKGBUILD until the upstream maintainer releases a new version though (hopefully incorporating these patches) before updating.

#### CI-Lukas1818 commented on 2021-09-11 22:02 (UTC) (edited on 2021-09-11 22:04 (UTC) by CI-Lukas1818)

@billypilgrim if you make the following change to this package, it can be build again:

diff --git a/PKGBUILD b/PKGBUILD
index f2d0c04..bf63528 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,28 +8,36 @@ pkgver=2.8
pkgrel=1
pkgdesc="A flash-card tool with a sophisticated card review algorithm"
arch=('any')
-url='http://www.mnemosyne-proj.org'
+url='https://www.mnemosyne-proj.org'
depends=('python-pyqt5' 'qt5-webengine' 'python-argon2_cffi'
'python-pillow' 'python-matplotlib' 'python-cherrypy' 'python-webob'
+         'python-pyqtwebengine')
makedepends=('python-setuptools')
optdepends=('texlive-core: support for mathematical formulae in cards'
'ttf-ms-fonts: support for non-latin labels on statistic plots'
'python-cheroot: support for starting a sync server'
'python-opengl: mentioned in a non-fatal warning'
-       'mplayer: for playing audio and video externally')
+            'mplayer: for playing audio and video externally'
+            'python-gtts: support for text to speach')
conflicts=('mnemosyne-bzr')
install='mnemosyne.install'

-source=("http://downloads.sourceforge.net/mnemosyne-proj/Mnemosyne-${pkgver}.tar.gz") -sha256sums=('63949ad4b44188501915a0465f32d3ca066698c58f86c46cf3196f9d601f6900') +source=("https://downloads.sourceforge.net/mnemosyne-proj/Mnemosyne-${pkgver}.tar.gz"
+            'c5a57b1486dda325d53c3692fdd63778d8224efa0774ac750434e04f2162f3a2')

prepare() {
cd "Mnemosyne-${pkgver}/" # Fix windows line endings - sed -i "s/\r//g" mnemosyne/pyqt_ui/mnemosyne + sed -i "s/\r//g" mnemosyne/pyqt_ui/mnemosyne mnemosyne/libmnemosyne/__init__.py + + # patch to make google transate and goole text to speak optional + patch --forward --strip=1 --input="$srcdir/b0e85fbb54a23add1fe8a0d56123b2ddb056b325.patch"
}

build() {
@@ -42,4 +50,3 @@ package() {
cd "Mnemosyne-${pkgver}/" python setup.py install --root="${pkgdir}" --optimize=1
}
-


#### LuckyTurtleDev commented on 2021-09-09 13:18 (UTC) (edited on 2021-09-09 13:18 (UTC) by LuckyTurtleDev)

@billypilgrim I have created a pull request, which make both packages optional.#201

Using the following patch should fix the python-httpx issue: https://github.com/mnemosyne-proj/mnemosyne/pull/201/commits/b0e85fbb54a23add1fe8a0d56123b2ddb056b325.patch

#### LuckyTurtleDev commented on 2021-09-08 17:11 (UTC)

They do not have any interest to implementate this. So if we would like to have this features, we must create our own path. May the mnemosyne maintainer will accept a merge request.

#### billypilgrim commented on 2021-09-08 13:03 (UTC)

Thanks for the clarification @Lukas1818.

Neither of the issues you raise involve any changes I could make to this package, however. It looks like the python-httpx issue has already been mentioned on the python-googletrans page, so hopefully a fix is in hand. You're right that this should be optional functionality though -- how about raising an issue with the mnemosyne folks upstream?

#### LuckyTurtleDev commented on 2021-09-08 12:53 (UTC) (edited on 2021-09-08 12:57 (UTC) by LuckyTurtleDev)

@billypilgrim I think n1ghtmare does mean the python-httpx package, which is a dependency of python-googletrans. The problem is that python-googletrans is not compatible with the current python-httpx package and need an outdated version of it.

It would be very nice if python-googletrans and python-gtts will be only optimal dependencies, but sadly mnemosyne does not allow this.

May user can apply this patch manual, if they do not need google translate: https://salsa.debian.org/debian/mnemosyne/-/blob/master/debian/patches/disable_google_translator.patch

#### billypilgrim commented on 2021-08-21 20:15 (UTC)

@n1ghtmare: Your comment is a bit vague. What exact error message are you getting? Which dependencies seem to be missing?

#### n1ghtmare commented on 2021-08-21 16:43 (UTC)

Does not build because of missing dependencies.

#### billypilgrim commented on 2021-07-12 06:23 (UTC)

Weird. It did build on my local machine before, but you're right that the checks aren't passing anymore. I've fixed that now.

#### kachelaqa commented on 2021-07-12 00:58 (UTC)

The sha256 sum fails the validity check.

#### Jaaan commented on 2021-05-31 06:42 (UTC) (edited on 2021-05-31 06:43 (UTC) by Jaaan)

I believe that mplayer should be an optional dependency for sound playback in cards

#### billypilgrim commented on 2020-12-11 16:07 (UTC) (edited on 2020-12-11 16:12 (UTC) by billypilgrim)

Thanks @jmehne! I've updated the package to v2.7.3 now and I'll report the bug to upstream.

Edit: Oh, it seems like you're an upstream maintainer! Nvm then :-p

#### jmehne commented on 2020-10-31 20:14 (UTC)

I flagged the package out of date, but the commit I linked was flawed. Somehow the bin file now has windows line endings ... I fixed that here: https://git.sr.ht/~jmehne/mnemosyne-aur/commit/722745200346087cedc1528783617e5898c84e2d

#### LuckyTurtleDev commented on 2020-05-02 13:36 (UTC)

Does the sound of the cards work for you? I can not hear anything, if i add sound. In the webinterface it does work.

Ta!

#### marmistrz commented on 2019-11-28 00:45 (UTC)

I disowned the package so that you can pick it up :) Have fun! :)

Sure!

#### marmistrz commented on 2019-11-27 18:40 (UTC)

@billypilgrim: do you want to become a new maintainer of Mnemosyne? I switched to Anki TBH, so I can give the maintainership to you :)

#### billypilgrim commented on 2019-11-27 18:07 (UTC)

Ok, so somewhat embarrassingly I forgot that this wasn't my package and fixed up the PKGBUILD with the patch + new version and only noticed when I tried to push the changes. So @marmistrz, feel free to do: git pull https://github.com/alexdewar/mnemosyne master

...if you'd like my updated PKGBUILD.

#### jaudet commented on 2019-11-26 23:15 (UTC)

Looks like my custom repo somehow produced a borked build of mnemosyne. Forcing it to rebuild the package fixed my issue. I then hit the issue described by Hal5000, and the urllib-related fix detailed there worked for me. Thanks for submitting an upstream patch!

#### Hal5000 commented on 2019-11-19 20:17 (UTC) (edited on 2019-11-20 20:54 (UTC) by Hal5000)

Resolved it for me -- edited the file

/usr/lib/python3.8/site-packages/openSM2sync/server.py

by adding

import urllib

and changing

args = cgi.parse_qs(environ["QUERY_STRING"])

in line 155 to:

args = urllib.parse.parse_qs(environ["QUERY_STRING"])



Works for me again...

#### jaudet commented on 2019-11-17 18:29 (UTC) (edited on 2019-11-26 04:18 (UTC) by jaudet)

@Hal5000 can you wrap your console output in markdown code fences (triple backticks)? It's unreadable. (EDIT: Thank you!)

I can no longer start mnemosyne at all, whether the GUI client or the sync server. Both fail with the same error:

#### smls commented on 2016-12-16 12:21 (UTC)

@Ichimonji10 It turns out qt5-webengine needed to be explicitly specified as a dependency. The package has been updated. (I thought python-pyqt5 pulls in all the Qt stuff, but apparently Qt is more modular now than it was during Qt4 times.)

#### smls commented on 2016-12-16 11:57 (UTC)

@Ichimonji10 It starts fine for me. Maybe I forgot to explicitly specify a dependency or something? Please ensure that your Arch Linux is fully upgraded, and that /usr/bin/python points to python3. Meanwhile, I'll try to investigate the issue on my end.

#### jaudet commented on 2016-12-15 18:40 (UTC)

The current version of mnemosyne fails to start. Downgrading to version 2.3.6 (git checksum a35a25f) allows mnemosyne to start. See: http://pastebin.com/LRcq7Epx

#### smls commented on 2016-05-19 02:55 (UTC)

@marmistrz Sorry about that. Fixed now.

#### marmistrz commented on 2016-05-18 13:06 (UTC)

The md5sum check fails as of 2016-05-18.

#### smls commented on 2014-10-20 16:59 (UTC)

It looks like russo79's patch was committed upstream, so after the next Mnemosyne release it will no longer need to be bundled with the PKGBUILD... :)

#### shuu commented on 2014-10-12 02:51 (UTC)

It looks like python2-distribute should be changed to python2-setuptools in the extra repo. Python2-distribute is not in the AUR anymore.

#### russo79 commented on 2014-09-03 19:51 (UTC)

Here [1] (in the mnemosyne directory) 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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

@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 (UTC)

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?

#### gojun077 commented on 2013-08-24 05:00 (UTC)

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 (UTC)

@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.

#### smls commented on 2013-08-23 11:29 (UTC)

@gojun077 That's strange, there should not be any need for special permissions or groups - for me it just works. Mnemosyne creates its LaTeX related temporary tex/dvi/png files in this folder (insert the name of your Mnemosyne database in place of "___TMP___", if you have given it an explicit name.): ~/.local/share/mnemosyne/___TMP___.db_media/_latex Make sure that there are no permission problems with this folder, and if there are old files there that may cause problems, remove them.

#### gojun077 commented on 2013-08-23 06:01 (UTC)

Thanks for your help in the dvipng / LaTeX thread on the main Arch Linux forums (https://bbs.archlinux.org/viewtopic.php?pid=1315420#p1315420) -- Now dvipng LaTeX rendering works in mnemosyne if I run it as root. When I run mnemosyne as regular user and try to create a card with LaTeX, however, the CLI output says "tmp.dvi: No such file or directory" and Mnemosyne complains, "Problem with latex. Are latex and dvipng installed?" This seems to be a file permission issue, but ls -l shows dvipng as r-x for regular users. Does my regular user need to be member of some group (i.e. tex) to be able to run LaTeX as non-root? After the texlive update I accidentally overwrote my /etc/group file when merging .pacnew files but have mostly recovered my original settings. I'm not sure if this is the right place to post this issue, as mnemosyne AUR package works just fine -- I seem to be having problems with texlive which is just an optional dependency for mnemosyne... Note: LaTeX editors like Gummi, which render to PDF, are working just fine for me (I can run it as local user).

#### smls commented on 2013-03-29 18:56 (UTC)

@gojun077 Thanks, I've bumped the version number of the mnemosyne-bzr package. For the mnemosyne package, I prefer to stick to stable releases only.

#### gojun077 commented on 2013-03-29 17:21 (UTC)

According to main developer Peter Bienstman 2.2.1 RC1 released yesterday: https://groups.google.com/forum/?fromgroups=#!topic/mnemosyne-proj-users/AIUxvJ3a1Sw

done

#### prettyvanilla commented on 2013-01-08 02:00 (UTC)

2.2a was released (http://mnemosyne-proj.org/whats-new), and even though the changelog only concerns windows, the tarball on sourceforge has also been renamed accordingly, so the PKGBUILD needs updating.

#### commented on 2012-08-03 06:05 (UTC)

Working reliably now with version 2.0.1, thank you.

#### smls commented on 2012-08-02 20:41 (UTC)

Version 2.0.1 was just released - package updated accordingly.

#### smls commented on 2012-08-01 22:36 (UTC)

No crashes here. Anyways, according to the upstream mailinglist, a new version (2.0.1) which supposedly fixes certain crashes will be released soon. A release candidate is already available, you can install it using the following PKGBUILD: http://pastebin.com/YXNv9ajv - can you try that one and see if it solves your issue?

#### commented on 2012-08-01 16:40 (UTC)

Is anyone else experiencing random crashes with 2.0? I am crashing the program using the same database on two different Arch systems. The developer has acknowledged a problem but it does not seem to be prevalent on Linux. It's been a couple of weeks now and I'm thinking about going back to the old program.

@dsr: Thanks...

#### commented on 2012-07-14 20:45 (UTC)

Sorry I had forgotten I was the maintainer. I am disowning it now so you can adopt it. :)

#### smls commented on 2012-06-16 08:08 (UTC)

@Maintainer: See my "mnemosyne-bzr" package for build instructions for the 2.x version, and a useful post-install message for users who upgrade from 1.x ... I think it makes sense to let "mnemosyne-bzr" continue to point the head of the main development branch, and let this package ("mnemosyne") install the newest stable version of that branch, i.e. currently 2.0... In case anybody wants to keep using Mnemosyne 1.2 (why would they?), a legacy "mnemosyne1" package could be created. What do you think? (PS: If you don't want to maintain this package anymore, I'd be happy to take it over.)

#### smls commented on 2012-06-16 08:03 (UTC)

Version 2.0 is finally out! (Announcement at http://www.mnemosyne-proj.org/news.php)

#### smls commented on 2012-02-11 17:41 (UTC)

FYI, I just created the AUR package mnemosyne-bzr, which installs the latest development snapshot of Mnemosyne 2 (which finally uses Qt4 instead of Qt3, and provides several cool new features) from the official bazaar repository. The current state is already past version 2.0-beta10, and is already stable enough for normal usage.

#### commented on 2010-10-24 20:28 (UTC)

All right, just did.

#### bostonvaulter commented on 2010-10-21 23:06 (UTC)

Thanks dsr, I've adopted and updated the package. Although I don't use mnemosyne anymore (I use Anki), maybe you'd like to adopt the package instead?

#### commented on 2010-10-21 17:36 (UTC)

Now that python was changed to python2 and python3 was changed to python, the line in the PKGBUILD that reads python setup.py install --root=${pkgdir}" should be changed to python2 setup.py install --root=${pkgdir}"