anki crashed with AttributeError in __getattr__()

Bug #634798 reported by VVV
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
anki (Debian)
Fix Released
Unknown
anki (Ubuntu)
Fix Released
Medium
Unassigned
Maverick
Fix Released
Medium
Unassigned

Bug Description

SRU Test Case:
1. File -> Download -> Shared Deck
2. Select any shared deck
3. Click download and watch it crash
4. Upgrade to -proposed package
5. File -> Download -> Shared Deck
6. Select any shared deck
7. Click download and watch it work

------------------------------------------------

Binary package hint: anki

Crashes when trying to download a shared deck.

Traceback (most recent call last):
  File "/usr/share/anki/ankiqt/ui/getshared.py", line 166, in accept
    if not self.parent.saveAndClose(hideWelcome=True, parent=self):
  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'

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: anki 0.9.9.8.6-2
ProcVersionSignature: Ubuntu 2.6.32-24.42-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Sep 10 13:16:23 2010
ExecutablePath: /usr/bin/anki
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/anki
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/anki']
SourcePackage: anki
Title: anki crashed with AttributeError in __getattr__()
UserGroups: adm admin cdrom dialout dip lpadmin netdev plugdev sambashare vboxusers

Revision history for this message
VVV (vvv-box) wrote :
description: updated
tags: removed: need-duplicate-check
visibility: private → public
Changed in anki (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Daniel Rich (qianyilong) wrote :

Notice that this bug will probably be resolved by upgrading to the new version of anki. I found a conversation on a debian list that seemed to hint that that was the case. I haven't had a chance to manually try it myself just yet.

http://<email address hidden>/msg789726.html

Thanks.

Revision history for this message
Damien Elmes (resolve) wrote :

This bug is because the SQLAlchemy libraries were upgraded. The latest version of Anki does not have this problem, but unfortunately the Debian maintainer does not seem to be actively maintaining the package. This is somewhat irritating as people upgrading to Ubuntu 10.10 keep posting on the Anki bugtracker that Anki is broken, when the issues are just that Debian/Ubuntu have out of date packages.

I provide a .deb of the latest version of Anki on the Anki website, but I do not know enough about package authoring to ensure it complies with all the packaging rules. I would appreciate it if someone could either update Anki to a working version, or remove it from Ubuntu until someone has time to package a working version.

Revision history for this message
Micah Gersten (micahg) wrote :

Pulled patch from Debian point release to fix sqlalchemy compatibility.

Revision history for this message
Micah Gersten (micahg) wrote :
description: updated
Micah Gersten (micahg)
Changed in anki (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
Stefano Rivera (stefanor) wrote :

Looks like we've synced the new version into Natty already.

Changed in anki (Ubuntu Maverick):
importance: Undecided → Medium
status: New → Confirmed
Changed in anki (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Stefano Rivera (stefanor) wrote :

Uploaded to maverick-proposed.

Changed in anki (Ubuntu Maverick):
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted anki into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Stefano Rivera (stefanor) wrote :

Nobody else has tested this, it passes the test case in a maverick vm for me.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for testing.

I've been able to reproduce with anki in maverick too and the version 0.9.9.8.6-2ubuntu0.1 in -proposed fixes the issue.

marking as verification-done

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

This bug was fixed in the package anki - 0.9.9.8.6-2ubuntu0.1

---------------
anki (0.9.9.8.6-2ubuntu0.1) maverick-proposed; urgency=medium

  * Add upstream patches for sqlalchemy 0.6 compatibility; Patch from Debian
    0.9.9.8.6-2.1, thanks to Esteban Manchado Velázqu (LP: #634798)
 -- Micah Gersten <email address hidden> Mon, 18 Oct 2010 23:51:29 +0200

Changed in anki (Ubuntu Maverick):
status: Fix Committed → Fix Released
Changed in anki (Debian):
status: Unknown → 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.