1
1
12LiCaNtRoP122020-08-24 16:40:29
Building projects
12LiCaNtRoP12, 2020-08-24 16:40:29

Why doesn't it start after build?

Changed the question, need a different answer. I have compiled a program written in Python using pygame. During the creation of the project, everything works, however, after building the project to be able to run without installing Python, any packages and other things, the program does not work at all. Although a black screen is displayed with the name set, but after a second it turns off, can you please solve?

text on command line during build:

TYK
C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game>pyinstaller --noconsole starting.py
147 INFO: PyInstaller: 4.1.dev0
147 INFO: Python: 3.8.5
147 INFO: Platform: Windows-10-10.0.19041-SP0
147 INFO: wrote C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\starting.spec
147 INFO: UPX is not available.
162 INFO: Extending PYTHONPATH with paths
['C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python38-32\\Game',
'C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python38-32\\Game']
200 INFO: checking Analysis
200 INFO: Building Analysis because Analysis-00.toc is non existent
200 INFO: Initializing module dependency graph...
216 INFO: Caching module graph hooks...
231 INFO: Analyzing base_library.zip ...
4010 INFO: Processing pre-find module path hook distutils from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
4010 INFO: distutils: retargeting to non-venv dir 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib'
8247 INFO: Caching module dependency graph...
8448 INFO: running Analysis Analysis-00.toc
8464 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\user\appdata\local\programs\python\python38-32\python.exe
8579 INFO: Analyzing C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\starting.py
9798 INFO: Processing pre-find module path hook site from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
9798 INFO: site: retargeting to fake-dir 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\fake-modules'
11219 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'.
14845 INFO: Processing module hooks...
14845 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
14845 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
14929 INFO: Loading module hook 'hook-lib2to3.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
15008 INFO: Loading module hook 'hook-numpy.core.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
15123 INFO: Loading module hook 'hook-numpy.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
15130 INFO: Loading module hook 'hook-pkg_resources.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
15409 INFO: Processing pre-safe import module hook win32com from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
15893 WARNING: Hidden import "pkg_resources.markers" not found!
15893 INFO: Excluding import '__main__'
15893 INFO: Removing import of __main__ from module pkg_resources
15893 INFO: Loading module hook 'hook-pygame.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
15893 WARNING: Hidden import "pygame._view" not found!
15893 INFO: Loading module hook 'hook-setuptools.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
16625 INFO: Loading module hook 'hook-sysconfig.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
16635 INFO: Loading module hook 'hook-xml.dom.domreg.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
16635 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
16635 INFO: Loading module hook 'hook-xml.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
16635 INFO: Loading module hook 'hook-_tkinter.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
16783 INFO: checking Tree
16783 INFO: Building Tree because Tree-00.toc is non existent
16783 INFO: Building Tree Tree-00.toc
16967 INFO: checking Tree
16967 INFO: Building Tree because Tree-01.toc is non existent
16967 INFO: Building Tree Tree-01.toc
16983 INFO: Loading module hook 'hook-pythoncom.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
17268 INFO: Loading module hook 'hook-pywintypes.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
17553 INFO: Loading module hook 'hook-win32com.py' from 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
18133 INFO: Looking for ctypes DLLs
18252 INFO: Analyzing run-time hooks ...
18260 INFO: Including run-time hook 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'
18270 INFO: Including run-time hook 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
18270 INFO: Including run-time hook 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
18270 INFO: Including run-time hook 'c:\\users\\user\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_win32comgenpy.py'
18285 INFO: Looking for dynamic libraries
19836 INFO: Looking for eggs
19836 INFO: Using Python library c:\users\user\appdata\local\programs\python\python38-32\python38.dll
19836 INFO: Found binding redirects:
[]
19852 INFO: Warnings written to C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\build\starting\warn-starting.txt
20047 INFO: Graph cross-reference written to C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\build\starting\xref-starting.html
20137 INFO: checking PYZ
20137 INFO: Building PYZ because PYZ-00.toc is non existent
20137 INFO: Building PYZ (ZlibArchive) C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\build\starting\PYZ-00.pyz
22196 INFO: Building PYZ (ZlibArchive) C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\build\starting\PYZ-00.pyz completed successfully.
22228 INFO: checking PKG
22228 INFO: Building PKG because PKG-00.toc is non existent
22228 INFO: Building PKG (CArchive) PKG-00.pkg
22262 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
22262 INFO: Bootloader c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\runw.exe
22262 INFO: checking EXE
22262 INFO: Building EXE because EXE-00.toc is non existent
22262 INFO: Building EXE from EXE-00.toc
22262 INFO: Appending archive to EXE C:\Users\User\AppData\Local\Programs\Python\Python38-32\Game\build\starting\starting.exe
22262 INFO: Building EXE from EXE-00.toc completed successfully.
22278 INFO: checking COLLECT
22278 INFO: Building COLLECT because COLLECT-00.toc is non existent
22278 INFO: Building COLLECT COLLECT-00.toc
24784 INFO: Building COLLECT COLLECT-00.toc completed successfully.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question