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

Syntax Highlighting for Code does not work on Windows 10 and Anki version 2.0.33 with default installation - wrong pygments folder location #8

Open
PiotrSobiegraj opened this issue Nov 2, 2015 · 0 comments

Comments

@PiotrSobiegraj
Copy link

Hello,

after installation I receive this error info:

An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.addons", line 41, in loadAddons
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\Piotrek\Documents\Anki\addons\Syntax Highlighting for Code.py", line 2, in
import code_highlight_addon.code_highlight_addon
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\Piotrek\Documents\Anki\addons\code_highlight_addon\code_highlight_addon.py", line 221, in
from pygments import highlight
File "c:\pyi\iu.py", line 455, in importHook
ImportError: No module named pygments

It is caused by location of folder with pygments library. In my installation it's C:\Users\Piotrek\Documents\Anki\addons\code_highlight_addon\libs\pygments. Moving this folder one level up (C:\Users\Piotrek\Documents\Anki\addons\code_highlight_addon\pygments) does the job. Can you modify it's location by default?

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

1 participant