Issue 15 in cjklib: SqlAlchemy changed exceptions to exc

4 views
Skip to first unread message

cjk...@googlecode.com

unread,
Sep 16, 2011, 7:55:19 AM9/16/11
to cjklib...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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.

cjk...@googlecode.com

unread,
Sep 30, 2011, 11:38:43 PM9/30/11
to cjklib...@googlegroups.com

Comment #1 on issue 15 by victor....@gmail.com: SqlAlchemy changed
I made the same changes, and it installs fine, but when I run a simple
command like:

cjknife -i 周

it gives me a whole slew of error messages, ending with:

sqlalchemy.exc.OperationalError: (OperationalError) unknown
database "cedict_0" 'PRAGMA "cedict_0".table_info("CFDICT")' ()

What am I doing wrong? Thanks in advance.


Niel de la Rouviere

unread,
Oct 1, 2011, 6:05:13 AM10/1/11
to cjklib...@googlegroups.com
I seem to have run into the same problem. I'm not sure if this is related to SqlAlchemy changes, but I just can't get the commands to work. I have installed CEDICT and everything.




--
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.




--
Niel de la Rouviere
http://twitter.com/nieldlr
http://facebook.com/nieldlr
http://niel.delarouviere.com

cjk...@googlecode.com

unread,
Nov 13, 2011, 6:49:15 PM11/13/11
to cjklib...@googlegroups.com

Comment #2 on issue 15 by Ji...@JivanAmara.net: SqlAlchemy changed

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.

cjk...@googlecode.com

unread,
Nov 15, 2011, 9:53:29 AM11/15/11
to cjklib...@googlegroups.com

Comment #3 on issue 15 by niel...@gmail.com: SqlAlchemy changed exceptions
to exc
http://code.google.com/p/cjklib/issues/detail?id=15

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.

cjk...@googlecode.com

unread,
Nov 15, 2011, 10:01:34 AM11/15/11
to cjklib...@googlegroups.com

Comment #4 on issue 15 by christop...@gmail.com: SqlAlchemy changed

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.

cjk...@googlecode.com

unread,
Dec 19, 2011, 5:42:05 AM12/19/11
to cjklib...@googlegroups.com

Comment #5 on issue 15 by fellow.l...@gmail.com: SqlAlchemy changed

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

cjk...@googlecode.com

unread,
Dec 21, 2011, 6:59:33 PM12/21/11
to cjklib...@googlegroups.com

Comment #6 on issue 15 by fellow.l...@gmail.com: SqlAlchemy changed

Pardon me, it's sudo pip install -U sqlalchemy==0.6.8

With 2 ='s

cjk...@googlecode.com

unread,
Mar 13, 2012, 7:01:06 PM3/13/12
to cjklib...@googlegroups.com

Comment #7 on issue 15 by javier.r...@gmail.com: SqlAlchemy changed

Created ticket for sqlalchemy for this:
http://www.sqlalchemy.org/trac/ticket/2433

cjk...@googlecode.com

unread,
Mar 14, 2012, 8:55:17 AM3/14/12
to cjklib...@googlegroups.com

Comment #8 on issue 15 by julian.s...@gmail.com: SqlAlchemy changed

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.

cjk...@googlecode.com

unread,
Mar 14, 2012, 9:36:37 AM3/14/12
to cjklib...@googlegroups.com

Comment #9 on issue 15 by javier.r...@gmail.com: SqlAlchemy changed

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.

cjk...@googlecode.com

unread,
May 23, 2012, 3:59:00 PM5/23/12
to cjklib...@googlegroups.com
Updates:
Status: Fixed

Comment #10 on issue 15 by christop...@gmail.com: SqlAlchemy changed
With the new release of cjklib (0.3.2) this should be fixed.

Thanks all for contributing and sorry for the long delay.

cjk...@googlecode.com

unread,
May 23, 2012, 4:01:22 PM5/23/12
to cjklib...@googlegroups.com

Comment #11 on issue 15 by christop...@gmail.com: SqlAlchemy changed
@fellow.linguist your issue with CFDICT should have also been fixed. CFDICT
moved to a new website.

@victor.kam your issue seems to be an incompatibility with SQLAlchemy >=
0.7. For now cjklib needs to be installed with something below that.

Reply all
Reply to author
Forward
0 new messages