studioego / cjklib

Automatically exported from code.google.com/p/cjklib
Other
0 stars 0 forks source link

sqlalchemy 0.6 too old for installcjkdict --database=URL #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by mich...@hinespot.com on 28 Apr 2014 at 1:48

GoogleCodeExporter commented 9 years ago
Ignore the double "http://...http://" it's just a typo. 

Original comment by mich...@hinespot.com on 28 Apr 2014 at 1:50