truera/trulens

Tru() fails with `database_url` key

Closed this issue · 2 comments

Getting the following error:

TypeError: Invalid argument(s) 'max_overflow','pool_use_lifo' sent to create_engine(), using configuration SQLiteDialect_pysqlite/SingletonThreadPool/Engine.  Please check that the keyword arguments are appropriate for this combination of components.%

when trying to initialize Tru() with a database_url:

tru = Tru(
    # By default, Trulens leaves a `default.sqlite` file behind. Use an in-memory
    # database for unit tests so that we don't need to worry about cleaning it up.
    database_url="sqlite:///:memory:",
    database_redact_keys=True,
)
tru.reset_database()

trulens-eval version 0.22.0

Possible fix incoming here: #904 .

Fix is in the next release.