Questions tagged [python4delphi]

Python4delphi is set of open source components for Delphi, which allow to embed Python engine into Delphi programs.

Python4delphi is set of open source components for Delphi, which allow to embed Python engine into Delphi programs.

22 questions
1
vote
0 answers

App using too much memory with TPythonEngine in Delphi

I am using https://github.com/pyscripter/python4delphi/tree/master/PythonForDelphi I am experiencing a huge memory usage not being freed when I delete the TpythonEngine at runtime. Here is the snippet of code FPythonEngine :=…
cnaimi
  • 11
  • 2
0
votes
0 answers

Why does gPythonEngine go nil in Delphi with Python4Delphi?

I'm not even sure how to describe this, nor simplify an example. I am trying register a Python module with my Delphi app that uses Python4Delphi, and am running into a strange scenario. Here is the general sequence of events. Step 1. I create a form…
Bob
  • 587
  • 8
  • 17
0
votes
1 answer

Python4Delphi, support different Unix installations

I want to deploy a Delphi application on Linux, which will load a Python script and execute it. My first demo application worked on my test system, a Linux Red Hat installation. But I failed on different client installations, having Ubuntu and also…
Franz
  • 1,883
  • 26
  • 47
0
votes
2 answers

I can't use python for delphi under python2.6

My environment is delphi7 and Python2.6.6, python for delphi installed. But when I run a test app, I got a runtime error. Microsoft Visual C++ Runtime Library Runtime Error! program:E:\programming\delphi\p4dtest\dd\project1.exe This application has…
babykick
  • 1,923
  • 2
  • 12
  • 8
0
votes
2 answers

Reset Python4Delphi engine?

I use D7 with Python4Delphi. After users have imported much of py-files, Python have all these modules cached. I need a way to reset Py engine. So that Py "forgets" all user-imported modules, and I have "clean" Python, w/out restarting the app. How…
Prog1020
  • 4,530
  • 8
  • 31
  • 65
0
votes
1 answer

PythonNN.zip: are PYC files needed

I make Python3+Delphi app. I packed all files+dirs from Libs folder into python32.zip. It works. Do I need PYC files (and __pycache__ dirs) in that zip? If I pack PYC files, will Py3k work fasteer?
Prog1020
  • 4,530
  • 8
  • 31
  • 65
-1
votes
3 answers

python33.dll not found Error while using Python4Delphi component

I'm working on a project with Python4Delphi component and also i want to use embedded version of python which is better to use as needs no installation. I've set the correct path and filename to python310.dll in the appropriate properties but no…
Burzum
  • 170
  • 2
  • 15
1
2