optimagic is a Python package for numerical optimization. It is a unified interface to optimizers from SciPy, NlOpt and other packages. optimagic's minimize function works just like SciPy's, so you don't have to adjust your code. You simply get more optimizers for free. On top you get diagnostic tools, parallel numerical derivatives and more.
ObjectNotExecutableError: Not an executable object: 'BEGIN DEFERRED'
Quickly searching shows that SQLAlchemy 2.0 introduced breaking changes and you can't pass strings anymore to conn.execute, stuff needs to be passed via its text function IIUC.
Downgrading to 1.4 helped.
To Reproduce
Hopefully just executing the test suite with recent SQLAlchemy.
I started to work on it (and fixed the specific symptom you got) but there are a few more things we need to fix before our logging works with sqlalchemy 2.0.
Bug description
estimate_ml
without logging works fineestimate_ml
with logging throws:Quickly searching shows that SQLAlchemy 2.0 introduced breaking changes and you can't pass strings anymore to
conn.execute
, stuff needs to be passed via itstext
function IIUC.Downgrading to 1.4 helped.
To Reproduce
Hopefully just executing the test suite with recent SQLAlchemy.
Screenshots/Error messages
System