Bug#616686: anki: upgrading makes data from previous version unreadable

2011-03-06 Thread Damien Elmes
The latest version of Anki is 1.2. I suggest you upgrade, as it should
be able to read your deck.

On Mon, Mar 7, 2011 at 1:39 AM, Michael Goetze mgoe...@mgoetze.net wrote:
 Package: anki
 Version: 1.0.1-1
 Severity: grave
 Justification: causes data loss

 After upgrading from 0.9.9.8.6-2.1 to 1.0.1-1, Anki can no longer read
 my old decks. Furthermore, after downgrading, I cannot import any of the
 decks from ~/.anki/backups, with errors such as:

 Import failed.
 Traceback (most recent call last):
  File /usr/share/anki/ankiqt/ui/importing.py, line 172, in doImport
    self.importer.doImport()
  File /usr/share/anki/anki/importing/anki10.py, line 31, in doImport
    src = DeckStorage.Deck(self.file)
  File /usr/share/anki/anki/deck.py, line 2804, in Deck
    deck.rebuildQueue()
  File /usr/share/anki/anki/deck.py, line 683, in rebuildQueue
    self.checkDue()
  File /usr/share/anki/anki/deck.py, line 663, in checkDue
    stmt % 0, now=time.time()+self.delay0).rowcount
  File /usr/share/anki/anki/db.py, line 114, in statement
    return self.execute(text(sql), kwargs)
  File /usr/share/anki/anki/db.py, line 90, in execute
    x = self._session.execute(*a, **ka)
  File /usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py,
 line 735, in execute
    clause, params or {})
  File /usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py,
 line 1157, in execute
    params)
  File /usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py,
 line 1237, in _execute_clauseelement
    return self.__execute_context(context)
  File /usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py,
 line 1268, in __execute_context
    context.parameters[0], context=context)
  File /usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py,
 line 1367, in _cursor_execute
    context)
  File /usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py,
 line 1360, in _cursor_execute
    context)
  File /usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py,
 line 288, in do_execute
    cursor.execute(statement, parameters)
 OperationalError: (OperationalError) no such index: ix_cards_priorityDue
 u'update cards  indexed by ix_cards_priorityDue set isDue = 1 where type
 = 0 and isDue = 0 and priority in (1,2,3,4) and combinedDue = ?'
 (1299430077.8064089,)

 So, presently, all my data seems to be unreadable.







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#589735: anki: can't create deck

2010-07-20 Thread Damien Elmes
http://code.google.com/p/anki/issues/detail?id=1730

On Tue, Jul 20, 2010 at 10:56 PM, Toni Mueller supp...@oeko.net wrote:
 Package: anki
 Version: 0.9.9.8.6-2
 Severity: important



 Hello,

 I can't create a deck with anki:

 1. I start anki.
 2. I press Create
 3. I get a popup-window with this error message:


 An error occurred. Please:
 Restart Anki.
 Tools  Advanced  Full Database Check.
 If it does not fix the problem, please copy the following
 into a bug report:

 Traceback (most recent call last):
  File /usr/share/anki/ankiqt/ui/main.py, line 877, in onNew
    self.deck = DeckStorage.Deck(path)
  File /usr/share/anki/anki/deck.py, line 2708, in Deck
    deck = DeckStorage._init(s)
  File /usr/share/anki/anki/deck.py, line 2842, in _init
    s.save(deck)
 AttributeError: 'Session' object has no attribute 'save'


 Unfortunately, after restarting anki, the Tools menu
 is inaccessible (greyed out), but since I pushed aside
 my .anki directory, it shouldn't matter anyway.



 Kind regards,
 --Toni++



 -- System Information:
 Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (250, 'unstable'), (50, 'experimental')
 Architecture: i386 (i686)

 Kernel: Linux 2.6.32-5-686-bigmem (SMP w/4 CPU cores)
 Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash

 Versions of packages anki depends on:
 ii  python                        2.6.5-5    An interactive high-level 
 object-o
 ii  python-beautifulsoup          3.1.0.1-2  error-tolerant HTML parser for 
 Pyt
 ii  python-qt4                    4.7.3-1+b1 Python bindings for Qt4
 ii  python-simplejson             2.1.1-1    simple, fast, extensible JSON 
 enco
 ii  python-sqlalchemy             0.6.1-1    SQL toolkit and Object Relational
 ii  python-support                1.0.9      automated rebuilding support for 
 P

 Versions of packages anki recommends:
 ii  kakasi          2.3.5~pre1+cvs20071101-1 KAnji KAna Simple Inverter
 ii  python-matplotl 0.99.3-1                 Python based plotting system in a

 Versions of packages anki suggests:
 ii  dvipng                        1.13-1     convert DVI files to PNG graphics

 -- no debconf information







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#588206: anki: Deck is already open error after system lockup and restart

2010-07-06 Thread Damien Elmes
I suspect you're actually hitting
http://code.google.com/p/anki/issues/detail?id=1730

On Tue, Jul 6, 2010 at 2:57 PM, clayton cko...@gmail.com wrote:
 Package: anki
 Version: 0.9.9.8.6-2
 Severity: important


 Yesterday I had X lockup and had to shutdown the system (and anki) 
 ungracefully. Today when I start anki and try to use the deck I
 was using yesterday, I get a Deck is already open error for ALL of my 
 installed decks. At this point anki would appear to be
 totally broken unless I restore from backups.

 -- System Information:
 Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
 Architecture: i386 (i686)

 Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash

 Versions of packages anki depends on:
 ii  python                        2.6.5-5    An interactive high-level 
 object-o
 ii  python-beautifulsoup          3.1.0.1-2  error-tolerant HTML parser for 
 Pyt
 ii  python-qt4                    4.7.3-1+b1 Python bindings for Qt4
 ii  python-simplejson             2.1.1-1    simple, fast, extensible JSON 
 enco
 ii  python-sqlalchemy             0.6.1-1    SQL toolkit and Object Relational
 ii  python-support                1.0.8      automated rebuilding support for 
 P

 Versions of packages anki recommends:
 ii  kakasi          2.3.5~pre1+cvs20071101-1 KAnji KAna Simple Inverter
 ii  python-matplotl 0.99.3-1                 Python based plotting system in a

 Versions of packages anki suggests:
 pn  dvipng                        none     (no description available)

 -- no debconf information







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#588206: anki: Deck is already open error after system lockup and restart

2010-07-06 Thread Damien Elmes
What does it say on the console / in an error message when you try to
close a deck?

