Closed colonelsmoothie closed 7 years ago
Okay, actually I made a boneheaded mistake and installed the compiled binary instead of the actual source.
It should have been
wget https://apps.ankiweb.net/downloads/current/anki-2.0.39-source.tgz
tar xvf anki-2.0.39-source.tgz
cd anki-2.0.39
sudo make install
Now everything's working fine...
I noticed with the latest Anki 2.0.39 version, the PREFIX in makefile has changed from:
PREFIX=/usr
to
PREFIX=/usr/local
This causes
sudo make install
to install Anki in a different directory than for previous versions, which causes aImportError: No module named anki
when you try to start the server. I wish I could point you to where in the repo this change happened but it looks like Damien bumps the version from 2.0.36 to 2.1 alpha without any mention of going to 2.0.39. However, you can take a look for yourself in the 2.0.39 tar.bz2 or on the ankisrs.net changes page.Here's how to reproduce the error in Ubuntu 16.04.
Install Anki 2.0.39
Install AnkiServer
Configure AnkiServer
Start AnkiServer
Which produces the following error:
Workarounds:
Fortunately installing via the 2.0.39 deb file works without any problems. Also, going back to 2.0.36 works as well.
I tried simply changing the
PREFIX=/usr/local
in the makefile back toPREFIX=/usr
and doing asudo make install
from there, but that still does not solve the problem.