Issue 25 in cjklib: sqlalchemy 0.6 too old for installcjkdict --database=URL

8 views
Skip to first unread message

cjk...@googlecode.com

unread,
Apr 27, 2014, 9:48:44 PM4/27/14
to cjklib...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 25 by mich...@hinespot.com: sqlalchemy 0.6 too old for
installcjkdict --database=URL
http://code.google.com/p/cjklib/issues/detail?id=25

What steps will reproduce the problem?
1. sudo pip install cjklib
2. sudo installcjkdict CEDICT
--database=http://example.com/http://www.mdbg.net/chindict/export/cedict/cedict_1_0_ts_utf-8_mdbg.txt.gz

What is the expected output? What do you see instead?

CEDICT should get downloaded from a local webserver. The CEDICT database
rarely (if ever) actually finishes downloading from Chinese servers while
grabbing the database from www.mdbg.net, so instead we need to mirror the
URL here in China.

Unfortunately, CJKLIB is using a version of sqlalchemy that is too old:

Traceback (most recent call last):
File "/usr/local/bin/installcjkdict", line 9, in <module>
load_entry_point('cjklib==0.3.2', 'console_scripts', 'installcjkdict')()

File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/dictionary/install.py",
line 731, in main
if not CommandLineInstaller().run():

File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/dictionary/install.py",
line 524, in run
installer.install(dictionary, **options)

File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/dictionary/install.py",
line 436, in install
db = dbconnector.DatabaseConnector(configuration)

File "/usr/local/lib/python2.7/dist-packages/cjklib-0.3.2-py2.7.egg/cjklib/dbconnector.py",
line 197, in __init__
self.engine = engine_from_config(configuration, prefix='sqlalchemy.')

File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.6.9-py2.7.egg/sqlalchemy/engine/__init__.py",
line 292, in engine_from_config
return create_engine(url, **opts)

File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.6.9-py2.7.egg/sqlalchemy/engine/__init__.py",
line 274, in create_engine
return strategy.create(*args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.6.9-py2.7.egg/sqlalchemy/engine/strategies.py",
line 52, in create
dialect_cls = u.get_dialect()

File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.6.9-py2.7.egg/sqlalchemy/engine/url.py",
line 105, in get_dialect
module = __import__('sqlalchemy.dialects.%s' % (dialect, )).dialects
ImportError: No module named http

What version of the product are you using? On what operating system?

0.3.2 on Ubuntu 13.04


Please provide any additional information below.

I cannot find the "http" library anywhere in the apt-get repositories, nor
on the internet. But, clearly sqlalchemy 0.6.9 is too old, and when
attempting to use a newer version, cjklib complains that it specifically
needs that version.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

cjk...@googlecode.com

unread,
Apr 27, 2014, 9:50:24 PM4/27/14
to cjklib...@googlegroups.com

Comment #1 on issue 25 by mich...@hinespot.com: sqlalchemy 0.6 too old for
installcjkdict --database=URL
http://code.google.com/p/cjklib/issues/detail?id=25

Ignore the double "http://...http://" it's just a typo.
Reply all
Reply to author
Forward
0 new messages