mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 11:45:49 +03:00
[GH-ISSUE #537] Unable to compile .pyd file to .exe – runtime error with APP keyword #412
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tanishq-JM on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/537
Originally assigned to: @brentvollebregt on GitHub.
Describe the bug
When attempting to compile a
.pydfile to an .exe application, the resulting executable fails to run and only produces the following error:It seems that the compiler is looking for
APP.py, but the file is actually a.pyd. How do I tell the compiler to use the.pydfile instead of looking for.py?When including the correct hookup directory in
app1.json, it works, but otherwise, the same error occurs.To Reproduce
.pydfile to an .exe using auto-py-to-exeExpected behavior
The compiled executable should run the
.pydfile as the main entry point, not expect a.py.Your Environment:
python --version): 3.11.8pip show auto-py-to-exe): latestpip show pyinstaller): latestWhat I am looking for:
I am looking for guidance on how to configure auto-py-to-exe (or PyInstaller) so that it recognizes and runs my main APP.pyd file as the entry point, instead of expecting a APP.py. Is there a specific setting, configuration, or workaround for this scenario?
Any help or documentation reference would be appreciated.
@github-actions[bot] commented on GitHub (Aug 14, 2025):
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.
Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.
@brentvollebregt commented on GitHub (Aug 15, 2025):
I haven't used pyd's myself directly, but I had thought they could not be run directly and needed to be imported - is this correct? So you cannot run
python my.pyd?If you cannot run it directly, I cannot imagine even PyInstaller supports this. It could be added as a binary to a script that imports it though.