`ImportError: No module named Qsci`
Closed this issue · 3 comments
Hi.
The idea for the add-on is great.
(I thought i was the only one who made small CSS-changes, synced, looked, made new changes and so on. Apparently not.)
But i get
An error occurred in an add-on. Please contact the add-on author.
Traceback (most recent call last):
File "/home/roland/aw/github/anki-learn/ankiqt/aqt/addons.py", line 45, in loadAddons
__import__(file.replace(".py", ""))
File "/home/roland/Anki/addons/sstyler.py", line 6, in
import SuperStyler.main
File "/home/roland/Anki/addons/SuperStyler/main.py", line 9, in
from superstyler import SuperStyler
File "/home/roland/Anki/addons/SuperStyler/superstyler.py", line 16, in
import editor
File "/home/roland/Anki/addons/SuperStyler/editor.py", line 16, in
from qtLocal.Qsci import QsciScintilla, QsciLexerCSS
ImportError: No module named Qsci
I guess i can just install Qsci, and, as the typical user of this is bound to be a fiddler, that might even be almost acceptable.
I guess i can just install Qsci(ntilla-Python)
That seems to have done the trick. I would still prefer a nicer error message.
Well that was quick, I just uploaded the plugin :). I'm aware of this issue, it's the third TODO on the list. I wondered if it would be worth the effort of bundling Qsci as well, but figured not many people would be interested. I'll take a look at it soon enough.
qscintilla for linux is now packaged with the plugin, so you don't need to install it yourself anymore. It'll be in the next release (1.1).