You are not logged in.

#1 2009-07-20 10:53:03

mojomagic
Member
Registered: 2009-04-10
Posts: 26

[Solved] Anki problem, doesn't launch. [Solved, my fault]

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

#2 2009-07-20 11:51:38

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

Looks like you need a python module called JapaneseModel.    Sounds like a missing dependency, so you should open a bug report.

Online

#3 2009-07-20 12:00:18

mojomagic
Member
Registered: 2009-04-10
Posts: 26

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

Allan wrote:

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

#4 2009-07-20 12:01:25

resolve
Member
Registered: 2009-07-20
Posts: 2

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

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

#5 2009-07-20 12:02:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

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.

Online

#6 2009-07-20 12:03:06

mojomagic
Member
Registered: 2009-04-10
Posts: 26

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

resolve wrote:

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

#7 2009-07-20 12:03:43

mojomagic
Member
Registered: 2009-04-10
Posts: 26

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

Allan wrote:

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

#8 2009-07-20 12:15:46

resolve
Member
Registered: 2009-07-20
Posts: 2

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

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

#9 2009-07-20 12:41:01

mojomagic
Member
Registered: 2009-04-10
Posts: 26

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

resolve wrote:

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

#10 2009-07-20 12:41:48

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [Solved] Anki problem, doesn't launch. [Solved, my fault]

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

Board footer

Powered by FluxBB