Jump to content
Sign in to follow this  
limelect

D4P_export_demo

Recommended Posts

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

 

Screenshot - 13_12_2023 , 11_41_14.jpg

Edited by limelect

Share this post


Link to post

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 by limelect

Share this post


Link to post

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×