[GH-ISSUE #246] missing Library\bin folder in output directory #221

Closed
opened 2026-02-26 12:20:52 +03:00 by kerem · 3 comments
Owner

Originally created by @LaserGobble on GitHub (Feb 23, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/246

Hi!

I used auto-py-to-exe on a .py program that - besides other things - streams and then displays webcam images.

The command I executed was
pyinstaller --noconfirm --onedir --windowed --clean "path-to-where-my-program-is\main-program.py"

Everything worked fine, but once I tried to start my .exe, instead of my GUI the following error message showed up:

image

Both folders "Library" and "bin" did not exist at that point. I could solve the issue by manually adding the required folders (no content, just empty folders). Generating the .exe on another device (both Windows 10) using the same command led to errors as well.

My .exe does work now, but I wonder what was going on here. Does anybody know the source of this error? Thanks in advance.

Originally created by @LaserGobble on GitHub (Feb 23, 2022). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/246 Hi! I used auto-py-to-exe on a .py program that - besides other things - streams and then displays webcam images. The command I executed was pyinstaller --noconfirm --onedir --windowed --clean "path-to-where-my-program-is\\main-program.py" Everything worked fine, but once I tried to start my .exe, instead of my GUI the following error message showed up: ![image](https://user-images.githubusercontent.com/100295589/155341139-5157c1d8-49df-4eb9-a339-6762f9912883.png) Both folders "Library" and "bin" did not exist at that point. I could solve the issue by manually adding the required folders (no content, just empty folders). Generating the .exe on another device (both Windows 10) using the same command led to errors as well. My .exe does work now, but I wonder what was going on here. Does anybody know the source of this error? Thanks in advance.
kerem closed this issue 2026-02-26 12:20:52 +03:00
Author
Owner

@LaserGobble commented on GitHub (Feb 23, 2022):

Oh and I'm using python version 3.9.7 and auto-py-to-exe version 2.13.0 :)

<!-- gh-comment-id:1048882185 --> @LaserGobble commented on GitHub (Feb 23, 2022): Oh and I'm using python version 3.9.7 and auto-py-to-exe version 2.13.0 :)
Author
Owner

@brentvollebregt commented on GitHub (Feb 24, 2022):

Check out "FileNotFoundError: [Errno 2] No such file or directory" in the help post I have written - you will need to add the folder using the "Additional Files" section in the UI.

<!-- gh-comment-id:1049558511 --> @brentvollebregt commented on GitHub (Feb 24, 2022): Check out "[FileNotFoundError: [Errno 2] No such file or directory](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#filenotfounderror-errno-2-no-such-file-or-directory)" in the help post I have written - you will need to add the folder using the "Additional Files" section in the UI.
Author
Owner

@LaserGobble commented on GitHub (Mar 2, 2022):

Thanks, I'll make sure to include that the next time.

<!-- gh-comment-id:1056488431 --> @LaserGobble commented on GitHub (Mar 2, 2022): Thanks, I'll make sure to include that the next time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#221
No description provided.