limelect 48 Posted December 15, 2023 (edited) I wonder if someone can help. I made this Python to EXE with Delphi https://limelect.com/downloads/python-2-execute/ It works BUT when I use it on Delphi Py the first line does not find it. from delphifmx import * from parent_window import Parent_Form def main(): Running this script on GUIPY with no problem The line I am using is pyinstaller.exe --windowed D4P_export_demo.py --onefile --paths=C:\Users\LimElect\anaconda3\Lib\site-packages\delphifmx --name D4P_export_demo I have tried all combinations and could not find something. -paths=C:\Users\LimElect\anaconda3\Lib\site-packages\delphifmx is the path to the library. But GUIPY finds it with no problem P.S. I have asked this question on the Python platform with no answer. StackOverflow rejected my question I do not understand why so you are left. One more thing pip list shows the package Edited December 15, 2023 by limelect Share this post Link to post
limelect 48 Posted December 17, 2023 (edited) Sorry guys to bother .I came to a conclusion that it is Embarcadero's problem or mine. as it is in __init__.py if 'DelphiVCL' in fname: return os.path.join(sdir, os.path.basename(fname)) raise ValueError("DelphiVCL module not found. Try to reinstall the delphivcl package.") why ? i do not know. so I hop one of thos Delphi guys will see this All the package portions are there and in GUIPY it finds it but not as an execution. I single step to see this. Thanks Edited December 17, 2023 by limelect Share this post Link to post
limelect 48 Posted December 17, 2023 OK guys I got this suggestion in HEBREW "https://www.facebook.com/groups/306586986847428/" pip install auto-py-to-exe==2.42.0 which I did and got the same problem So I guess I am left with Embarcadero helllllllllp Share this post Link to post
pyscripter 689 Posted December 19, 2023 Have seen https://github.com/Embarcadero/DelphiVCL4Python/issues/12? Share this post Link to post
lmbelo 2 Posted December 19, 2023 I'm here to assist you :) Check your issues on GitHub. delphivcl and delphifmx are extension modules, but we don't use Cython or distutils to compile it, because they are not C/C++. Therefore we share the final binaries onto the root folder. You only need to copy the delphivcl/fmx folder to your final distribution folder. Using the pyinstaller script makes it easier. Share this post Link to post
limelect 48 Posted December 20, 2023 It is fixed here https://github.com/Embarcadero/DelphiFMX4Python/issues/94 Share this post Link to post