Anki fails to load sqlalchemy.exceptions and crashes

Bug #876989 reported by SethWoodworth
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
anki (Ubuntu)
Fix Released
Undecided
Rolf Leggewie

Bug Description

laptor:~ [dot*] $ anki
Traceback (most recent call last):
  File "/usr/bin/anki", line 8, in <module>
    ankiqt.run()
  File "/usr/share/anki/ankiqt/__init__.py", line 78, in run
    import config
  File "/usr/share/anki/ankiqt/config.py", line 10, in <module>
    from anki.utils import genID
  File "/usr/share/anki/anki/__init__.py", line 58, in <module>
    from anki.deck import DeckStorage
  File "/usr/share/anki/anki/deck.py", line 14, in <module>
    from anki.db import *
  File "/usr/share/anki/anki/db.py", line 33, in <module>
    from sqlalchemy.exceptions import DBAPIError, OperationalError
ImportError: No module named exceptions

anki depends on sqlalchemy >= 0.4.3 and according to the release notes for 0.5.8[1], sqlalchemy.exceptions was renamed to sqlalchemy.exc.

[1] http://www.sqlalchemy.org/changelog/CHANGES_0_5_8

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in anki (Ubuntu):
status: New → Confirmed
Revision history for this message
echelon (echelon-y) wrote :

I'd like to confirm the bug.

Anki's website reports this as well [1]: "Note: if you're using a bleeding edge distro you may get a "no such module: exceptions" error, because SQLAlchemy in your distro is not compatible. You will need to uninstall the deb and install 1.2.9 from source, which contains a workaround for SQLAlchemy."

[1]: http://ankisrs.net/#linux

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I suppose this particular error has been fixed in the meantime?

Changed in anki (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Incomplete
Revision history for this message
François Marier (fmarier) wrote :

Should be fixed in 14.04.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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