New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 or python2 ? #58

Open
GengShen opened this Issue Jan 31, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@GengShen

GengShen commented Jan 31, 2017

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

This comment has been minimized.

yashen commented Sep 28, 2017

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

This comment has been minimized.

kuklinistvan commented Dec 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment