Open dominikmayer opened 13 years ago
Until next pinyin-toolkit update, keep using the old package python2-sqlalchemy-0.6.7-1 is the only solution ?
Is there going to be a next version? pinyin-toolkit seems to be abandoned.
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.
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.
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.
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.