Skip to content

Has anyone had any luck with mono / pythonnet ? #691

Answered by Tyrrrz
cellularmitosis asked this question in Q&A
Discussion options

You must be logged in to vote

The error comes from here: https://github.com/Tyrrrz/FuckRussia/blob/27043a5be63fa54cccc15c0dee2bf4fc54a768b5/FuckRussia/Initializer.cs#L49-L57

It appears mono might be lying what OS it's running on, possible to ensure compatibility with legacy .NET Framework.

That said, I don't see why you'd need to use mono at all, you should be able to run your code with .NET directly: https://dotnet.microsoft.com/en-us/download

I haven't used Python.NET but I assume you should replace your load(...) call with the following:

import pythonnet
-pythonnet.load("mono")
+pythonnet.load("coreclr")

Make sure you have the latest .NET SDK installed.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Sekoree
Comment options

@cellularmitosis
Comment options

Comment options

You must be logged in to vote
3 replies
@cellularmitosis
Comment options

@cellularmitosis
Comment options

@Tyrrrz
Comment options

Answer selected by cellularmitosis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants