Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
115 views

I just downloaded Python4Delphi from getIt and after it finished installing, it opened the demos for me. When I run the demos, I just keep getting errors: Error 87: Could not open Dll "python33....
Martin Kakhuis's user avatar
1 vote
1 answer
753 views

I've been looking around for some way to call python functions (using Python4Delphi) within my delphi code without direct need for TPythonEngine.ExecStrings execution. My base idea is to load a module,...
Arthur Araujo's user avatar
0 votes
1 answer
119 views

I'm trying to use the delphi4python library, as well as the PythonEnvironments library: https://github.com/Embarcadero/PythonEnvironments https://github.com/Embarcadero/python4delphi I have installed ...
Merk don's user avatar
1 vote
1 answer
296 views

I have a Delphi Win32 program that needs to run some scripts on Octave. I've taken the approach of going through Python4Delphi to get to a Python "environment", where I can write and run ...
Bob's user avatar
  • 723
2 votes
1 answer
994 views

I was curious about Python4Delphi and installed it and looked through the demos a bit. Now I wanted to install Numpy via CMD with pip this went well without errors. but now when I enter the following ...
aaron versfeld's user avatar
1 vote
0 answers
475 views

Good day everyone! I have a question. Perhaps someone has already experienced this. I have a ready-made program on Delphi. And I need to initialize and execute all the functions of this program using ...
Ahriman's user avatar
  • 11
1 vote
0 answers
254 views

I am using Python4Delphi and try to get the demo WrapDelphiDemo running. What it should do is to calculate the amount of prime numbers for values up to 1000000. The expected value is 78498 but when I ...
Jo. D.'s user avatar
  • 21
-1 votes
3 answers
3k views

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 ...
Burzum's user avatar
  • 188
1 vote
1 answer
648 views

I am using Python 3.8 with Delphi 10.4.2. I am trying to use the components of Python4Delphi to access through a Python script some interfaces defined in Delphi. At design-time I added the ...
filippocurati's user avatar
1 vote
0 answers
567 views

while using Tpythonengine from here python 4 delphi I fail to get my code *.exe running on a different system, due to differences in the python config on these computers. Following the idea of ...
user1769184's user avatar
  • 1,631
0 votes
1 answer
160 views

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 ...
Franz's user avatar
  • 2,085
5 votes
1 answer
1k views

Using Python4Delphi, it is fairly straight forward to expose Delphi methods to Python so that Python can call into a Delphi application. However I have been unable to return a Python list that is ...
user avatar
4 votes
0 answers
156 views

Assume I have a class such as: TArithmetic = class (TPersistent) function add (x, y : double) : double; end; and another class which I want to expose in python: TMath = class (TPersistent) ...
user avatar
1 vote
0 answers
175 views

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 ...
cnaimi's user avatar
  • 11
2 votes
1 answer
2k views

I`m using Python4Delphi I have a python file that a class declared on it like this : class Student: SName = "MyName" SAge = 26 def GetName(self): return SName def GetAge(self): ...
M.mhr's user avatar
  • 1,759
3 votes
1 answer
558 views

I am currently writing a Python module using python4delphi. I would like to use the standard C API Function PyArg_ParseTupleAndKeywords. As you can see from the documentation the signature is so: ...
Lorenzo P's user avatar
  • 1,548
0 votes
2 answers
1k views

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 ...
Prog1020's user avatar
  • 4,791
0 votes
1 answer
439 views

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's user avatar
  • 4,791
2 votes
1 answer
1k views

I have Python 2.7 installed in "C:\Python27". Now I run 1st demo of Python4delphi with D7, which somehow uses my Py2.7 install folder. If I rename Python folder, demo can't run (without error message)....
Prog1020's user avatar
  • 4,791
3 votes
1 answer
768 views

I want to add scripting capabilities to my application and I just came across python4delphi http://code.google.com/p/python4delphi/, which seems to be stable. At first sight it looks very easy to use ...
Marcelo Rauter's user avatar
5 votes
2 answers
3k views

I am using python4delphi. How can I return an object from a wrapped Delphi class function? Code Snippet: I have a simple Delphi Class that I wrapped to Python Script, right? TSimple = Class Private ...
Gabriel Fonseca's user avatar
3 votes
1 answer
4k views

I'm trying to convert Python function to Delphi using Python4Delphi (to educate myself and to gain speed, I hope). However I've no idea how this works with Delphi and Python. Here's my original ...
Harriv's user avatar
  • 6,137
1 vote
1 answer
1k views

My Delphi program uses Python4Delphi, and the Python script uses some standard libs. When deploying my program I don't want an entire Python installation, and it must work with python27.dll. What are ...
Edwin Yip's user avatar
  • 4,230
0 votes
2 answers
1k views

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\...
babykick's user avatar
  • 1,983