batterseapower / pinyin-toolkit

A plugin for the Anki Spaced Repetition System (http://ichi2.net/anki/)
http://batterseapower.github.com/pinyin-toolkit/
39 stars 14 forks source link

Not working with python2-sqlalchemy >= 0.7 #197

Open dominikmayer opened 13 years ago

dominikmayer commented 13 years ago

I'm running Anki on Arch Linux. With the update of python2-sqlalchemy from 0.6.7 to 0.7.0 (now 0.7.1) Pinyin Toolkit doesn't work anymore. Anki had a similar problem but the bug has been fixed.

prosciutboy commented 12 years ago

Until next pinyin-toolkit update, keep using the old package python2-sqlalchemy-0.6.7-1 is the only solution ?

dominikmayer commented 12 years ago

Is there going to be a next version? pinyin-toolkit seems to be abandoned.

bsl commented 12 years ago

I changed two instances of "sqlalchemy.exceptions" to "sqlalchemy.exc" under ~/.anki (use grep or ack to find them) to get it to work somewhat. I forked the repo and I'm going to try fix it some better way.

jruere commented 12 years ago

AFAICS, this is a problem in sqlalchemy (http://www.sqlalchemy.org/trac/ticket/2433) that is triggered in cjklib (http://code.google.com/p/cjklib/issues/detail?id=15), not of this project.

ospalh commented 12 years ago

The problem is that nobody has ever updated cjklib to reflect changes in sqlalchemy. The daring can go into the plugins folder, than to pinyin/vendor/cjklib and apply this patch: ospalh@5bf69859bc82069d2979b2fec8d38f5df460fe62 which should be equivalent to https://gist.github.com/2630334 which should be equivalent to changing sqlalchemy.exception to sqlalchemy.exc wherever you find it.