OpenDevelopmentMekong / odm-deployment

Repository containing ansible/vagrant scripts for reproducing ODM's development/testing environment.
http://opendevelopmentmekong.net
1 stars 0 forks source link

Update version of sqlalchemy to 0.8.5 #51

Closed acorbi closed 8 years ago

acorbi commented 8 years ago

Out-of-the-box the scripts installs version 0.7.8 of sqlalchemy python module which causes the following error:

    limit=limit, offset=offset)
  File "/home/vagrant/.virtualenvs/ckan/local/lib/python2.7/site-packages/ckan/model/activity.py", line 298, in dashboard_activity_list
    q = _dashboard_activity_query(user_id, limit + offset)
  File "/home/vagrant/.virtualenvs/ckan/local/lib/python2.7/site-packages/ckan/model/activity.py", line 283, in _dashboard_activity_query
    q1 = _user_activity_query(user_id, limit)
  File "/home/vagrant/.virtualenvs/ckan/local/lib/python2.7/site-packages/ckan/model/activity.py", line 126, in _user_activity_query
    return _activities_union_all(q1, q2)
  File "/home/vagrant/.virtualenvs/ckan/local/lib/python2.7/site-packages/ckan/model/activity.py", line 96, in _activities_union_all
    return model.Session.query(model.Activity).select_entity_from(
AttributeError: 'Query' object has no attribute 'select_entity_from'

In order to fix it and have a sane development environment, a higher version of sqlalchemy (tested with v0.8.5) needs to be installed with:

pip install sqlalchemy==0.8.5 --upgrade