On Tue, Jul 6, 2010 at 4:41 PM, Clayton cko...@gmail.com wrote:
 It would seem the version of anki in testing is indeed totally broken.
 It reliably breaks as I have already described above every time I
 restore a working backup of the ~/.anki directory.

 Running the latest version of anki from git (download instructions at
 the bottom of this page http://ichi2.net/anki/) does work, although it
 has a minor problem where I cannot close the currently open deck. To
 open a new deck, I have to exit anki and restart.

 Clayton




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#584262: File-Close: AttributeError : 'Session' object has no attribute 'clear'

2010-06-02 Thread Damien Elmes
You need the latest git version of Anki for this: Debian upgraded
sqlalchemy and 0.9.9.8.6 doesn't support it.

On Thu, Jun 3, 2010 at 3:28 AM, Carsten Kosthorst
carsten.kostho...@gmx.de wrote:
 Package: anki
 Version: 0.9.9.8.6-2
 Severity: important

 Hi,

 with an open deck File - Close throws

 Traceback (most recent call last):
   File /usr/share/anki/ankiqt/ui/main.py, line 809, in onClose
      self.saveAndClose(hideWelcome=isCram)
   File /usr/share/anki/ankiqt/ui/main.py, line 859, in saveAndClose
      self.deck.rollback()
   File /usr/share/anki/anki/deck.py, line 2230, in rollback
      self.s.clear()
   File /usr/share/anki/anki/hooks.py, line 59, in repl
      return old(*args, **kwargs)
   File /usr/share/anki/anki/db.py, line 74, in __getattr__
      return getattr(self.__dict__['_session'], k)
 AttributeError :  'Session' object has no attribute 'clear'

 Additionally, a dialog pops up. It prints the same exception and suggests to 
 check the database (which does not help).

   Carsten

 -- System Information:
 Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
 Architecture: amd64 (x86_64)

 Kernel: Linux 2.6.31.6 (SMP w/4 CPU cores)
 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash

 Versions of packages anki depends on:
 ii  python                        2.5.4-9    An interactive high-level 
 object-o
 ii  python-beautifulsoup          3.1.0.1-2  error-tolerant HTML parser for 
 Pyt
 ii  python-qt4                    4.7.3-1    Python bindings for Qt4
 ii  python-simplejson             2.1.1-1    simple, fast, extensible JSON 
 enco
 ii  python-sqlalchemy             0.6.1-1    SQL toolkit and Object Relational
 ii  python-support                1.0.8      automated rebuilding support for 
 P

 Versions of packages anki recommends:
 pn  kakasi                        none     (no description available)
 ii  python-matplotlib             0.99.1.2-3 Python based plotting system in a

 Versions of packages anki suggests:
 ii  dvipng                        1.13-1     convert DVI files to PNG graphics

 -- no debconf information







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#584070: TypeError: leftHandKeys() takes exactly 2 arguments (1 given)

2010-05-31 Thread Damien Elmes
You installed a broken plugin. As the top of the error message says,
file a report with the plugin author.

On Tue, Jun 1, 2010 at 10:38 AM, Robert
robert.la...@s1999.tu-chemnitz.de wrote:
 Package: anki
 Version: 0.9.9.8.6-2
 Severity: important

 On a lot of key presses in anki I get a error dialog which says
 TypeError: leftHandKeys() takes exactly 2 arguments (1 given)

 Example to reproduce:
 - Open a deck
 - Start Reviewing
 - Press any invalid key like 6

 I set it to important because this error pops up very often so it's
 very difficult to use anki.


 -- System Information:
 Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'stable'), (70, 'unstable'), (1, 
 'experimental')
 Architecture: i386 (i686)

 Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash

 Versions of packages anki depends on:
 ii  python                        2.5.4-9    An interactive high-level 
 object-o
 ii  python-beautifulsoup          3.1.0.1-2  error-tolerant HTML parser for 
 Pyt
 ii  python-qt4                    4.7.3-1    Python bindings for Qt4
 ii  python-simplejson             2.1.1-1    simple, fast, extensible JSON 
 enco
 ii  python-sqlalchemy             0.5.8-1    SQL toolkit and Object Relational
 ii  python-support                1.0.8      automated rebuilding support for 
 P

 Versions of packages anki recommends:
 ii  kakasi          2.3.5~pre1+cvs20071101-1 KAnji KAna Simple Inverter
 pn  python-matplotl none                   (no description available)

 Versions of packages anki suggests:
 pn  dvipng                        none     (no description available)

 -- no debconf information







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#581600: depends on python-kde4-dev

2010-05-14 Thread Damien Elmes
I believe this is fixed in later versions of Debian. It was a mistake
by the qt packager to include the config module in -dev.

On Fri, May 14, 2010 at 4:23 PM, Bayle Shanks bshan...@gmail.com wrote:
 Package: anki
 Version: 0.9.9.8.6-2

 $ anki

 Traceback (most recent call last):
  File /usr/bin/anki, line 8, in module
    ankiqt.run()
  File /usr/share/anki/ankiqt/__init__.py, line 186, in run
    ui.importAll()
  File /usr/share/anki/ankiqt/ui/__init__.py, line 8, in importAll
    import activetags
  File /usr/share/anki/ankiqt/ui/activetags.py, line 8, in module
    from ankiqt.ui.utils import saveGeom, restoreGeom
  File /usr/share/anki/ankiqt/ui/utils.py, line 285, in module
    import PyQt4.pyqtconfig as PyConf;
 ImportError: No module named pyqtconfig

 [1]+  Exit 1                  anki







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#581577: anki: Unclear error trying to create graph

