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
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
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.
>
>
>
> -
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
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
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
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
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
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