D:\>pyinstaller -F main.py
854 INFO: PyInstaller: 3.5
854 INFO: Python: 3.8.0
854 INFO: Platform: Windows-10-10.0.18362-SP0
858 INFO: wrote D:\main.spec
862 INFO: UPX is not available.
886 INFO: Extending PYTHONPATH with paths
['D:\\', 'D:\\']
890 INFO: checking Analysis
890 INFO: Building Analysis because Analysis-00.toc is non existent
890 INFO: Initializing module dependency graph...
898 INFO: Initializing module graph hooks...
906 INFO: Analyzing base_library.zip ...
12633 INFO: running Analysis Analysis-00.toc
12655 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\denisca\appdata\local\programs\python\python38-32\python.exe
14478 INFO: Caching module hooks...
14498 INFO: Analyzing D:\main.py
14841 INFO: Processing pre-safe import module hook urllib3.packages.six.moves
18414 INFO: Loading module hooks...
18414 INFO: Loading module hook "hook-certifi.py"...
18418 INFO: Loading module hook "hook-encodings.py"...
18580 INFO: Loading module hook "hook-pydoc.py"...
18584 INFO: Loading module hook "hook-xml.py"...
18748 INFO: Looking for ctypes DLLs
18753 INFO: Analyzing run-time hooks ...
18753 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
18904 INFO: Including run-time hook 'pyi_rth_certifi.py'
18920 INFO: Looking for dynamic libraries
23048 INFO: Looking for eggs
23048 INFO: Using Python library c:\users\denisca\appdata\local\programs\python\python38-32\python38.dll
23052 INFO: Found binding redirects:
[]
23379 INFO: Warnings written to D:\build\main\warn-main.txt
23531 INFO: Graph cross-reference written to D:\build\main\xref-main.html
23603 INFO: checking PYZ
23603 INFO: Building PYZ because PYZ-00.toc is non existent
23606 INFO: Building PYZ (ZlibArchive) D:\build\main\PYZ-00.pyz
Traceback (most recent call last):
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Denisca\AppData\Local\Programs\Python\Python38-32\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 844, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in build
exec(code, spec_namespace)
File "D:\main.spec", line 18, in <module>
pyz = PYZ(a.pure, a.zipped_data,
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 98, in __init__
self.__postinit__()
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
self.assemble()
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 128, in assemble
self.code_dict = {
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 129, in <dictcomp>
key: strip_paths_in_code(code)
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 652, in strip_paths_in_code
consts = tuple(
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 653, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File "c:\users\denisca\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 660, in strip_paths_in_code
return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_stacksize,
TypeError: an integer is required (got type bytes)