Bug 2048893 - Incompatible with SQLAlchemy 1.4
Summary: Incompatible with SQLAlchemy 1.4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: eralchemy
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Raiskup
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-01 05:57 UTC by Pavel Raiskup
Modified: 2022-02-10 01:30 UTC (History)
1 user (show)

Fixed In Version: eralchemy-1.2.10-10.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-10 01:30:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2022-02-01 05:57:40 UTC
Traceback looks like this:

python3 -c "from eralchemy import render_er; from coprs import db; \
        render_er(db.metadata, '_static/db-erd.png')"
[2022-02-01 00:50:42,720] INFO in log: logging configuration finished
Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/sqlalchemy/sql/base.py", line 1222, in __getattr__
    return self._index[key]
KeyError: '_data'
 
The above exception was the direct cause of the following exception:
 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/eralchemy/main.py", line 231, in render_er
    tables, relationships = all_to_intermediary(input, schema=schema)
  File "/usr/lib/python3.10/site-packages/eralchemy/main.py", line 129, in all_to_intermediary
    tables, relationships = this_to_intermediary(filename_or_input)
  File "/usr/lib/python3.10/site-packages/eralchemy/sqla.py", line 56, in metadata_to_intermediary
    tables = [table_to_intermediary(table) for table in metadata.tables.values()]
  File "/usr/lib/python3.10/site-packages/eralchemy/sqla.py", line 56, in <listcomp>
    tables = [table_to_intermediary(table) for table in metadata.tables.values()]
  File "/usr/lib/python3.10/site-packages/eralchemy/sqla.py", line 50, in table_to_intermediary
    columns=[column_to_intermediary(col) for col in table.c._data.values()]
  File "/usr/lib64/python3.10/site-packages/sqlalchemy/sql/base.py", line 1224, in __getattr__
    util.raise_(AttributeError(key), replace_context=err)
  File "/usr/lib64/python3.10/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
    raise exception
AttributeError: _data

Comment 1 Pavel Raiskup 2022-02-01 05:59:47 UTC
https://src.fedoraproject.org/rpms/eralchemy/pull-request/1

Let me know if I can build the updated package, and submit a bodhi update.

Comment 2 Pavel Raiskup 2022-02-01 06:01:30 UTC
Nah, I'm the only package maintainer here :-) I forgot.  Going to fix this.

Comment 3 Fedora Update System 2022-02-01 07:00:38 UTC
FEDORA-2022-8b26bc4589 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8b26bc4589

Comment 4 Fedora Update System 2022-02-02 16:37:06 UTC
FEDORA-2022-8b26bc4589 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-8b26bc4589`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-8b26bc4589

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-02-10 01:30:56 UTC
FEDORA-2022-8b26bc4589 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.