dativebase / old-pyramid

Online Linguistic Database (OLD)
http://www.onlinelinguisticdatabase.org/
8 stars 2 forks source link

Problem: Beaker + SQLAlchemy dependency conflict #66

Closed jrwdunham closed 1 year ago

jrwdunham commented 1 year ago

Problem: The OLD currently does not specify a version for Beaker. We have successfully used 1.11.0. However, if you follow the standard OLD install instructions, Beaker==1.12.x will be installed. This version of Beaker uses SQLAlchemy in a manner that is not supported by SQLA == 1.3.0. The result is errors like this when trying to login to an OLD:

   File "/venv/lib/python3.6/site-packages/beaker/ext/sqla.py", line 73,
in do_open
     select = sa.select(self.table.c.data).where(self.table.c.namespace
== self.namespace)
   File "<string>", line 2, in select
   File "<string>", line 2, in __init__
   File
"/venv/lib/python3.6/site-packages/sqlalchemy/util/deprecations.py",
line 130, in warned
     return fn(*args, **kwargs)
   File
"/venv/lib/python3.6/site-packages/sqlalchemy/sql/selectable.py", line
2923, in __init__
     "columns argument to select() must "
sqlalchemy.exc.ArgumentError: columns argument to select() must be a
Python list or other iterable

A/C: