0

I tried to run Python code from c# using pythonnet. I followed this intstuction: https://somegenericdev.medium.com/calling-python-from-c-an-introduction-to-pythonnet-c3d45f7d5232 but debugger stopped when I run the line PythonEngine.Initialize(). What is the reason and how to fix it?

Jason
  • 313
  • 2
  • 8
  • wrap it in at try/catch block and see what is the exception, if there's no exception and it just stops, just make sure Initialize() is not async. – SilentTremor Dec 16 '22 at 15:44
  • try\catch doesnt return anything, debuggind just stops :( – Jason Dec 16 '22 at 16:06
  • in visual studio set IDE to break on all exceptions, and I mean all, not just CLR, use vs studio community if you are not a vs studio user. – SilentTremor Dec 19 '22 at 09:43

0 Answers0