You are not logged in.
What do I do?
I've got the actual version from the repositories.
Status: Installed
Local Version: 0.9.9.8.5-1
Version in the Repository: 0.9.9.8.5-1
$ anki
Traceback (most recent call last):
File "/usr/bin/anki", line 31, in <module>
ankiqt.run()
File "/usr/lib/python2.6/site-packages/ankiqt-0.9.9.6-py2.6.egg/ankiqt/__init__.py", line 101, in run
ui.importAll()
File "/usr/lib/python2.6/site-packages/ankiqt-0.9.9.6-py2.6.egg/ankiqt/ui/__init__.py", line 20, in importAll
import preferences
File "/usr/lib/python2.6/site-packages/ankiqt-0.9.9.6-py2.6.egg/ankiqt/ui/preferences.py", line 10, in <module>
from anki.stdmodels import JapaneseModel
ImportError: cannot import name JapaneseModel
Thank you
Last edited by mojomagic (2009-07-20 12:44:10)
Offline
Looks like you need a python module called JapaneseModel. Sounds like a missing dependency, so you should open a bug report.
Offline
Looks like you need a python module called JapaneseModel. Sounds like a missing dependency, so you should open a bug report.
Shouldn't that dependency be managed with pacman? So probably the person who made the package forgot to include this one, could it be?
If you happen to know if that dependency is in the repositories, would you please tell me where, I can't find it.
When I have the time I'll file the report, probably on Wednesday.
Thank you
Last edited by mojomagic (2009-07-20 12:01:27)
Offline
Look at the version number in the traceback. The libanki and GUI portions of Anki don't match, probably because you have old files lying around.
Offline
Yes it should be maintained by pacman and I have no idea what package is needed. The best way to deal with this is to file a bug report so the maintainer of the package is notified and fixes the issue for you.
Offline
Look at the version number in the traceback. The libanki and GUI portions of Anki don't match, probably because you have old files lying around.
I already thought of that, I did a complete removal of anki (with pacman) and reinstalled it, shouldn't that be enough?
Besides the GUI doesn't even open.
Last edited by mojomagic (2009-07-20 12:05:32)
Offline
Yes it should be maintained by pacman and I have no idea what package is needed. The best way to deal with this is to file a bug report so the maintainer of the package is notified and fixes the issue for you.
Thank you, will do.
Offline
then the installer has left files lying around, or you previously installed from source. you'll need to manually remove the files listed in the traceback
Offline
then the installer has left files lying around, or you previously installed from source. you'll need to manually remove the files listed in the traceback
That was it, thank you.
I thought I had removed everything before, but there where some python modules still lying around.
Thank you.
Offline
You should first find out what it actually is before making bug reports. JapaneseModel is a function that is in the file stdmodels.py inside the anki directory. http://anki.sourcearchive.com/documenta … files.html So it is clearly an internal issue.
I don't have anki so I don't know how to fix it, can you take a look at your stdmodels.py file?
It should be here, but check pacman -Ql anki | grep stdmodels
/usr/lib/python2.6/site-packages/ankiqt-0.9.9.6-py2.6.egg/libanki/anki/stdmodels.py
Offline