-
Notifications
You must be signed in to change notification settings - Fork 8
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
Pygments import error #4
Comments
Hello Tiago, could we be lucky to have a fix, if you have some spare time? You add-on is doing great, minus the warning message that pops up every time we launch Anki2. Thank you. |
Hi nomnex, presumably you've already got pygments installed as that's what the error indicates. I too suffered from this error until I deleted the pygments folder in the code_highlight_addon folder, this fixes the issue with it conflicting with the system pygments package. |
thanks for the feedback and sorry for the delay. if I remove the pygments folder in the addon I have another type of error message error msg with the pygments folder:
error message with the pygmens folder removed:
|
Hi Nomnex, you have a different error to the one initially posted. In the intial post pygments has been imported twice, your first error message indicates that anki (the module) has been imported twice. What version of Anki are you running? If it's not the most recent, could you try using that? |
Python 2.7.1 and anki 2.0.9 beta on Fedora Linux 15. You are right; after reading you message, I removed the anki 1.2.8 package from my distribution . I don't have this error message anymore when I start Anki 2. thank you. |
Glad I could help! On 3 June 2013 16:11, nomnex [email protected] wrote:
Will |
I get this error message on launch of anki.
An error occurred in an add-on. Please contact the add-on author.
/home/user/Anki/addons/code_highlight_addon/pygments/plugin.py:39: UserWarning: Module pygments was already imported from /home/user/Anki/addons/code_highlight_addon/pygments/init.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
import pkg_resources
The text was updated successfully, but these errors were encountered: