Запускаю pyinstaller main.py. Одна и та же ошибка для любого исходного кода, вплоть до пресловутого print("hello world")
Pyinstaller самый свежий, пайтон вроде тоже
Вот что выдает лог запуска:
PS C:\python_project\test> pyinstaller main.py
1662 INFO: PyInstaller: 5.7.0
1662 INFO: Python: 3.10.0
1723 INFO: Platform: Windows-10-10.0.17763-SP0
1723 INFO: wrote C:\python_project\test\main.spec
1733 INFO: UPX is not available.
1743 INFO: Extending PYTHONPATH with paths
['C:\\python_project\\test']
Traceback (most recent call last):
File "C:\python\lib\site-packages\PyInstaller\isolated\_parent.py", line 373, in call
return isolated.call(function, *args, **kwargs)
File "C:\python\lib\site-packages\PyInstaller\isolated\_parent.py", line 302, in call
ok, output = loads(b64decode(self._read_handle.readline()))
EOFError: EOF read where object expected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\python\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\python\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "C:\python\lib\site-packages\PyInstaller\__main__.py", line 194, in _console_script_run
run()
File "C:\python\lib\site-packages\PyInstaller\__main__.py", line 180, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\python\lib\site-packages\PyInstaller\__main__.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\python\lib\site-packages\PyInstaller\building\build_main.py", line 971, in main
build(specfile, distpath, workpath, clean_build)
File "C:\python\lib\site-packages\PyInstaller\building\build_main.py", line 893, in build
exec(code, spec_namespace)
File "C:\python_project\test\main.spec", line 7, in <module>
a = Analysis(
File "C:\python\lib\site-packages\PyInstaller\building\build_main.py", line 378, in __init__
self.hookspath += discover_hook_directories()
File "C:\python\lib\site-packages\PyInstaller\isolated\_parent.py", line 404, in wrapped
return call(function, *args, **kwargs)
File "C:\python\lib\site-packages\PyInstaller\isolated\_parent.py", line 372, in call
with Python() as isolated:
File "C:\python\lib\site-packages\PyInstaller\isolated\_parent.py", line 244, in __exit__
self._write_handle.flush()
OSError: [Errno 22] Invalid argument