pyinstaller не компилирует файл

    C:\Users\Admin\Desktop\тесты>pyinstaller test.py
228 INFO: PyInstaller: 4.3
228 INFO: Python: 3.8.0
229 INFO: Platform: Windows-10-10.0.18362-SP0
232 INFO: wrote C:\Users\Admin\Desktop\тесты\test.spec
235 INFO: UPX is not available.
239 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Admin\\Desktop\\тесты', 'C:\\Users\\Admin\\Desktop\\тесты']
256 INFO: checking Analysis
256 INFO: Building Analysis because Analysis-00.toc is non existent
256 INFO: Initializing module dependency graph...
259 INFO: Caching module graph hooks...
282 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
294 INFO: Analyzing base_library.zip ...
11616 INFO: Caching module dependency graph...
12194 INFO: running Analysis Analysis-00.toc
12199 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\program files\python38-32\python.exe
12354 INFO: Analyzing C:\Users\Admin\Desktop\тесты\test.py
12357 INFO: Processing module hooks...
12358 INFO: Loading module hook 'hook-difflib.py' from 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
12361 INFO: Loading module hook 'hook-encodings.py' from 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
12660 INFO: Loading module hook 'hook-heapq.py' from 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
12665 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
12667 INFO: Import to be excluded not found: 'test'
12668 INFO: Loading module hook 'hook-pickle.py' from 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
12672 INFO: Loading module hook 'hook-xml.py' from 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks'...
13402 INFO: Looking for ctypes DLLs
13411 INFO: Analyzing run-time hooks ...
13420 INFO: Including run-time hook 'c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
13441 INFO: Looking for dynamic libraries
14001 INFO: Looking for eggs
14002 INFO: Using Python library c:\program files\python38-32\python38.dll
14004 INFO: Found binding redirects:
[]
14015 INFO: Warnings written to C:\Users\Admin\Desktop\тесты\build\test\warn-test.txt
14154 INFO: Graph cross-reference written to C:\Users\Admin\Desktop\тесты\build\test\xref-test.html
14283 INFO: checking PYZ
14287 INFO: Building PYZ because PYZ-00.toc is non existent
14288 INFO: Building PYZ (ZlibArchive) C:\Users\Admin\Desktop\тесты\build\test\PYZ-00.pyz
16428 INFO: Building PYZ (ZlibArchive) C:\Users\Admin\Desktop\тесты\build\test\PYZ-00.pyz completed successfully.
16473 INFO: checking PKG
16479 INFO: Building PKG because PKG-00.toc is non existent
16485 INFO: Building PKG (CArchive) PKG-00.pkg
16552 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
16559 INFO: Bootloader c:\program files\python38-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
16559 INFO: checking EXE
16561 INFO: Building EXE because EXE-00.toc is non existent
16562 INFO: Building EXE from EXE-00.toc
16567 INFO: Copying icons from ['c:\\program files\\python38-32\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico']
16679 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
16680 INFO: Writing RT_ICON 1 resource with 3752 bytes
16682 INFO: Writing RT_ICON 2 resource with 2216 bytes
16683 INFO: Writing RT_ICON 3 resource with 1384 bytes
16683 INFO: Writing RT_ICON 4 resource with 37019 bytes
16684 INFO: Writing RT_ICON 5 resource with 9640 bytes
16685 INFO: Writing RT_ICON 6 resource with 4264 bytes
16686 INFO: Writing RT_ICON 7 resource with 1128 bytes
16701 INFO: Appending archive to EXE C:\Users\Admin\Desktop\тесты\build\test\test.exe
Traceback (most recent call last):
  File "c:\program files\python38-32\lib\site-packages\pefile.py", line 1802, in __parse__
    fd = open(fname, 'rb')
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Admin\\Desktop\\тесты\\build\\test\\test.exe'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\program files\python38-32\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files\python38-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python38-32\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\__main__.py", line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 737, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 684, in build
    exec(code, spec_namespace)
  File "C:\Users\Admin\Desktop\тесты\test.spec", line 21, in <module>
    exe = EXE(pyz,
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\building\api.py", line 450, in __init__
    self.__postinit__()
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__
    self.assemble()
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\building\api.py", line 645, in assemble
    set_exe_checksum(self.name)
  File "c:\program files\python38-32\lib\site-packages\PyInstaller\utils\win32\winutils.py", line 168, in set_exe_checksum
    pe = pefile.PE(exe_path)
  File "c:\program files\python38-32\lib\site-packages\pefile.py", line 1754, in __init__
    self.__parse__(name, data, fast_load)
  File "c:\program files\python38-32\lib\site-packages\pefile.py", line 1814, in __parse__
    raise Exception('Unable to access file \'{0}\'{1}'.format(fname, exception_msg))
Exception: Unable to access file 'C:\Users\Admin\Desktop\тесты\build\test\test.exe': [Errno 22] Invalid argument: 'C:\\Users\\Admin\\Desktop\\тесты\\build\\test\\test.exe'

Ответы (0 шт):