Skip to content
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
Open

python3 or python2 ? #58

GengShen opened this issue Jan 31, 2017 · 2 comments

Comments

@GengShen
Copy link

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
Copy link

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
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants