Exe problem
Plz see https://en.delphipraxis.net/topic/10675-d4p_export_demo/ Either VCL or FMX cannot make an EXE with pyinstaller.exe On GUIPY the script runs with no problem
@limelect you will find further instructions here. Let me know if this works for you.
No, However in GUIPY it workes G:\Delphi Projects\Embarcadero\Delphi4PythonExporter-main\installer>pyinstaller delphifmxexecutable.spec
The 'pathlib' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in c:\user s\limelect\anaconda3\lib\site-packages) using conda remove then try again.
Am I to delete and install again? with pip install? I do not remember how I installed
delphifmxexecutable.py.txt delphifmxexecutable.spec.txt it did not work
I am missing some ting where is the source name and location is it the delphifmx?
Simplify your test case... Install Python3.11, PyInstaller and DelphiFMX out of Conda and try again.
I see on the net an answer
https://stackoverflow.com/questions/75476135/how-to-convert-python-file-to-exe-the-pathlib-package-is-an-obsolete-backport
I've experienced the same problem. I managed to solve it by downgrading pyInstaller to 5.1 (from 5.8) without touching pathlib. An additional possibility to consider.
from the net pip install pyinstaller==5.1 do I do that
Try it on Python3.11 as I said.
someting happened tp PyInstaller
First i deleted the dir problem pyinstaller workers now it compile BUt
- where is the name of my program? in the spec?
- or I do not understand. i need an execute of my program
Ok I found the program name
BUt
G:\Delphi Projects\Embarcadero\Delphi4PythonExporter-main\installer\dist\delphif
mxexecutable>delphifmxexecutable.exe
Traceback (most recent call last):
File "D4P_export_demo.py", line 13, in
I will check it with VCL
Finaly it workes on VCL
But on FMX Error this is the project Delphi4PythonExporter-main\Samples\Simple_Demo
Make sure your script is getting the right path to the .pydfm file.
I made sure as I am a professional I do not have any (on my 3 vcl demo) just an empty screen P.S My site www.limelect.com with Delphi since Delphi #1
Hmm... I didn't get the point.
Anyway, I quick fixed your project and shared it here again.
Finally, it works great thanks can you only explain to me the datas= fields? For the first 2, I understand the path to the library and the library name of the others. if I have more forms will this be included I guess each form has this structure r"Unit1.pydfm". and lastly the point what does it mean?
As for FMX, I will try to play with it as it has a problem too
I could not find any good information on data here https://pyinstaller.org/en/stable/man/pyi-makespec.html
And lastly, why do I have to give the package path and name? it does not know where the Pythone packages are?
why the last comment go into our discussion?
First Thanks for your kind help But unfortunately, I have some bad comments which do not concern you
- I did not get any action with the exe button pressed edit>label
- If so Delphivcl has no preference over QT designer which does the same
- with my https://limelect.com/downloads/compile-ui-to-py-files/ compile UI>py PYinstaler is used very simply and does the same job
- I hope Embarcadero will read this and take some action with their PY output
- I have added a test program
- if I am wrong about the output plz notify me