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

Installation on Windows? #54

Open
Ypot opened this issue Oct 18, 2019 · 3 comments
Open

Installation on Windows? #54

Ypot opened this issue Oct 18, 2019 · 3 comments

Comments

@Ypot
Copy link

Ypot commented Oct 18, 2019

Hi!
In installation instructions I can read:

To install this module from source on Linux or macOS:

git clone https://github.com/c-okelly/org_to_anki
cd org_to_ani
python3 setup.py install

But, how to install org_to_anki on Windows?

Thanks, your software looks incredible.

@Ypot Ypot closed this as completed Oct 18, 2019
@c-okelly
Copy link
Owner

I assume you can just run python3 setup.py install though I'm not really sure tbh and don't have a Windows env to test on

@Ypot Ypot reopened this Oct 19, 2019
@Ypot
Copy link
Author

Ypot commented Oct 19, 2019

  1. I've installed last stable python for windows. (Making sure to tick the option to add python to PATH):
    https://www.python.org/downloads/windows/
  2. Open CMD as ADMIN
  3. Launched your setup, by pasting its path into the CMD and adding install to the end:
    C:\Downloads\org_to_anki-master\setup.py install
  4. I tested org_to_anki to see if it worked. I wrote on the CMD:
    C:\Windows\system32>org_to_anki C:\3-Holoteca.org
    But it seems the result was not good:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python38-32\Scripts\org_to_anki-script.py", line
11, in <module>
    load_entry_point('org-to-anki==1.3.1', 'console_scripts', 'org_to_anki')()
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\pkg_resources\__ini
t__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\pkg_resources\__ini
t__.py", line 2852, in load_entry_point
    return ep.load()
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\pkg_resources\__ini
t__.py", line 2443, in load
    return self.resolve()
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\pkg_resources\__ini
t__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'src'

@c-okelly
Copy link
Owner

c-okelly commented Jan 21, 2020

Sorry I should have added a much more obvious solution to this problem. Just use the Anki plugin instead

https://ankiweb.net/shared/info/1029306148

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

2 participants