[GH-ISSUE #179] Executable file is not created #166

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

Originally created by @MarcusStill on GitHub (Jun 17, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/179

Hello. Trying to compile my application. In the parameters, I select "one directory" - the directory with the project and "window based." The output/main/directory is created. There are many files in the shadow. But the main file is not executable.

Running auto-py-to-exe v2.9.0
Building directory: /tmp/tmpsnamelyo
Provided command: pyinstaller --noconfirm --onedir --windowed  "/home/marcus/PycharmProjects/PyMASL/main.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onedir --windowed /home/marcus/PycharmProjects/PyMASL/main.py --distpath /tmp/tmpsnamelyo/application --workpath /tmp/tmpsnamelyo/build --specpath /tmp/tmpsnamelyo

32183 INFO: PyInstaller: 4.3
32187 INFO: Python: 3.7.3
32193 INFO: Platform: Linux-4.19.0-16-amd64-x86_64-with-MX-19.4-patito_feo
32197 INFO: wrote /tmp/tmpsnamelyo/main.spec
32223 INFO: UPX is not available.
32233 INFO: Extending PYTHONPATH with paths
['/home/marcus/PycharmProjects/PyMASL', '/tmp/tmpsnamelyo']
32284 INFO: checking Analysis
32288 INFO: Building Analysis because Analysis-00.toc is non existent
32291 INFO: Initializing module dependency graph...
32307 INFO: Caching module graph hooks...
32321 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
32330 INFO: Analyzing base_library.zip ...
36022 INFO: Caching module dependency graph...
36186 INFO: running Analysis Analysis-00.toc
36251 INFO: Analyzing /home/marcus/PycharmProjects/PyMASL/main.py
40968 INFO: Processing module hooks...
40985 INFO: Loading module hook 'hook-psycopg2.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
40994 WARNING: Hidden import "mx.DateTime" not found!
41007 INFO: Loading module hook 'hook-xml.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
41382 INFO: Loading module hook 'hook-importlib_metadata.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
41400 INFO: Loading module hook 'hook-pickle.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
41410 INFO: Loading module hook 'hook-difflib.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
41422 INFO: Loading module hook 'hook-heapq.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
41430 INFO: Loading module hook 'hook-encodings.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
41581 INFO: Loading module hook 'hook-sqlalchemy.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
42423 WARNING: Hidden import "pysqlite2" not found!
42428 WARNING: Hidden import "MySQLdb" not found!
43296 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
43300 INFO: Import to be excluded not found: 'test'
43304 INFO: Loading module hook 'hook-sqlite3.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'...
43426 INFO: Looking for ctypes DLLs
43471 INFO: Analyzing run-time hooks ...
43484 INFO: Including run-time hook '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
43508 INFO: Looking for dynamic libraries
45405 INFO: Looking for eggs
45412 INFO: Python library not in binary dependencies. Doing additional searching...
45571 INFO: Using Python library /lib/x86_64-linux-gnu/libpython3.7m.so.1.0
45590 INFO: Warnings written to /tmp/tmpsnamelyo/build/main/warn-main.txt
45665 INFO: Graph cross-reference written to /tmp/tmpsnamelyo/build/main/xref-main.html
45703 INFO: checking PYZ
45707 INFO: Building PYZ because PYZ-00.toc is non existent
45710 INFO: Building PYZ (ZlibArchive) /tmp/tmpsnamelyo/build/main/PYZ-00.pyz
46667 INFO: Building PYZ (ZlibArchive) /tmp/tmpsnamelyo/build/main/PYZ-00.pyz completed successfully.
46685 INFO: checking PKG
46689 INFO: Building PKG because PKG-00.toc is non existent
46698 INFO: Building PKG (CArchive) PKG-00.pkg
46749 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
46757 INFO: Bootloader /home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/bootloader/Linux-64bit/run
46762 INFO: checking EXE
46767 INFO: Building EXE because EXE-00.toc is non existent
46772 INFO: Building EXE from EXE-00.toc
46778 INFO: Appending archive to ELF section in EXE /tmp/tmpsnamelyo/build/main/main
46809 INFO: Building EXE from EXE-00.toc completed successfully.
46815 INFO: checking COLLECT
46819 INFO: Building COLLECT because COLLECT-00.toc is non existent
46825 INFO: Building COLLECT COLLECT-00.toc
48574 INFO: Building COLLECT COLLECT-00.toc completed successfully.

Moving project to: /home/marcus/PycharmProjects/PyMASL/output
Complete.
Originally created by @MarcusStill on GitHub (Jun 17, 2021). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/179 Hello. Trying to compile my application. In the parameters, I select "one directory" - the directory with the project and "window based." The output/main/directory is created. There are many files in the shadow. But the main file is not executable. > ``` Running auto-py-to-exe v2.9.0 Building directory: /tmp/tmpsnamelyo Provided command: pyinstaller --noconfirm --onedir --windowed "/home/marcus/PycharmProjects/PyMASL/main.py" Recursion Limit is set to 5000 Executing: pyinstaller --noconfirm --onedir --windowed /home/marcus/PycharmProjects/PyMASL/main.py --distpath /tmp/tmpsnamelyo/application --workpath /tmp/tmpsnamelyo/build --specpath /tmp/tmpsnamelyo 32183 INFO: PyInstaller: 4.3 32187 INFO: Python: 3.7.3 32193 INFO: Platform: Linux-4.19.0-16-amd64-x86_64-with-MX-19.4-patito_feo 32197 INFO: wrote /tmp/tmpsnamelyo/main.spec 32223 INFO: UPX is not available. 32233 INFO: Extending PYTHONPATH with paths ['/home/marcus/PycharmProjects/PyMASL', '/tmp/tmpsnamelyo'] 32284 INFO: checking Analysis 32288 INFO: Building Analysis because Analysis-00.toc is non existent 32291 INFO: Initializing module dependency graph... 32307 INFO: Caching module graph hooks... 32321 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict. 32330 INFO: Analyzing base_library.zip ... 36022 INFO: Caching module dependency graph... 36186 INFO: running Analysis Analysis-00.toc 36251 INFO: Analyzing /home/marcus/PycharmProjects/PyMASL/main.py 40968 INFO: Processing module hooks... 40985 INFO: Loading module hook 'hook-psycopg2.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'... 40994 WARNING: Hidden import "mx.DateTime" not found! 41007 INFO: Loading module hook 'hook-xml.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 41382 INFO: Loading module hook 'hook-importlib_metadata.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 41400 INFO: Loading module hook 'hook-pickle.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 41410 INFO: Loading module hook 'hook-difflib.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 41422 INFO: Loading module hook 'hook-heapq.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 41430 INFO: Loading module hook 'hook-encodings.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 41581 INFO: Loading module hook 'hook-sqlalchemy.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 42423 WARNING: Hidden import "pysqlite2" not found! 42428 WARNING: Hidden import "MySQLdb" not found! 43296 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 43300 INFO: Import to be excluded not found: 'test' 43304 INFO: Loading module hook 'hook-sqlite3.py' from '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks'... 43426 INFO: Looking for ctypes DLLs 43471 INFO: Analyzing run-time hooks ... 43484 INFO: Including run-time hook '/home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py' 43508 INFO: Looking for dynamic libraries 45405 INFO: Looking for eggs 45412 INFO: Python library not in binary dependencies. Doing additional searching... 45571 INFO: Using Python library /lib/x86_64-linux-gnu/libpython3.7m.so.1.0 45590 INFO: Warnings written to /tmp/tmpsnamelyo/build/main/warn-main.txt 45665 INFO: Graph cross-reference written to /tmp/tmpsnamelyo/build/main/xref-main.html 45703 INFO: checking PYZ 45707 INFO: Building PYZ because PYZ-00.toc is non existent 45710 INFO: Building PYZ (ZlibArchive) /tmp/tmpsnamelyo/build/main/PYZ-00.pyz 46667 INFO: Building PYZ (ZlibArchive) /tmp/tmpsnamelyo/build/main/PYZ-00.pyz completed successfully. 46685 INFO: checking PKG 46689 INFO: Building PKG because PKG-00.toc is non existent 46698 INFO: Building PKG (CArchive) PKG-00.pkg 46749 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully. 46757 INFO: Bootloader /home/marcus/PycharmProjects/PyMASL/venv/lib/python3.7/site-packages/PyInstaller/bootloader/Linux-64bit/run 46762 INFO: checking EXE 46767 INFO: Building EXE because EXE-00.toc is non existent 46772 INFO: Building EXE from EXE-00.toc 46778 INFO: Appending archive to ELF section in EXE /tmp/tmpsnamelyo/build/main/main 46809 INFO: Building EXE from EXE-00.toc completed successfully. 46815 INFO: checking COLLECT 46819 INFO: Building COLLECT because COLLECT-00.toc is non existent 46825 INFO: Building COLLECT COLLECT-00.toc 48574 INFO: Building COLLECT COLLECT-00.toc completed successfully. Moving project to: /home/marcus/PycharmProjects/PyMASL/output Complete. ```
kerem 2026-02-26 12:20:41 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@brentvollebregt commented on GitHub (Jun 18, 2021):

The title you have set says "Executable file is not created" but the description states "the main file is not executable" - which one of these are correct?

By looking at those logs, it looks like the executable was created.

<!-- gh-comment-id:864304957 --> @brentvollebregt commented on GitHub (Jun 18, 2021): The title you have set says "Executable file is not created" but the description states "the main file is not executable" - which one of these are correct? By looking at those logs, it looks like the executable was created.
Author
Owner

@alireza-kordbacheh commented on GitHub (Jul 24, 2021):

How do I convert a py file to exe?
images (12)

<!-- gh-comment-id:886051383 --> @alireza-kordbacheh commented on GitHub (Jul 24, 2021): How do I convert a py file to exe? ![images (12)](https://user-images.githubusercontent.com/87824263/126869384-403d6bae-6436-47fd-a35e-633d42821b80.jpg)
Author
Owner

@brentvollebregt commented on GitHub (Jul 25, 2021):

@alireza-kordbacheh have you watched the demo video? Also, is your question related to this issue?

<!-- gh-comment-id:886182806 --> @brentvollebregt commented on GitHub (Jul 25, 2021): @alireza-kordbacheh have you watched the demo video? Also, is your question related to this issue?
Author
Owner

@github-actions[bot] commented on GitHub (Sep 24, 2021):

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

<!-- gh-comment-id:926263649 --> @github-actions[bot] commented on GitHub (Sep 24, 2021): This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 30, 2021):

Closing issue due to no activity in more than 60 days.

<!-- gh-comment-id:930655497 --> @github-actions[bot] commented on GitHub (Sep 30, 2021): Closing issue due to no activity in more than 60 days.
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#166
No description provided.