anki refuses to import

Bug #795376 reported by cam
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
anki (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: anki

When I try to download any deck through Anki's built in deck download feature, it fails and returns the following:

File is corrupt or not an Anki database. Click help for more info.

Debug info:
Traceback (most recent call last):
File "/usr/share/anki/ankiqt/ui/main.py", line 716, in loadDeck
self.deck = DeckStorage.Deck(deckPath)
File "/usr/share/anki/anki/deck.py", line 2814, in Deck
deck.rebuildQueue()
File "/usr/share/anki/anki/deck.py", line 685, in rebuildQueue
self.checkDue()
File "/usr/share/anki/anki/deck.py", line 665, 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.7/dist-packages/sqlalchemy/orm/session.py", line 701, in execute
clause, params or {})
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1194, in execute
params)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1274, in _execute_clauseelement
return self.__execute_context(context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1305, in __execute_context
context.parameters[0], context=context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1404, in _cursor_execute
context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1397, in _cursor_execute
context)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 299, in do_execute
cursor.execute(statement, parameters)

I recently switched to 11.04 after using Anki successfully on the same system under 10.10. Also refuses to import from local decks.

Anki version 1.01-1

Revision history for this message
Simon (simon-stjg) wrote :

This problem appears to be fixed in Anki 1.2.8 (when downloaded from their website).

Revision history for this message
François Marier (fmarier) wrote :

Fixed in Ubuntu 12.04.

Changed in anki (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.