{"record":{"id":"bad8a78fbfa2b202","repo":"jax-ml/jax","slug":"err-msg-set-jax-platforms-to-automatically-c","errorCode":null,"errorMessage":"{err_msg} (set JAX_PLATFORMS='' to automatically choose an available backend)","messagePattern":"(.+?) \\(set JAX_PLATFORMS='' to automatically choose an available backend\\)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"jax/_src/xla_bridge.py","lineNumber":842,"sourceCode":"          continue\n\n        backend = _init_backend(platform)\n        _backends[platform] = backend\n\n        if priority > default_priority:\n          _default_backend = backend\n          default_priority = priority\n      except Exception as err:\n        err_msg = f\"Unable to initialize backend '{platform}': {err}\"\n        if fail_quietly:\n          _backend_errors[platform] = str(err)\n          logger.info(err_msg)\n        else:\n          if config.jax_platforms.value:\n            err_msg += \" (set JAX_PLATFORMS='' to automatically choose an available backend)\"\n          else:\n            err_msg += \" (you may need to uninstall the failing plugin package, or set JAX_PLATFORMS=cpu to skip this backend.)\"\n          raise RuntimeError(err_msg)\n\n    assert _default_backend is not None\n    if not config.jax_platforms.value:\n      _suggest_missing_backends()\n    return _backends\n\n# Code to suggest plugins that should be installed.\n#\n# Plugin vendors are welcome to add code to this list, assuming there's a\n# lightweight way to determine if hardware is present without requiring\n# the relevant plugin be installed.\n\ndef _suggest_missing_backends():\n  if py_platform.system() != \"Linux\":\n    # If you're not using Linux (or WSL2), we don't have any suggestions at the\n    # moment.\n    return\n","sourceCodeStart":824,"sourceCodeEnd":860,"githubUrl":"https://github.com/jax-ml/jax/blob/1e1c6a8fc06dfcd1247076ec5cae4640cea5d7bb/jax/_src/xla_bridge.py#L824-L860","documentation":"Error \"{err_msg} (set JAX_PLATFORMS='' to automatically choose an available backend)\" thrown in jax-ml/jax.","triggerScenarios":"Thrown at jax/_src/xla_bridge.py:842 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1e1c6a8fc06dfcd1247076ec5cae4640cea5d7bb","analyzedAt":"2026-08-27T09:53:25.647Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}