henon / Python.Included

A Python.NET based framework enabling .NET libraries to call into Python packages without depending on a local Python installation.
MIT License
313 stars 51 forks source link

Help trouble shoot correct install of regex package. #50

Open mediabuff opened 1 year ago

mediabuff commented 1 year ago

Hi, MyApp depends on regex package. I add the following:

static async Task Main(string[] args) { var i = new Installer(); await i.SetupPython();

    # I am using the following python library 
     await i.InstallWheel(typeof(Program).Assembly, "MyApp.aksharamukha-2.1.2-py3-none-any.whl");

    # it looks like the above package needs 'regex''. So, I add 
     await i.InstallWheel(typeof(Program).Assembly, MyApp.regex-2023.5.5-cp311-cp311-win_amd64.whl", true);

}

I get the following error, in spite of no error messages in installing regex;

Unhandled exception. Python.Runtime.PythonException: ModuleNotFoundError : No module named 'regex._regex'