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?
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()