24 questions
0
votes
0
answers
115
views
Python4Delphi GetIt Demos aren't working in Delphi 12
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....
1
vote
1
answer
753
views
Load a Python module and call its functions within Delphi code without ExecString
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,...
0
votes
1
answer
119
views
Cant build delphi package dclP4DEnvironmentProject.bpl for PythonEnvironments (P4D)
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 ...
1
vote
1
answer
296
views
Delphi, Python4Delphi, Anaconda, Oct2Py, and Octave on Windows
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 ...
2
votes
1
answer
994
views
Python4Delphi can't import numpy
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 ...
1
vote
0
answers
475
views
Using Python4Delphi in Delphi programs to execute Delphi code
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 ...
1
vote
0
answers
254
views
Why has the parameter of my Delphi function with PyDelphiWrapper always a fix wrong value?
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 ...
-1
votes
3
answers
3k
views
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 ...
1
vote
1
answer
648
views
Python4Delphi - Error in wrapping delphi interface with TPyDelphiWrapper.WrapInterface
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 ...
1
vote
0
answers
567
views
Find correct python4delphi Tpythonengine parameters
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 ...
0
votes
1
answer
160
views
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 ...
5
votes
1
answer
1k
views
How to return a list to Python from Delphi using Python4Delphi
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 ...
4
votes
0
answers
156
views
How to implement nested objects in Delphi for exposure with python4delphi?
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)
...
1
vote
0
answers
175
views
App using too much memory with TPythonEngine in Delphi [duplicate]
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 ...
2
votes
1
answer
2k
views
Get Python Object as Variant
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):
...
3
votes
1
answer
558
views
How do I use C API function PyArg_ParseTupleAndKeywords in Delphi?
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:
...
0
votes
2
answers
1k
views
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 ...
0
votes
1
answer
439
views
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?
2
votes
1
answer
1k
views
What part of installed Python does python4delphi use?
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)....
3
votes
1
answer
768
views
Is there a way to debug a python script using the python4delphi components?
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 ...
5
votes
2
answers
3k
views
Python4Delphi: Returning a python object in a function. (DelphiWrapper)
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
...
3
votes
1
answer
4k
views
Creating Python extension with Delphi
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 ...
1
vote
1
answer
1k
views
Python4Delphi-powered program, how to deploy it?
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 ...
0
votes
2
answers
1k
views
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\...