dsnopek / anki-sync-server

A personal Anki sync server (so you can sync against your own server rather than AnkiWeb)
GNU Affero General Public License v3.0
741 stars 95 forks source link

python3 or python2 ? #58

Open GengShen opened 7 years ago

GengShen commented 7 years ago

There is a problem after pip install AnkiServer:

  1. Server code need run with python2.
  2. Anki code in anki-bundled fold need run with python3. How to resolve this?
yashen commented 6 years ago

I met the same problem in AnkiServer/init.py sys.path.insert(0, "/usr/share/anki") In my PC,the folder is installed by pacman -S anki So I download a Release,and extract it to /anki_python2_lib,download link is https://apps.ankiweb.net/downloads/archive/anki-2.0.36.tgz edit AnkiServer/init.py,use system.path.insert(0,"/anki_python2_lib")

kuklinistvan commented 6 years ago

Same here, running on an Arch Linux server. Yashen's workaround solved it, thanks!