sjaserds
@sjaserds
Студент

Почему exe файл python не запускается?

Собрал проект через pyinstaller, в проекте использую pyqt5 и socket. Сборка проходит удачно. Но когда запускаю exe файл из папки dist то открывается на секунду консоль и закрывается. Пробовал запустить exe через cmd - таже проблема ошибок ни каких и программа сразу прекращает работу.


80 INFO: PyInstaller: 5.4.1
80 INFO: Python: 3.9.13
85 INFO: Platform: Windows-10-10.0.17763-SP0
86 INFO: wrote C:\Users\Sergey\Desktop\spime_redactor\SpimeReadctorMainForm.spec
87 INFO: UPX is not available.
88 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Sergey\\Desktop\\spime_redactor']
487 INFO: checking Analysis
487 INFO: Building Analysis because Analysis-00.toc is non existent
487 INFO: Initializing module dependency graph...
489 INFO: Caching module graph hooks...
497 WARNING: Several hooks defined for module 'numpy'. Please take care they do not conflict.
504 INFO: Analyzing base_library.zip ...
1628 INFO: Loading module hook 'hook-encodings.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
2629 INFO: Loading module hook 'hook-pickle.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
3231 INFO: Loading module hook 'hook-heapq.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
3757 INFO: Caching module dependency graph...
3884 INFO: running Analysis Analysis-00.toc
3892 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by C:\Users\Sergey\AppData\Local\Programs\Python\Python39\python.exe
3937 INFO: Analyzing C:\Users\Sergey\Desktop\spime_redactor\SpimeReadctorMainForm.py
3961 INFO: Loading module hook 'hook-PyQt5.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
4132 INFO: Processing module hooks...
4137 WARNING: Hidden import "sip" not found!
4279 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
4434 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
4639 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks'...
5001 INFO: Looking for ctypes DLLs
5004 INFO: Analyzing run-time hooks ...
5006 INFO: Including run-time hook 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_subprocess.py'
5008 INFO: Including run-time hook 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pyqt5.py'
5009 INFO: Including run-time hook 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
5012 INFO: Including run-time hook 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
5017 INFO: Looking for dynamic libraries
54 INFO: Extra DLL search directories (AddDllDirectory): ['C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyQt5\\Qt5\\bin']
55 INFO: Extra DLL search directories (PATH): ['C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyQt5\\Qt5\\bin', 'C:\\Windows\\system32', 'C:\\Windows', 'C:\\Windows\\System32\\Wbem', 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\Windows\\System32\\OpenSSH\\', 'C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common', 'C:\\Program Files\\Git\\cmd', 'C:\\Program Files\\MySQL\\MySQL Shell 8.0\\bin\\', 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\', 'C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\', 'C:\\Users\\Sergey\\AppData\\Local\\Microsoft\\WindowsApps', 'C:\\Users\\Sergey\\AppData\\Local\\JetBrains\\PyCharm Community Edition 2022.2.1\\bin']
6107 INFO: Looking for eggs
6107 INFO: Using Python library C:\Users\Sergey\AppData\Local\Programs\Python\Python39\python39.dll
6108 INFO: Found binding redirects:
[]
6110 INFO: Warnings written to C:\Users\Sergey\Desktop\spime_redactor\build\SpimeReadctorMainForm\warn-SpimeReadctorMainForm.txt
6136 INFO: Graph cross-reference written to C:\Users\Sergey\Desktop\spime_redactor\build\SpimeReadctorMainForm\xref-SpimeReadctorMainForm.html
6166 INFO: checking PYZ
6167 INFO: Building PYZ because PYZ-00.toc is non existent
6168 INFO: Building PYZ (ZlibArchive) C:\Users\Sergey\Desktop\spime_redactor\build\SpimeReadctorMainForm\PYZ-00.pyz
6447 INFO: Building PYZ (ZlibArchive) C:\Users\Sergey\Desktop\spime_redactor\build\SpimeReadctorMainForm\PYZ-00.pyz completed successfully.
6452 INFO: checking PKG
6453 INFO: Building PKG because PKG-00.toc is non existent
6453 INFO: Building PKG (CArchive) SpimeReadctorMainForm.pkg
6463 INFO: Building PKG (CArchive) SpimeReadctorMainForm.pkg completed successfully.
6464 INFO: Bootloader C:\Users\Sergey\AppData\Local\Programs\Python\Python39\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
6465 INFO: checking EXE
6466 INFO: Building EXE because EXE-00.toc is non existent
6466 INFO: Building EXE from EXE-00.toc
6467 INFO: Copying bootloader EXE to C:\Users\Sergey\Desktop\spime_redactor\build\SpimeReadctorMainForm\SpimeReadctorMainForm.exe.notanexecutable
6471 INFO: Copying icon to EXE
6473 INFO: Copying icons from ['C:\\Users\\Sergey\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico']
6473 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
6474 INFO: Writing RT_ICON 1 resource with 3752 bytes
6474 INFO: Writing RT_ICON 2 resource with 2216 bytes
6474 INFO: Writing RT_ICON 3 resource with 1384 bytes
6475 INFO: Writing RT_ICON 4 resource with 37019 bytes
6476 INFO: Writing RT_ICON 5 resource with 9640 bytes
6476 INFO: Writing RT_ICON 6 resource with 4264 bytes
6476 INFO: Writing RT_ICON 7 resource with 1128 bytes
6478 INFO: Copying 0 resources to EXE
6478 INFO: Embedding manifest in EXE
6479 INFO: Updating manifest in C:\Users\Sergey\Desktop\spime_redactor\build\SpimeReadctorMainForm\SpimeReadctorMainForm.exe.notanexecutable
6479 INFO: Updating resource type 24 name 1 language 0
6481 INFO: Appending PKG archive to EXE
6482 INFO: Fixing EXE headers
6560 INFO: Building EXE from EXE-00.toc completed successfully.
6562 INFO: checking COLLECT
6563 INFO: Building COLLECT because COLLECT-00.toc is non existent
6564 INFO: Building COLLECT COLLECT-00.toc
7074 INFO: Building COLLECT COLLECT-00.toc completed successfully.


Как запустит программу?
  • Вопрос задан
  • 316 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы