- Notifications
You must be signed in to change notification settings - Fork748
RuntimeError: Failed to create a .NET runtime (coreclr) using the parameters {}.#2513
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I'm running into an issue trying to download the CalcPad Python API, which requires Pythonnet. Specifically, I am encountering an error related to the missing .NET runtime (coreclr) when trying to load the coreclr runtime. Despite having the .NET SDK and Runtime installed, Pythonnet cannot find the required hostfxr library, resulting in the following error:
Any help or guidance would be much appreciated :) |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 2 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I think I'm running into this, too. Feels like it happened kind of out all of a sudden. I'm in a build pipeline with just one agent and wondering if something happened to it because, for the same code, I had a run without error in the past but re-running for the same commit is giving the above error. My versions of dependencies are as follows:
How can you verify the installation (and availability?) of the .NET SDK and Runtime? That is what I'm looking into next. |
BetaWas this translation helpful?Give feedback.
All reactions
-
When I logged into my VM (agent), I saw a message like so:
Reading that file, it seems some dotnet package was automatically uninstalled while another piece (?) was kept:
This mention of hostfxr beingkept seems contradictory to our issue, but relevant. Perhaps the item that was removed, dotnet-runtime-deps-8.0, helps pythonnet find and fulfil this dependency?
I wonder how I could re-install dotnet-runtime-deps-8.0 to test the theory. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
That aligns with the "auto-removed: dotnet-runtime-deps-8.0" line I saw above, but might not align with this thread:
For others, my resolution steps (ubuntu):
After executing the above resolution steps, I ran my pipeline and everything was back to normal! Summary of my experience with resolution steps and troubleshooting:
Strange that it mentions installing dotnet-hostfxr-8.0 even though the other log said that it would be kept around. |
BetaWas this translation helpful?Give feedback.
All reactions
🎉 1