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

RowProxy and ResultProxy in sqlalchemy #46

Closed
wknds opened this issue Mar 21, 2021 · 2 comments
Closed

RowProxy and ResultProxy in sqlalchemy #46

wknds opened this issue Mar 21, 2021 · 2 comments

Comments

@wknds
Copy link

wknds commented Mar 21, 2021

Starting with sqlalchemy version 1.4.0, RowProxy and ResultProxy are handled differently (changelog), giving me the following error when I generate the appservice registration within mautrix_telegram:

$ python -m mautrix_telegram -g -c config.yaml
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/user/mautrix-telegram/lib/python3.7/site-packages/mautrix_telegram/__main__.py", line 22, in <module>
    from mautrix.util.db import Base
  File "/home/user/mautrix-telegram/lib/python3.7/site-packages/mautrix/util/db/__init__.py", line 1, in <module>
    from .base import Base, BaseClass
  File "/home/user/mautrix-telegram/lib/python3.7/site-packages/mautrix/util/db/base.py", line 11, in <module>
    from sqlalchemy.engine.result import RowProxy, ResultProxy
ImportError: cannot import name 'RowProxy' from 'sqlalchemy.engine.result' (/home/user/mautrix-telegram/lib/python3.7/site-packages/sqlalchemy/engine/result.py)
@wknds wknds changed the title RowProxy RowProxy and ResultProxy in sqlalchemy Mar 21, 2021
@tulir
Copy link
Member

tulir commented Mar 22, 2021

mautrix-telegram was already changed to require SQLAlchemy<1.4. I'll probably drop support for sqlite entirely in the near future though

@TanmayAT
Copy link

TanmayAT commented Dec 4, 2024

for pickle file data loading it gaves same error how to counter it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants