{"record":{"id":"85fdf529aa546eea","repo":"cube-js/cube","slug":"python-loadpythoncontext-is-not-supported-becaus","errorCode":null,"errorMessage":"Python (loadPythonContext) is not supported because you are using the fallback build of native extension. Read more: https://github.com/cube-js/cube/blob/master/packages/cubejs-backend-native/README.md#supported-architectures-and-platforms","messagePattern":"Python \\(loadPythonContext\\) is not supported because you are using the fallback build of native extension\\. Read more: https://github\\.com/cube-js/cube/blob/master/packages/cubejs-backend-native/README\\.md#supported-architectures-and-platforms","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cubejs-backend-native/js/index.ts","lineNumber":647,"sourceCode":"  protected native: any | null = null;\n\n  protected getNative(): any {\n    if (this.native) {\n      return this.native;\n    }\n\n    this.native = loadNative();\n\n    return this.native;\n  }\n\n  public newJinjaEngine(options: JinjaEngineOptions): JinjaEngine {\n    return this.getNative().newJinjaEngine(options);\n  }\n\n  public loadPythonContext(fileName: string, content: unknown): Promise<PythonCtx> {\n    if (isFallbackBuild()) {\n      throw new Error(\n        'Python (loadPythonContext) is not supported because you are using the fallback build of native extension. Read more: ' +\n        'https://github.com/cube-js/cube/blob/master/packages/cubejs-backend-native/README.md#supported-architectures-and-platforms',\n      );\n    }\n\n    return this.getNative().pythonLoadModel(fileName, content);\n  }\n}\n","sourceCodeStart":629,"sourceCodeEnd":656,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-native/js/index.ts#L629-L656","documentation":"Error \"Python (loadPythonContext) is not supported because you are using the fallback build of native extension. Read more: https://github.com/cube-js/cube/blob/master/packages/cubejs-backend-native/README.md#supported-architectures-and-platforms\" thrown in cube-js/cube.","triggerScenarios":"Thrown at packages/cubejs-backend-native/js/index.ts:647 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install a full native build of cubejs-backend-native matching your platform/architecture instead of the fallback build.","Eliminate loadPythonContext usage from the project if remaining on the fallback build.","See the README section on supported architectures and platforms for build availability."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}