Hi! Question on Python4Delphi. When calling a script inside TTask, the script with the numpy module is not loaded and the script hangs at the "import numpy" line. Without TTask everything is fine, as well as without numpy in the Python script.
> task := TTask.Create(
> procedure
> begin
> uf_WriteToLog('Script is running',[PyFileName]);
> GetPythonEngine.ExecFile(PyFileName);
>
> if task.Status = TTaskStatus.Canceled then
> //If canceled, exit the loop.
> Exit;
> end);
> task.Start;
i.e. everything works in the main thread, but in a separate thread it is a problem. The problem so far is only with numpy. If the script does not contain this library, everything is fine. Who has encountered this problem? Please help me
Hi! Question on Python4Delphi. When calling a script inside TTask, the script with the numpy module is not loaded and the script hangs at the "import numpy" line. Without TTask everything is fine, as well as without numpy in the Python script.
i.e. everything works in the main thread, but in a separate thread it is a problem. The problem so far is only with numpy. If the script does not contain this library, everything is fine. Who has encountered this problem? Please help me