Title: Failed to `load("coreclr")` for .NET 10.0 · pythonnet/pythonnet · Discussion #2676 · GitHub
Open Graph Title: Failed to `load("coreclr")` for .NET 10.0 · pythonnet/pythonnet · Discussion #2676
X Title: Failed to `load("coreclr")` for .NET 10.0 · pythonnet/pythonnet · Discussion #2676
Description: Failed to `load("coreclr")` for .NET 10.0
Open Graph Description: I'm trying to update from .NET 8.0 to .NET 10, but running into a FrameworkMissingFailure with Failed to create a .NET runtime (coreclr). --- RUN apt-get update && apt-get install -y dotnet-sdk-8.0...
X Description: I'm trying to update from .NET 8.0 to .NET 10, but running into a FrameworkMissingFailure with Failed to create a .NET runtime (coreclr). --- RUN apt-get update && apt-get install -y do...
Opengraph URL: https://github.com/pythonnet/pythonnet/discussions/2676
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Failed to `load(\"coreclr\")` for .NET 10.0","text":"I'm trying to update from .NET 8.0 to .NET 10, but running into a FrameworkMissingFailure with Failed to create a .NET runtime (coreclr).
\n--- RUN apt-get update && apt-get install -y dotnet-sdk-8.0 dotnet-runtime-8.0\n+++ RUN apt-get update && apt-get install -y dotnet-sdk-10.0 dotnet-runtime-10.0
\nThe reported versions are as expected:
\nbefore
\ndotnet --version\n8.0.122\ndotnet --list-sdks\n8.0.122 [/usr/lib/dotnet/sdk]\ndotnet --list-runtimes\nMicrosoft.AspNetCore.App 8.0.22 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]\nMicrosoft.NETCore.App 8.0.22 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]\n
\nafter
\ndotnet --version\n>>> 10.0.100\ndotnet --list-sdks\n>>> 10.0.100 [/usr/lib/dotnet/sdk]\ndotnet --list-runtimes\n>>> Microsoft.AspNetCore.App 10.0.0 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]\n>>> Microsoft.NETCore.App 10.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]\n
\nThe Dockerfile is based on mambaorg/micromamba:2-ubuntu24.04.
\nThe full traceback is this:
\n10.0.100\nPython 3.13.11\nYou must install or update .NET to run this application.\nApp: /opt/conda/bin/python3.13\nArchitecture: x64\nFramework: 'Microsoft.NETCore.App', version '10..0' (x64)\n.NET location: /usr/lib/dotnet\nThe following frameworks were found:\n 10.0.0 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App]\nLearn more:\nhttps://aka.ms/dotnet/app-launch-failed\nTo install missing framework, download:\nhttps://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=10..0&arch=x64&rid=ubuntu.24.04-x64&os=ubuntu.24.04\nTraceback (most recent call last):\n File \"/opt/conda/lib/python3.13/site-packages/pythonnet/__init__.py\", line 77, in _create_runtime_from_spec\n return clr_loader.get_coreclr(**params)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^\n File \"/opt/conda/lib/python3.13/site-packages/clr_loader/__init__.py\", line 158, in get_coreclr\n impl = DotnetCoreRuntime(runtime_config=runtime_config, dotnet_root=dotnet_root)\n File \"/opt/conda/lib/python3.13/site-packages/clr_loader/hostfxr.py\", line 35, in __init__\n self._handle = _get_handle_for_runtime_config(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n self._dll, self._dotnet_root, runtime_config\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/opt/conda/lib/python3.13/site-packages/clr_loader/hostfxr.py\", line 159, in _get_handle_for_runtime_config\n check_result(res)\n ~~~~~~~~~~~~^^^^^\n File \"/opt/conda/lib/python3.13/site-packages/clr_loader/util/__init__.py\", line 42, in check_result\n raise error\nclr_loader.util.clr_error.ClrError: 0x80008096: FrameworkMissingFailure\nThe above exception was the direct cause of the following exception:\nTraceback (most recent call last):\n File \"/run/test.py\", line 2, in <module>\n load(\"coreclr\")\n ~~~~^^^^^^^^^^^\n File \"/opt/conda/lib/python3.13/site-packages/pythonnet/__init__.py\", line 135, in load\n set_runtime(runtime, **params)\n ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^\n File \"/opt/conda/lib/python3.13/site-packages/pythonnet/__init__.py\", line 29, in set_runtime\n runtime = _create_runtime_from_spec(runtime, params)\n File \"/opt/conda/lib/python3.13/site-packages/pythonnet/__init__.py\", line 90, in _create_runtime_from_spec\n raise RuntimeError(\n ...<2 lines>...\n ) from exc\nRuntimeError: Failed to create a .NET runtime (coreclr) using the\n parameters {}.\n
\nAny ideas what might be the issue?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Can reproduce this on pythonnet 3.0.5 and clr-loader 0.2.9 (latest versions as of now). This PR should fix the issue
","upvoteCount":0,"url":"https://github.com/pythonnet/pythonnet/discussions/2676#discussioncomment-15399559"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:2425c35b-6de8-cc5f-6b78-633028bb1213 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 9D5E:340FCB:1655538:1DF4BBA:69706751 |
| html-safe-nonce | 40430655865bbea7f76c1a3263ef9cc723fdf708f4a1af0cb5725b66e6249fe3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDVFOjM0MEZDQjoxNjU1NTM4OjFERjRCQkE6Njk3MDY3NTEiLCJ2aXNpdG9yX2lkIjoiMjY1NjM0OTI4MzM0OTk4MTAwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8da6f361845ddec7c184c11e580a564471fec6bbd6847b099f022d3cdfe08323 |
| hovercard-subject-tag | discussion:9299949 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/pythonnet/pythonnet/2676/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/75047217f862d6d2472852fb02c87b5ad32742ef94b386c49881b4a03c1e40b3/pythonnet/pythonnet/discussions/2676 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75047217f862d6d2472852fb02c87b5ad32742ef94b386c49881b4a03c1e40b3/pythonnet/pythonnet/discussions/2676 |
| og:image:alt | I'm trying to update from .NET 8.0 to .NET 10, but running into a FrameworkMissingFailure with Failed to create a .NET runtime (coreclr). --- RUN apt-get update && apt-get install -y dotnet-sdk-8.0... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width