2010-05-13 Thread Damien Elmes
This version check is removed in the development code. The problem was
actually with sip, not the pyqt version, and the version of sip in
Debian now works fine. If you're feeling adventurous you can remove
the version check from the code and you should be able to see graphs.

On Fri, May 14, 2010 at 5:41 AM, Mikhail Gusarov dotted...@debian.org wrote:
 Package: anki
 Version: 0.9.9.8.6-2
 Severity: minor


 Trying to create a graph in anki results in error Your PyQt installation is
 broken. Please upgrade or downgrade PyQt.

 I have installed all Recommends/Depends: dvipng, python-matplotlib and kakasi,
 but it did not change anything. There are no errors on stdout/stderr as well.

 -- System Information:
 Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'experimental'), (50, 'unstable')
 Architecture: amd64 (x86_64)

 Kernel: Linux 2.6.32-4-openvz-amd64 (SMP w/2 CPU cores)
 Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/dash

 Versions of packages anki depends on:
 ii  python                        2.5.4-9    An interactive high-level 
 object-o
 ii  python-beautifulsoup          3.1.0.1-2  error-tolerant HTML parser for 
 Pyt
 ii  python-qt4                    4.6-1      Python bindings for Qt4
 ii  python-simplejson             2.1.1-1    simple, fast, extensible JSON 
 enco
 ii  python-sqlalchemy             0.5.8-1    SQL toolkit and Object Relational
 ii  python-support                1.0.8      automated rebuilding support for 
 P

 Versions of packages anki recommends:
 pn  kakasi                        none     (no description available)
 ii  python-matplotlib             0.99.1.2-3 Python based plotting system in a

 Versions of packages anki suggests:
 pn  dvipng                        none     (no description available)

 -- no debconf information







--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#69192: dpkg does not maintain a binary cache of its huge text

2010-01-20 Thread Damien Elmes
Here's a solution:

http://ubuntuforums.org/showthread.php?t=1004376



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#518749: anki: Segfaulting after online login attempt

2009-03-12 Thread Damien Elmes
It's only reproducible if your Qt theme is set to Plastique. This bug
has been fixed in dev, so it should go away in 0.9.9.7.

Damien



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#492601: unable to use m17n with anki

2009-01-17 Thread Damien Elmes
My guess is that the original poster's IME doesn't communicate with Qt
apps, probably due to a missing scim-bridge-client-qt4 or similar.

Damien



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#502800: anki always grabs sound device

2008-12-25 Thread Damien Elmes
0.9.9.4 should fix this

Cheers,

Damien



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#486295: anki: Do not delete object during its event handler warning appears when clicking any button

2008-06-26 Thread Damien Elmes
fixed in upstream - was a problem introduced in qt4.4


Bug#483315: anki: cannot close Model Properties dialog

2008-06-02 Thread Damien Elmes
Someone sent me a patch. From a cursory look at the patch previously, I
think all the dialogs have been fixed.

On Mon, Jun 2, 2008 at 9:02 AM, Andreas Bombe [EMAIL PROTECTED] wrote:

 Hi Damien, this one is from the Debian bug tracking system:

 On Wed, May 28, 2008 at 12:43:55PM +0200, Jakub Pawlewicz wrote:
  Package: anki
  Version: 0.9.5.7-1
  Severity: important
 
  Model Properties dialog cannot be closed. The Close button doesn't
  work. In this state I can only kill the application.
 
  The dialog is opened by buttons
  Add Cards ... - Edit the current model
 
  I tried it with new deck and some example decks, everytime getting the
  same effect.

 This appears to be the same as
 http://repose.ath.cx/tracker/anki/issue556, which is said to be fixed in
 the development version.  Are all of these instances fixed?  I found
 that the font preferences and diagram windows also can't be closed,
 although they don't block the main window and allow anki to be closed
 normally.

 (Please keep the Cc: when replying.)




-- 
Cheers,
Damien