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
Today I got a automatic PR updating SQLAlchemy to 2.0.0 and the sqlalchemy_schemadisplay stopped working.
Here is the backtrace:
Traceback (most recent call last):
File "/var/home/zlopez/git/anitya/docs/generate_db_schema", line 29, in <module>
write_graph('images/database.png')
File "/var/home/zlopez/git/anitya/docs/generate_db_schema", line 18, in write_graph
graph = create_schema_graph(
File "/var/home/zlopez/git/anitya/.tox/docs/lib/python3.10/site-packages/sqlalchemy_schemadisplay.py", line 153, in create_schema_graph
label=_render_table_html(table, metadata, show_indexes, show_datatypes),
File "/var/home/zlopez/git/anitya/.tox/docs/lib/python3.10/site-packages/sqlalchemy_schemadisplay.py", line 121, in _render_table_html
if metadata.bind and isinstance(metadata.bind.dialect, PGDialect):
AttributeError: 'MetaData' object has no attribute 'bind'
The whole script for generation database schema could be found here.
The text was updated successfully, but these errors were encountered:
Today I got a automatic PR updating SQLAlchemy to 2.0.0 and the sqlalchemy_schemadisplay stopped working.
Here is the backtrace:
The whole script for generation database schema could be found here.
The text was updated successfully, but these errors were encountered: