I am upgrading a library to a recent version of SQLAlchemy and I am getting this error
type object 'Base' has no attribute '_decl_class_registry'
On line
Base = declarative_base(metadata=metadata)
Base._decl_class_registry
How can I solve this?
Had the same problem. Because of my upgrade of sqlalchemy looks like there is a change in the base code.
use this instead to accomplish the same
Base.registry._class_registry.values()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With