You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current SQLAlchemy version of 1.3.3, this turned out to be no longer a warning, but an error:
sqlalchemy.exc.ArgumentError: Textual SQL expression '\n SELECT \n ...' should be explicitly declared as text('\n SELECT \n ...')
The current workaround is to set the SQLAlchemy version to 1.0.11 as follows:
Did you install "pip" for managing the SQLAlchemy version? If not, you can do so by using this command:
sudo apt install python-pip
The following command will show the current version of SQLAlchemy:
pip list | grep "SQLAlchemy"
In my case, this is 1.3.3.
Now, we need to be sure that SQLAlchemy gets completely uninstalled:
pip uninstall SQLAlchemy
The next command will install SQLAlchemy in version 1.0.11:
pip install SQLAlchemy==1.0.11
If you have a look at the installed version, again, you should see that version 1.0.11 is installed:
pip list | grep "SQLAlchemy"
SQLAlchemy (1.0.11)
KerstenDoering
changed the title
SQLAlchemy version 1.0.11 warning
SQLAlchemy version 1.0.11 warning and 1.3.3 error
Jun 17, 2019
python RunXapian.py -x
/usr/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py:3779: SAWarning: Textual SQL expression '\n SELECT \n ...' should be explicitly declared as text('\n SELECT \n ...') (this warning may be suppressed after 10 occurrences)
{"expr": util.ellipses_string(element)})
The text was updated successfully, but these errors were encountered: