Anki 0.9.9.8.6 works with sqlalchemy 0.5.8, but is incompatible with sqlalchemy 0.6.0 as described on the anki bug tracker (see URL). Reproducible: Always Steps to Reproduce:
Created attachment 228573 [details, diff] upstream patch
Fixed in app-misc/anki-0.9.9.8.6-r1.