SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
anki on Slackware 13.37
Hi all,
has anyone succeeded in running Anki (http://ankisrs.net/ , a flash-card program to learn facts) on Slackware 13.37? If so, could you please post the versions of python, sqlite, sqlalchemy and python-simplejson that you have installed?
I get an error each time I try to create a new card deck, exactly as described in http://code.google.com/p/anki/issues...tars%20Summary . Any hint on which versions of the afore mentioned apps work together so that you can create a new card deck is highly appreciated.
tito
Click here to see the post LQ members have rated as the most helpful post in this thread.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Original Poster
Rep:
Quote:
Originally Posted by chrissi29
Hello Tito,
not an answer to your question. But did you think about using Parley, which is very easy to install?
Hi Chrissi29,
yes, I have thought about Parley or other simpler flash card programs. Anki has advantages that come very very handy to me and that are not at all met by other apps like Parley. They are for my purpose way to simple and require twice or three times the time to get the same cards done*. But thanks for your suggestion.
Tito
* Anki uses "facts" to generate cards. You can assign several card layouts to one fact and Anki creates all the cards automatically once you have input the fact. For example imagine a simple irregular verb. You have the base form, past and perfect in language 1 and the translation of the verb in language 2. With Anki you can now create CardLayouts, for example "What means {verb-base} in {verb-translation}" or "What is the perfect form of {verb-base}" or "What is the past form that belongs to {verb-perfect}". That way you can create many cards in one step. Once you think to add a CardLayout or want to change one of the facts, you can automatically recreate all required cards without tinkering with every single one.
Hi Tito,
sounds really interesting, though I also could not get it to work on current.
I tried Salix64-Packages and the Debian packages from the official site...
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Original Poster
Rep:
I have it running on ArchLinux in VirtualBox without problems, but would prefer to run it directly on Slackware though. On my Laptop the virtual machine is a heavy burden, it slows down every other task.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Original Poster
Rep:
Quote:
Originally Posted by pino_otto
I run anki on my Slackware 13.1
I just downloaded from the website, uncompressed and run.
Hi pino_otto,
thanks for your feedback. Could you tell me which versions you are running? python, anki, simplejson, SQLAlchemy and eventually sqlite are the ones that I need I think. That would be highly appreciated
The problem is that Slackware's sqlite was compiled with the SQLITE_ENABLE_STAT2 option, which adds further index data to the database in the form of an additional table (sqlite_stat2, which cannot be deleted) to increase query speeds. The development version of Anki has proper support for sqlite with that option, but the stable version does not. Unfortunately the dev version is not full-featured and is a *major* change from 1.x. You could compile the development version and use that, or you can try a workaround to get 1.x to work.
I myself compiled sqlite without the SQLITE_ENABLE_STAT2 option (in its own little directory, not system-wide) and exported LD_LIBRARY_PATH to point to the new sqlite installation before running anki. You might be able to get away with recompiling sqlite and installing it system-wide, but I have no idea whether or not it would break existing sqlite databases (which would contain the extra table) and the software that uses it (like KDE, for example).
Here's the diff for the SlackBuild I used (compared to the official Slackware 13.37 SlackBuild). You will have to adjust the directories used (TMP and PKG). Note that I built this using my regular user in my home directory -- it is *not* installed system wide. You can of course do as you please.
I wrote a quick wrapper script to launch anki for me so I don't have to manually export LD_LIBRARY_PATH every time. I'll include that in case you want it:
Code:
#!/bin/sh
PRGNAM=anki
VERSION=1.2.9
ANKIDIR="$(dirname "$(readlink -f $0)")"
PREFIX="$ANKIDIR/deps/pkg/usr"
#PYTHON="$PREFIX/bin/python"
PYTHON="/usr/bin/python"
LD_LIBRARY_PATH="$PREFIX/lib64"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
cd "$ANKIDIR/$PRGNAM-$VERSION"
$PYTHON anki
You'll have to adjust the paths again here (ANKIDIR just gets the directory that this wrapper script lives in, but you may not want that. PREFIX is where the new sqlite lives. This script assumes anki is just an untarred anki package living in the same directory as the wrapper script (so anki-$VERSION)).
You'll probably have to fiddle a bit to get it to work but it does work fine with this ugly workaround.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Original Poster
Rep:
Hi T3slider,
a big thank you for your great post. I am hoping to try it later this evening or tomorrow, but from what you wrote this looks more than promising. I had already tried different versions of all included apps but python, but I hadn't looked at the build options at all, nearsighted as I am. I appreciate your post very much and will report back if or better when I succeeded
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Original Poster
Rep:
Wonderful, it works. First I compiled sqlite the wrong way - instead of removing the part I set the option to "0" instead of "1" which didn't work. Now I have installed it system-wide. Since I am using Xfce4 and have not found any sqlite databases besides seamonkey and firefox configure files on my system, there should be no problems I guess. Your tip with the local per-user installation looks good, too, should I run in any problems. Thanks again for this solution T3slider, now I can concentrate on putting the data in and learning with Anki
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.