-
Notifications
You must be signed in to change notification settings - Fork 748
Cannot load library libmonosgen-2.0.dylib on Apple M1 #2000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've learned that I can select a runtime that pythonnet will use. Since I compile .NET Core library I do not need mono. Asking pythonnet to use from pythonnet import load
load("coreclr", runtime_config="./app.runtime.json")
|
The error is right there:
You will have the same problem with .NET Core. The Python arch has to match the .NET/Mono arch. |
See here: pythonnet/clr-loader#40 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Details
I want Python to call a method in C# library that was built on MacOS M1 with VisualStudioPro. The first step is to import clr and that fails.
Fails with the following error:
The text was updated successfully, but these errors were encountered: