0
0 комментариев

что делать хочу файл питона конвентировать в exe через pyinstaller а пишит это:

Microsoft Windows [Version 10.0.18362.535]
(c) Корпорация Майкрософт (Microsoft Corporation), 2019. Все права защищены.

C:\\Users\\никита\\Desktop\\game\\wer>pyinstaller main.py.py
227 INFO: PyInstaller: 3.5
228 INFO: Python: 3.8.0
229 INFO: Platform: Windows-10-10.0.18362-SP0
231 INFO: wrote C:\\Users\\никита\\Desktop\\game\\wer\\main.py.spec
239 INFO: UPX is not available.
243 INFO: Extending PYTHONPATH with paths
[\’C:\\\\Users\\\\никита\\\\Desktop\\\\game\\\\wer\’,
\’C:\\\\Users\\\\никита\\\\Desktop\\\\game\\\\wer\’]
244 INFO: checking Analysis
244 INFO: Building Analysis because Analysis-00.toc is non existent
244 INFO: Initializing module dependency graph…
251 INFO: Initializing module graph hooks…
257 INFO: Analyzing base_library.zip …
8502 INFO: running Analysis Analysis-00.toc
8509 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\\users\\никита\\appdata\\local\\programs\\python\\python38-32\\python.exe
11846 INFO: Caching module hooks…
11859 INFO: Analyzing C:\\Users\\никита\\Desktop\\game\\wer\\main.py.py
12295 INFO: Loading module hooks…
12295 INFO: Loading module hook \»hook-encodings.py\»…
12535 INFO: Loading module hook \»hook-pydoc.py\»…
12538 INFO: Loading module hook \»hook-xml.py\»…
12975 INFO: Loading module hook \»hook-_tkinter.py\»…
13691 INFO: checking Tree
13692 INFO: Building Tree because Tree-00.toc is non existent
13692 INFO: Building Tree Tree-00.toc
14024 INFO: checking Tree
14024 INFO: Building Tree because Tree-01.toc is non existent
14025 INFO: Building Tree Tree-01.toc
14120 INFO: Looking for ctypes DLLs
14128 INFO: Analyzing run-time hooks …
14136 INFO: Including run-time hook \’pyi_rth_multiprocessing.py\’
14144 INFO: Including run-time hook \’pyi_rth__tkinter.py\’
14158 INFO: Looking for dynamic libraries
25903 INFO: Looking for eggs
25904 INFO: Using Python library c:\\users\\никита\\appdata\\local\\programs\\python\\python38-32\\python38.dll
25906 INFO: Found binding redirects:
[]
25916 INFO: Warnings written to C:\\Users\\никита\\Desktop\\game\\wer\\build\\main.py\\warn-main.py.txt
26025 INFO: Graph cross-reference written to C:\\Users\\никита\\Desktop\\game\\wer\\build\\main.py\\xref-main.py.html
26111 INFO: checking PYZ
26114 INFO: Building PYZ because PYZ-00.toc is non existent
26114 INFO: Building PYZ (ZlibArchive) C:\\Users\\никита\\Desktop\\game\\wer\\build\\main.py\\PYZ-00.pyz
Traceback (most recent call last):
File \»c:\\users\\никита\\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\\никита\\appdata\\local\\programs\\python\\python38-32\\lib\\runpy.py\», line 85, in _run_code
exec(code, run_globals)
File \»C:\\Users\\никита\\AppData\\Local\\Programs\\Python\\Python38-32\\Scripts\\pyinstaller.exe\\__main__.py\», line 7, in <module>
File \»c:\\users\\никита\\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\\никита\\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\\никита\\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\\никита\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\building\\build_main.py\», line 791, in build
exec(code, spec_namespace)
File \»C:\\Users\\никита\\Desktop\\game\\wer\\main.py.spec\», line 18, in <module>
pyz = PYZ(a.pure, a.zipped_data,
File \»c:\\users\\никита\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\building\\api.py\», line 98, in __init__
self.__postinit__()
File \»c:\\users\\никита\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\building\\datastruct.py\», line 158, in __postinit__
self.assemble()
File \»c:\\users\\никита\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\PyInstaller\\building\\api.py\», line 128, in assemble
self.code_dict = {
File \»c:\\users\\никита\\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\\никита\\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\\никита\\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\\никита\\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\\никита\\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\\никита\\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)


Добавить комментарий