Jump to content

Dmitry72

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

1 Neutral
  1. Dmitry72

    Windows service tcp server

    Hi Halted, you might have a look at this project GitHub - dima72/Python-UniGUI-HITRAN-API: Python, UniGUI, HITRAN API which is an example of use Python4Delphi in UniGUI web server. Cheers,
  2. Dmitry72

    P4D FMX requirements

    Dear Professor, thank you for support! Step 1. Make sure that Python is installed on the system and find the name of the .so On my system Ubuntu22.04 it is libpython3.10.so.1 and libpython3.10.so.1.0 Step 2 The make sure property UseLastKnownVersion = False. It was trying to use libpython3.3m.so instead. Now it all works well!! Thank you for your support!
  3. Dmitry72

    P4D FMX requirements

    Hello, I've built and deployed on Linux Ubuntu22.0.4 the python4delphi-master\Demos\FMX\SimpleDemo\Project1.dproj example but the executable is still not starting. What are requirements for P4D for Linux? Thanks in advance,
  4. Dmitry72

    Unable to run 2 TPythonEngine per VCL application

    procedure TSortThread.ExecuteWithPython; var pyfunc: PPyObject; begin ...... if Assigned(fScript) then ExecStrings(fScript); pyfunc := FindFunction( ExecModule, fpyfuncname); if Assigned(pyfunc) then try EvalFunction(pyfunc,[NativeInt(self),0,FSize]); except end; I can see that TPythonThread can Exec script or find a Function in global script and Exec it. But how can I use PythonInputOutput1 to interact with the Thread? How can I get a user interact with the Thread's script?
  5. Dmitry72

    Unable to run 2 TPythonEngine per VCL application

    I'm apologizing for my question formulation. Threads are good. But those threads are inside of Python session and share the same environment. They can't be used for creating sessions. I state that pythonXXX.dll is a single process library and it can't be used for creating more than one session per VCL process application. Can you sir, confirm that, please.
  6. Dear All, PythonEngine is a singleton by design and wrapper of pythonXXX.dll (which is part of Python for Windows). I'm unable to run 2 and more TPythonEngine per VCL application and I believe this is a restriction applied by the DLL. So, the pythonXXX.dll is a single threaded library. Please advise on how we can work-around this issue? Thanks in advance.
×