New issue 15 by niel...@gmail.com: SqlAlchemy changed exceptions to exc
http://code.google.com/p/cjklib/issues/detail?id=15
When I tried to install CEDICT using the installcjkdict command, I ran into
an error, that says that the module exceptions (sqlalchemy) could not be
found. I made sure that SQLAlchemy was installed and went to check if the
module was there. It turns out SQL Alchemy has changed their exceptions.py
into exc.py - changing the two instances where exceptions were imported
(init.py and build.py in the build directory of cjklib) into exc solved the
problem.
I used this on a Macbook Pro using Lion. I wonder if this is a problem with
me, or just code that has to be changed, because according to SQLAlchemy
(http://www.sqlalchemy.org/CHANGES) the module can be called with both
names. It did not work that way for me.
The installation worked in the end. I'm just bringing this issue to the
front.
--
You received this message because you are subscribed to the Google Groups "cjklib-devel" group.
To post to this group, send email to cjklib...@googlegroups.com.
To unsubscribe from this group, send email to cjklib-devel+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cjklib-devel?hl=en.
I'm having the same experience as victor. 'installcjkdict' wouldn't work,
so I made the changes niel suggested and 'installcjkdict' successfully
installed CEDICT. Any attempt to use CEDICT portions of cjklib through
cjknife or code result int the error victor mentions above.
I'm running Ubuntu 11.10 / Python 2.7.2.
After installation, as you guys have done, I still can't get the program to
work.
Let's hope for an update from the creator.
Sorry, I'm pretty busy the next days. I'll try to catch up with this, but I
can't vouch for anything for now. If this is because of a version change in
sqlalchemy, try installing an older version for now if that is possible.
If you're using pip (sudo apt-get install python-pip)
Downgrade to sqlalchemy 0.6.8
sudo pip install -U sqlalchemy=0.6.8
installcjkdict --local cedict
installcjkdict --download CFDICT
http://www.chinaboard.de/cfdict.php?mode=dl (gives this error there
Template->loadfile(): No files found for handle body)
Cannot read download page
Pardon me, it's sudo pip install -U sqlalchemy==0.6.8
With 2 ='s
Created ticket for sqlalchemy for this:
http://www.sqlalchemy.org/trac/ticket/2433
It's not a problem with sqlalchemy. Just change all references to
sqlalchemy.exceptions to sqlarchemy.exc, in cjklib/build/*.py;
sqlalchemy.exceptions has been deprecated for some time, it seems.
I created the ticket because they provide an alias that doesn't work.
Of course, I know how to patch it but it is no solution.