Camelot无法创建新项目

时间:2013-01-29 20:56:46

标签: python sqlalchemy

我正在尝试在Ubuntu 12.04上安装并运行Camelot框架。但从错误来看,问题似乎是sqlalchemy。我安装了camelot:

pip install camelot安装没有任何问题。我试图升级sqlalchemy和camelot,但是它会引发异常并且在我运行时不起作用:

python -m camelot.bin.camelot_admin

某些版本:

In [1]: import camelot

In [2]: camelot.__version__
Out[2]: '12.06.29'

In [3]: import sqlalchemy

In [4]: sqlalchemy.__version__
Out[4]: '0.8.0b2'

这是追溯:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/camelot/bin/camelot_admin.py", line 263, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/camelot/bin/camelot_admin.py", line 255, in main
    meta()
  File "/usr/local/lib/python2.7/dist-packages/camelot/bin/camelot_admin.py", line 243, in meta
    from camelot.bin.meta import launch_meta_camelot
  File "/usr/local/lib/python2.7/dist-packages/camelot/bin/meta.py", line 34, in <module>
    from camelot.admin.application_admin import ApplicationAdmin
  File "/usr/local/lib/python2.7/dist-packages/camelot/admin/application_admin.py", line 34, in <module>
    from camelot.admin.action import application_action, form_action, list_action
  File "/usr/local/lib/python2.7/dist-packages/camelot/admin/action/__init__.py", line 25, in <module>
    from application_action import ( ApplicationActionGuiContext,
  File "/usr/local/lib/python2.7/dist-packages/camelot/admin/action/application_action.py", line 31, in <module>
    from camelot.core.orm import Session
  File "/usr/local/lib/python2.7/dist-packages/camelot/core/orm.py", line 48, in <module>
    from sqlalchemy.ext.declarative import ( declarative_base, 
ImportError: cannot import name _declarative_constructor

1 个答案:

答案 0 :(得分:2)

我从0.8降级到sqlalchemy 0.7.8并清理了之前安装的一些文件。现在它很棒。