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
{{ message }}
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
File "./services/main.py", line 4, in <module>
from services.core.database import create_tables
File "./services/core/database.py", line 16, in <module>
database_master = Database(_settings.database_master_url)
File "/Users/Ritchie/Developer/@easynm/cloud/services/.venv/lib/python3.9/site-packages/databases/core.py", line 66, in __init__
backend_cls = import_from_string(backend_str)
File "/Users/Ritchie/Developer/@easynm/cloud/services/.venv/lib/python3.9/site-packages/databases/importer.py", line 21, in import_from_string
raise exc from None
File "/Users/Ritchie/Developer/@easynm/cloud/services/.venv/lib/python3.9/site-packages/databases/importer.py", line 18, in import_from_string
module = importlib.import_module(module_str)
File "/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/Ritchie/Developer/@easynm/cloud/services/.venv/lib/python3.9/site-packages/databases/backends/mysql.py", line 9, in <module>
from sqlalchemy.engine.result import ResultMetaData, RowProxy
ImportError: cannot import name 'RowProxy' from 'sqlalchemy.engine.result' (/Users/Ritchie/Developer/@easynm/cloud/services/.venv/lib/python3.9/site-packages/sqlalchemy/engine/result.py)
I'd suggest that the sensible first pass for us would be to issue a new release of databases that pins sqlalchemy properly in the setup.py. That'd at least ensure that pip install databases would function properly.
We can then follow up with a PR that adds support for both 1.3 and 1.4, but we'll be under less time pressure to do so, so we're more likely to get it right, and users will have a working databases install in the meantime.
Reacted by hashbangblob, Simeon Huang, Felipe Faria, Cory Dodt, Rafał Pitoń, Joshua Sleeper, Tom Hemmes, Brian, Zefeng Zhu, Arseniy Banayev and 3 more
Activity
[-]Broken import with sqlalchemy 1.4[/-][+]Broken `RowProxy` import with sqlalchemy 1.4[/+]Fix starlette tests (#2172)
rafalp commentedon Mar 15, 2021
Oh, so SQLAlchemy 1.4 is out now? That's great!
PR fixing deps welcome <3
Kyle-Verhoog commentedon Mar 15, 2021
I'm not very familiar with
databasesbut I'm down to take a shot at fixing it up to learn more! 😄laozhu commentedon Mar 17, 2021
I have the same problem here, I am using pymysql.
noisywiz commentedon Mar 19, 2021
Hi! One more issue for 1.4 sqlalchemy/sqlalchemy#6096
rafalp commentedon Mar 19, 2021
@rajasimon please pin dependencies to version if you are having problems.
Work around encode/databases#298
Basit-qc commentedon Mar 22, 2021
Using
databases[mysql]==0.4.2Had to downgrade sqlalchemy to
sqlalchemy==1.3.23lovelydinosaur commentedon Mar 22, 2021
I'd suggest that the sensible first pass for us would be to issue a new release of
databasesthat pinssqlalchemyproperly in thesetup.py. That'd at least ensure thatpip install databaseswould function properly.We can then follow up with a PR that adds support for both 1.3 and 1.4, but we'll be under less time pressure to do so, so we're more likely to get it right, and users will have a working
databasesinstall in the meantime.vijaykumar1356 commentedon May 26, 2021
@tomchristie Please do the needful update to have a support for 1.4 SQLAlchemy version