Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Manjeet Singh Bhatia manjeetbhatia

🎯
Focusing
View GitHub Profile
View error with debt collector
sqlalchemy.exc.InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original excep
tion was: Multiple classes found for path "Router" in the registry of this declarative base. Please use a fully module-qualified path.
View gist:72b2424639f4da5ace17c409e83a61a6
query = self._get_collection_query(context, agent_model.Agent,
filters=filters)
columns = (agent_obj.Agent.admin_state_up,
agent_obj.Agent.availability_zone,
agent_obj.Agent.agent_type)
for agent in query.with_entities(*columns).group_by(*columns):