Дмитрий Шицков, 3944 INFO: PyInstaller: 3.4
3977 INFO: Python: 3.7.3
3977 INFO: Platform: Windows-7-6.1.7601-SP1
4021 INFO: wrote C:\Users\Warrior\PycharmProjects\untitled3\Match.spec
4062 INFO: UPX is not available.
4065 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Warrior\\PycharmProjects\\untitled3',
'C:\\Users\\Warrior\\PycharmProjects\\untitled3']
4066 INFO: checking Analysis
4103 INFO: Building because inputs changed
4103 INFO: Initializing module dependency graph...
4159 INFO: Initializing module graph hooks...
4183 INFO: Analyzing base_library.zip ...
20002 INFO: running Analysis Analysis-00.toc
20221 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\warrior\pycharmprojects\untitled3\venv\scripts\python.exe
20486 INFO: Caching module hooks...
20521 INFO: Analyzing C:\Users\Warrior\PycharmProjects\untitled3\Match.py
21011 INFO: Loading module hooks...
21012 INFO: Loading module hook "hook-encodings.py"...
21346 INFO: Loading module hook "hook-pydoc.py"...
21386 INFO: Loading module hook "hook-xml.py"...
22311 INFO: Looking for ctypes DLLs
22319 INFO: Analyzing run-time hooks ...
22336 INFO: Looking for dynamic libraries
25425 INFO: Looking for eggs
25426 INFO: Using Python library C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\python37.dll
25426 INFO: Found binding redirects:
[]
25456 INFO: Warnings written to C:\Users\Warrior\PycharmProjects\untitled3\build\Match\warn-Match.txt
25624 INFO: Graph cross-reference written to C:\Users\Warrior\PycharmProjects\untitled3\build\Match\xref-Match.html
25747 INFO: checking PYZ
25816 INFO: Building because name changed
25817 INFO: Building PYZ (ZlibArchive) C:\Users\Warrior\PycharmProjects\untitled3\build\Match\PYZ-00.pyz
27709 INFO: Building PYZ (ZlibArchive) C:\Users\Warrior\PycharmProjects\untitled3\build\Match\PYZ-00.pyz completed successfully.
27778 INFO: checking PKG
27780 INFO: Building PKG because PKG-00.toc is non existent
27782 INFO: Building PKG (CArchive) PKG-00.pkg
Traceback (most recent call last):
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Warrior\PycharmProjects\untitled3\venv\Scripts\pyinstaller.exe\__main__.py", line 9, in
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\build_main.py", line 784, in buil
d
exec(text, spec_namespace)
File "", line 32, in
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\api.py", line 424, in __init__
strip_binaries=self.strip, upx_binaries=self.upx,
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\api.py", line 196, in __init__
self.__postinit__()
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __po
stinit__
self.assemble()
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\api.py", line 273, in assemble
pylib_name = os.path.basename(bindepend.get_python_library_path())
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\ntpath.py", line 214, in basename
return split(p)[1]
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\ntpath.py", line 183, in split
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Дмитрий Шицков, Я хочу выполнить компиляцию файла .py в .exe. Я использовал для этого PyInstaller. Ввел соответствующую команду и произошла ошибка TypeError: expected str, bytes or os.PathLike object, not NoneType.
3977 INFO: Python: 3.7.3
3977 INFO: Platform: Windows-7-6.1.7601-SP1
4021 INFO: wrote C:\Users\Warrior\PycharmProjects\untitled3\Match.spec
4062 INFO: UPX is not available.
4065 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Warrior\\PycharmProjects\\untitled3',
'C:\\Users\\Warrior\\PycharmProjects\\untitled3']
4066 INFO: checking Analysis
4103 INFO: Building because inputs changed
4103 INFO: Initializing module dependency graph...
4159 INFO: Initializing module graph hooks...
4183 INFO: Analyzing base_library.zip ...
20002 INFO: running Analysis Analysis-00.toc
20221 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by c:\users\warrior\pycharmprojects\untitled3\venv\scripts\python.exe
20486 INFO: Caching module hooks...
20521 INFO: Analyzing C:\Users\Warrior\PycharmProjects\untitled3\Match.py
21011 INFO: Loading module hooks...
21012 INFO: Loading module hook "hook-encodings.py"...
21346 INFO: Loading module hook "hook-pydoc.py"...
21386 INFO: Loading module hook "hook-xml.py"...
22311 INFO: Looking for ctypes DLLs
22319 INFO: Analyzing run-time hooks ...
22336 INFO: Looking for dynamic libraries
25425 INFO: Looking for eggs
25426 INFO: Using Python library C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\python37.dll
25426 INFO: Found binding redirects:
[]
25456 INFO: Warnings written to C:\Users\Warrior\PycharmProjects\untitled3\build\Match\warn-Match.txt
25624 INFO: Graph cross-reference written to C:\Users\Warrior\PycharmProjects\untitled3\build\Match\xref-Match.html
25747 INFO: checking PYZ
25816 INFO: Building because name changed
25817 INFO: Building PYZ (ZlibArchive) C:\Users\Warrior\PycharmProjects\untitled3\build\Match\PYZ-00.pyz
27709 INFO: Building PYZ (ZlibArchive) C:\Users\Warrior\PycharmProjects\untitled3\build\Match\PYZ-00.pyz completed successfully.
27778 INFO: checking PKG
27780 INFO: Building PKG because PKG-00.toc is non existent
27782 INFO: Building PKG (CArchive) PKG-00.pkg
Traceback (most recent call last):
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Warrior\PycharmProjects\untitled3\venv\Scripts\pyinstaller.exe\__main__.py", line 9, in
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\build_main.py", line 784, in buil
d
exec(text, spec_namespace)
File "", line 32, in
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\api.py", line 424, in __init__
strip_binaries=self.strip, upx_binaries=self.upx,
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\api.py", line 196, in __init__
self.__postinit__()
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __po
stinit__
self.assemble()
File "c:\users\warrior\pycharmprojects\untitled3\venv\lib\site-packages\PyInstaller\building\api.py", line 273, in assemble
pylib_name = os.path.basename(bindepend.get_python_library_path())
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\ntpath.py", line 214, in basename
return split(p)[1]
File "C:\Users\Warrior\AppData\Local\Programs\Python\Python37-32\lib\ntpath.py", line 183, in split
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType