{
  "id": "python/flask-blueprint-name-collision",
  "signature": "ValueError: The name 'auth' is already registered for this blueprint. Use 'name=' to provide a unique name.",
  "signature_zh": "ValueError：名称 'auth' 已为此蓝图注册。使用 'name=' 提供唯一名称。",
  "regex": "ValueError:\\ The\\ name\\ 'auth'\\ is\\ already\\ registered\\ for\\ this\\ blueprint\\.\\ Use\\ 'name='\\ to\\ provide\\ a\\ unique\\ name\\.",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Registering two blueprints with the same name in the same app.",
  "root_cause_type": "generic",
  "root_cause_zh": "在同一应用中注册了两个同名的蓝图。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The blueprint's internal name attribute is what matters, not the variable.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Name collision still occurs.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "bp = Blueprint('auth_v2', __name__)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "app.register_blueprint(bp, name='auth_v2')",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-02-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}