org_to_anki icon indicating copy to clipboard operation
org_to_anki copied to clipboard

Installation on Windows?

Open Ypot opened this issue 6 years ago • 3 comments

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 avatar Oct 18 '19 06:10 Ypot

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

c-okelly avatar Oct 18 '19 23:10 c-okelly

  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'

Ypot avatar Oct 19 '19 13:10 Ypot

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

c-okelly avatar Jan 21 '20 06:01 c-okelly