[Python.NET] Re: Doubt about compatibility between Python version and Pythonnet

2023-04-25 Thread Emmanuel Rutovic
Hi, Pythonnet version 3.x works well with several versions of Python, including 3.8 to 3.11. If memory is correct, Pythonnet 2.5.2 had problems with Python 3.9 and higher. Regards, Manu. On Tue, Apr 25, 2023 at 6:27 PM Alvaro Castro, Fernando via Python.NET < pythonnet@python.org> wrote: > H

[Python.NET] pythonnet with .Net6 demo

2022-06-10 Thread Emmanuel Rutovic
github.com/aesim-tech/pythonnet_minimal. It demonstrates how to use pythonnet with .Net6 and how to use encoders. Note: I am not involved in the development of Pythonnet, so It might not be the best approach. It is what I understood looking at the source code. I hope this helps. Cheers, -- *Emmanu

[Python.NET] Re: WPF or other GUI with PythonNet & Clingo

2022-05-03 Thread Emmanuel Rutovic
h Python.NET embedded in >C#--Visual Studio? >2. >3. Have you found any complete embedding example apps? I've only found >the Python.NET tests, which each show how to perform one specific thing, >but not how to structure a full app. > > > > -

[Python.NET] Re: WPF or other GUI with PythonNet & Clingo

2022-05-03 Thread Emmanuel Rutovic
Hi David, That's definitely possible. I am doing something similar with the tool that I am developing (see www.simba.io). However, please note that if you base your UI on WPF: - Your app will be only compatible with Windows - The size of the Python module might be quite large Microsoft did not pu

[Python.NET] Re: Problem installing pythonnet 2.5.2 on Debian 11

2022-04-27 Thread Emmanuel Rutovic
Hi Mohammed, Have you installed Mono Framework? (https://www.mono-project.com) The C# code needs to be compiled targeting .Net Framework and not .Net Core / 5.0 / 6.0. Pythonnet 3.0 will be compatible with the newest flavor of .Net and will not require .Net Framework. Hope this helps. Regards, M

[Python.NET] Re: Binary file passed to .Net object

2021-01-27 Thread Emmanuel Rutovic
Hi Alex, It seems that the exception is thrown inside your method "ExamRecordLoader" so it is hard to debug. Is it possible that the error is thrown because of different working directories? Can you try to use the full path to 'MyBinaryFile.bin' ? Also, I always use the file name including the ex

[Python.NET] Re: RANGE object access from Python

2020-12-02 Thread Emmanuel Rutovic
y[i])); } return pyList; } return null; } public static void Register() { PyObjectConversions.RegisterEncoder(Instance); } } In Python, just call Register() before getting object. I hope it helps! Regards, *Emmanuel Ruto

[Python.NET] Re: Working group notes for November 5, 2020

2020-11-19 Thread Emmanuel Rutovic
Hi, Thanks for the notes and for your work with Pythonnet. Do you need any help with the compatibility with .Net Core / .Net 5 ? I have a little bit of time that I can spend on this but I don’t know where to start. Who should I contact ? Thanks! Manu. *Emmanuel Rutovic* Founder, AESIM.tech +1

[Python.NET] Re: intermittent importerror unknown location, module imported as namespace, import from clr works

2020-04-09 Thread Emmanuel Rutovic
Hi Mark, My understanding (and I might be wrong) is Pythonnet (Official Compiled Master branch) is *not* compatible with .Net Core and is compatible only with the .Net framework. Is it possible that you accidentally load .Net Framework libraries when you think they are .Net Core ? I spent a lot of