Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collective.audtilog fails with the most recent SQLAlchemy #32

Open
ale-rt opened this issue May 31, 2023 · 0 comments
Open

collective.audtilog fails with the most recent SQLAlchemy #32

ale-rt opened this issue May 31, 2023 · 0 comments

Comments

@ale-rt
Copy link
Member

ale-rt commented May 31, 2023

  File "/srv/s-quaivesaas/.buildout/eggs/collective.auditlog-2.0.0a2-py3.8.egg/collective/auditlog/td.py", line 46, in session
    if not engine.dialect.has_table(engine, "audit"):
  File "/srv/s-quaivesaas/.buildout/eggs/SQLAlchemy-1.4.48-py3.8-linux-x86_64.egg/sqlalchemy/dialects/sqlite/base.py", line 2017, in has_table
    self._ensure_has_table_connection(connection)
  File "/srv/s-quaivesaas/.buildout/eggs/SQLAlchemy-1.4.48-py3.8-linux-x86_64.egg/sqlalchemy/engine/default.py", line 342, in _ensure_has_table_connection
    raise exc.ArgumentError(
sqlalchemy.exc.ArgumentError: The argument passed to Dialect.has_table() should be a <class 'sqlalchemy.engine.base.Connection'>, got <class 'sqlalchemy.engine.base.Engine'>. Additionally, the Dialect.has_table() method is for internal dialect use only; please use ``inspect(some_engine).has_table(<tablename>>)`` for public API use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant