dotnet / dotnet/infer

SystemPlatformNotSupported when running test_tutorials.py using pythonnet

Open
#333 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.6k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

Hi everybody, I am trying to use Infer.NET in Python by copying your example file test_tutorials.py, which leverages pythonnet. However, I get the following error:

SystemPlatformNotSupportedException: Operation is not supported on this platform

After a list of functions that throw this error, I get:

The above exception was the direct cause of the following exception:

SystemPlatformNotSupportedError: Current platform is not supported by the current compiler choice Auto. Try a different one.

Does anybody now what is the root cause of this platform error? How do I change a compiler choice? Or is there a known workaround for this? My Python implementation is Cpython, might this be due to the fact that this is designed for IronPython only?

I am posting this here, because the code is in your repository but it does not run althought it would be expected to do so, therefore it could be an issue related to it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.