-
I'm trying to pull my .NET library into Python and getting a failure on the from/import statement. Repro Steps:
Error:
Looking at the IL metadata, I can confirm that Neighborly is the assembly name and also the namespace. I created a sample class with an Add function that compiled and was successfully imported into Python. I'm running on Windows 11 with Python 3.10.11. Any ideas? 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
As documented, by default we load a .NET Framework runtime at startup. The simplest option is to run |
Beta Was this translation helpful? Give feedback.
-
I am also facing same error- ModuleNotFoundError: No module named- No change in the error |
Beta Was this translation helpful? Give feedback.
As documented, by default we load a .NET Framework runtime at startup. The simplest option is to run
import pythonnet; pythonnet.load("coreclr")
before importingclr
.