Компиляция файла из python в exe
Делаю первый проект на Python. Пытаюсь собрать в exe файл с помощью auto-py-to-exe (пробовал и с помощью pyinstaller, результат такой же).
Не могу понять, что нужно исправлять?
Ссылка на проект: https://github.com/bobrovskij-vadim/Sushi_test
При запуске exe файла:
При компиляции выдает ошибку:
217381 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
Полный вид процесса:
Running auto-py-to-exe v2.7.11
Building directory: C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k
Provided command: pyinstaller --noconfirm --onedir --windowed --debug "all" --add-data
"C:/Users/vadim/Documents/Pyton/Sushi_salon/database.xlsx;.xlsx"
"C:/Users/vadim/Documents/Pyton/Sushi_salon/Sushi.py" Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onedir --windowed --debug all --add-data C:/Users/vadim/Documents/Pyton/Sushi_salon/database.xlsx;.xlsx C:/Users/vadim/Documents/Pyton/Sushi_salon/Sushi.py --distpath C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\application --workpath C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\build --specpath C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k
216440 INFO: PyInstaller: 4.2
216442 INFO: Python: 3.8.5
216444 INFO: Platform: Windows-10-10.0.18362-SP0
216446 INFO: wrote C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\Sushi.spec
216450 INFO: UPX is not available.
216454 INFO: Extending PYTHONPATH with paths ['C:\\Users\\vadim\\Documents\\Pyton\\Sushi_salon', 'C:\\Users\\vadim\\AppData\\Local\\Temp\\tmpjp52ib_k']
216459 INFO: checking Analysis
216462 INFO: Building Analysis because Analysis-01.toc is non existent
216466 INFO: Reusing cached module dependency graph...
216509 INFO: Caching module graph hooks...
216517 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
216570 INFO: running Analysis Analysis-01.toc
216575 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\users\vadim\appdata\local\programs\python\python38\python.exe
216633 INFO: Analyzing C:\Users\vadim\Documents\Pyton\Sushi_salon\Sushi.py
216683 INFO: Processing module hooks...
216686 INFO: Loading module hook 'hook-difflib.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216688 INFO: Excluding import of doctest from module difflib
216694 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216699 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216706 INFO: Excluding import of lib2to3.refactor from module distutils.util
216712 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216780 INFO: Loading module hook 'hook-heapq.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216785 INFO: Excluding import of doctest from module heapq
216789 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216833 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216838 INFO: Excluding import of test.support from module multiprocessing.util
216843 INFO: Excluding import of test from module multiprocessing.util
216845 INFO: Loading module hook 'hook-pickle.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216851 INFO: Excluding import of argparse from module pickle
216853 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216857 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216862 INFO: Loading module hook 'hook-xml.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
216915 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
217050 INFO: checking Tree
217054 INFO: Building Tree because Tree-03.toc is non existent
217058 INFO: Building Tree Tree-03.toc
217124 INFO: checking Tree
217130 INFO: Building Tree because Tree-04.toc is non existent
217134 INFO: Building Tree Tree-04.toc
217214 INFO: checking Tree
217219 INFO: Building Tree because Tree-05.toc is non existent
217222 INFO: Building Tree Tree-05.toc
217246 INFO: Looking for ctypes DLLs
217272 INFO: Analyzing run-time hooks ...
217277 INFO: Including run-time hook 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
217286 INFO: Including run-time hook 'c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-
packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
217295 INFO: Looking for dynamic libraries
217545 INFO: Looking for eggs
217550 INFO: Using Python library c:\users\vadim\appdata\local\programs\python\python38\python38.dll
217558 INFO: Found binding redirects:
[]
217633 INFO: Warnings written to C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\build\Sushi\warn-Sushi.txt
217668 INFO: Graph cross-reference written to C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\build\Sushi\xref-Sushi.html
217696 INFO: Appending 'datas' from .spec
217703 INFO: checking PYZ
217709 INFO: Building PYZ because PYZ-01.toc is non existent
217714 INFO: Building PYZ (ZlibArchive) C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\build\Sushi\PYZ-01.pyz
217719 INFO: Building PYZ (ZlibArchive) C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\build\Sushi\PYZ-01.pyz completed successfully.
217726 INFO: checking PKG
217732 INFO: Building PKG because PKG-01.toc is non existent
217737 INFO: Building PKG (CArchive) PKG-01.pkg
217752 INFO: Building PKG (CArchive) PKG-01.pkg completed successfully.
217757 INFO: Bootloader c:\users\vadim\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw_d.exe
217763 INFO: checking EXE
217766 INFO: Building EXE because EXE-01.toc is non existent
217771 INFO: Building EXE from EXE-01.toc
217776 INFO: Copying icons from ['c:\\users\\vadim\\appdata\\local\\programs\\python\\python38\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-windowed.ico']
217782 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
217788 INFO: Writing RT_ICON 1 resource with 3752 bytes
217793 INFO: Writing RT_ICON 2 resource with 2216 bytes
217799 INFO: Writing RT_ICON 3 resource with 1384 bytes
217804 INFO: Writing RT_ICON 4 resource with 38188 bytes
217809 INFO: Writing RT_ICON 5 resource with 9640 bytes
217814 INFO: Writing RT_ICON 6 resource with 4264 bytes
217819 INFO: Writing RT_ICON 7 resource with 1128 bytes
217827 INFO: Appending archive to EXE C:\Users\vadim\AppData\Local\Temp\tmpjp52ib_k\build\Sushi\Sushi.exe
217833 INFO: Building EXE from EXE-01.toc completed successfully.
217841 INFO: checking COLLECT
217846 INFO: Building COLLECT because COLLECT-01.toc is non existent
217857 INFO: Building COLLECT COLLECT-01.toc
219485 INFO: Building COLLECT COLLECT-01.toc completed successfully.


