Language/Python

[pyinstaller] TypeError: an integer is required (got type bytes)

TechNote.kr 2021. 9. 11. 15:04
728x90

pyinstaller 로 작업하다 "TypeError: an integer is required (got type bytes)" 에러가 발생하였다. 

이와 같이 에러가 발생할 때는 pyinstaller의 버전을 업그레이드하면 문제가 해결된다.

[pyinstaller 업데이트]

PS D:\workspace\pywebview_example> pip install --upgrade pyinstaller
Requirement already satisfied: pyinstaller in d:\python38\lib\site-packages (3.3.1)
Collecting pyinstaller
  Downloading pyinstaller-4.5.1-py3-none-win_amd64.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 6.4 MB/s
Requirement already satisfied: altgraph in d:\python38\lib\site-packages (from pyinstaller) (0.17)
Requirement already satisfied: setuptools in d:\python38\lib\site-packages (from pyinstaller) (56.0.0)
Requirement already satisfied: pefile>=2017.8.1 in d:\python38\lib\site-packages (from pyinstaller) (2019.4.18)
Collecting pyinstaller-hooks-contrib>=2020.6
  Downloading pyinstaller_hooks_contrib-2021.3-py2.py3-none-any.whl (200 kB)
     |████████████████████████████████| 200 kB 6.8 MB/s
Collecting pywin32-ctypes>=0.2.0
  Downloading pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Requirement already satisfied: future in d:\python38\lib\site-packages (from pefile>=2017.8.1->pyinstaller) (0.18.2)
Installing collected packages: pywin32-ctypes, pyinstaller-hooks-contrib, pyinstaller
  Attempting uninstall: pyinstaller
    Found existing installation: PyInstaller 3.3.1
    Uninstalling PyInstaller-3.3.1:
      Successfully uninstalled PyInstaller-3.3.1
Successfully installed pyinstaller-4.5.1 pyinstaller-hooks-contrib-2021.3 pywin32-ctypes-0.2.0

 

[pyinstaller 업데이트 전 에러 발생]

PS D:\workspace\pywebview_example> pyinstaller .\basic.py
389 INFO: PyInstaller: 3.3.1
389 INFO: Python: 3.8.10
422 INFO: Platform: Windows-10-10.0.19043-SP0
423 INFO: wrote D:\workspace\pywebview_example\basic.spec
424 INFO: UPX is not available.
432 INFO: Extending PYTHONPATH with paths
['D:\\workspace\\pywebview_example', 'D:\\workspace\\pywebview_example']
433 INFO: checking Analysis
433 INFO: Building Analysis because out00-Analysis.toc is non existent  
433 INFO: Initializing module dependency graph...
437 INFO: Initializing module graph hooks...
446 INFO: Analyzing base_library.zip ...    
3513 INFO: Processing pre-find module path hook   distutils
7466 INFO: running Analysis out00-Analysis.toc
7470 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by d:\python38\python.exe
7522 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\python.exe
7571 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\python.exe
7623 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:\python38\python.exe
7672 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\python38\python.exe
7719 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\python.exe
7788 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:\python38\python38.dll
7835 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\python38.dll
7895 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python38\python38.dll
7948 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\python38.dll
7998 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:\python38\python38.dll
8077 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of d:\python38\python38.dll
8161 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of d:\python38\python38.dll
8228 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\python38.dll
8288 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of d:\python38\python38.dll
8349 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\python38.dll
8412 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\python38\python38.dll
8469 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\python38.dll
8523 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\VCRUNTIME140.dll
8573 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\VCRUNTIME140.dll
8622 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\VCRUNTIME140.dll
8671 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\VCRUNTIME140.dll
8719 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\VCRUNTIME140.dll
8721 INFO: Caching module hooks...
8727 INFO: Analyzing D:\workspace\pywebview_example\basic.py
9301 INFO: Loading module hooks...
9301 INFO: Loading module hook "hook-clr.py"...
9306 INFO: Loading module hook "hook-distutils.py"...
9310 INFO: Loading module hook "hook-encodings.py"...
9422 INFO: Loading module hook "hook-lib2to3.py"...
9435 INFO: Loading module hook "hook-pydoc.py"...
9437 INFO: Loading module hook "hook-sysconfig.py"...
9439 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
9441 INFO: Loading module hook "hook-xml.py"...
9537 INFO: Loading module hook "hook-_tkinter.py"...
9621 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_tkinter.pyd
9675 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_tkinter.pyd
9739 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_tkinter.pyd
9967 INFO: checking Tree
9968 INFO: Building Tree because out00-Tree.toc is non existent
9968 INFO: Building Tree out00-Tree.toc
10083 INFO: checking Tree
10083 INFO: Building Tree because out01-Tree.toc is non existent
10084 INFO: Building Tree out01-Tree.toc
10116 INFO: Looking for ctypes DLLs
10184 INFO: Analyzing run-time hooks ...
10190 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
10201 INFO: Including run-time hook 'pyi_rth__tkinter.py'
10216 INFO: Looking for dynamic libraries
10279 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_ssl.pyd
10348 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_ssl.pyd
10405 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_ssl.pyd
10460 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_elementtree.pyd
10511 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_elementtree.pyd
10562 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:\python38\DLLs\_elementtree.pyd
10612 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\_elementtree.pyd
10665 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of d:\python38\DLLs\_elementtree.pyd
10718 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_elementtree.pyd
10786 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_multiprocessing.pyd
10844 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32api.pyd
10894 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32api.pyd
10949 WARNING: lib not found: pywintypes38.dll dependency of d:\python38\lib\site-packages\win32\win32api.pyd
10996 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32api.pyd
11049 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32api.pyd
11122 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32evtlog.pyd
11172 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32evtlog.pyd
11228 WARNING: lib not found: pywintypes38.dll dependency of d:\python38\lib\site-packages\win32\win32evtlog.pyd
11278 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32evtlog.pyd
11333 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\pyexpat.pyd
11386 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:\python38\DLLs\pyexpat.pyd
11433 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\pyexpat.pyd
11487 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of d:\python38\DLLs\pyexpat.pyd
11535 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\pyexpat.pyd
11589 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_ctypes.pyd
11645 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_ctypes.pyd
11699 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_ctypes.pyd
11755 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_tkinter.pyd
11806 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_tkinter.pyd
11867 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_tkinter.pyd
11930 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_testcapi.pyd
11986 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_testcapi.pyd
12036 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12101 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12152 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12201 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12253 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12301 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12354 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_decimal.pyd
12407 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_queue.pyd
12464 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_asyncio.pyd
12518 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_overlapped.pyd
12572 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_overlapped.pyd
12621 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\_bz2.pyd
12672 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_bz2.pyd
12722 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\_bz2.pyd
12770 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\python38\DLLs\_bz2.pyd
12823 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_bz2.pyd
12878 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\_lzma.pyd
12926 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_lzma.pyd
12982 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_hashlib.pyd
13031 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_hashlib.pyd
13090 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\_socket.pyd
13140 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\_socket.pyd
13193 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\unicodedata.pyd
13245 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\unicodedata.pyd
13294 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\unicodedata.pyd
13357 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\select.pyd
13442 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32wnet.pyd
13491 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32wnet.pyd
13540 WARNING: lib not found: pywintypes38.dll dependency of d:\python38\lib\site-packages\win32\win32wnet.pyd
13591 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\lib\site-packages\win32\win32wnet.pyd
13647 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\libssl-1_1.dll
13698 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\libssl-1_1.dll
13751 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of d:\python38\DLLs\libssl-1_1.dll
13798 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of d:\python38\DLLs\libssl-1_1.dll
13850 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\DLLs\libssl-1_1.dll
13902 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\libssl-1_1.dll
13973 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14028 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14078 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14128 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14176 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14226 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14278 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14335 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14385 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\libcrypto-1_1.dll
14440 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\libffi-7.dll
14500 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14556 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14608 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14657 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14706 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14765 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14813 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14865 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\tk86t.dll
14935 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
14991 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15040 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15087 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15137 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15190 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15244 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15298 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15349 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of d:\python38\DLLs\tcl86t.dll
15350 INFO: Looking for eggs
15351 INFO: Using Python library d:\python38\python38.dll
15352 INFO: Found binding redirects:
[]
15358 INFO: Warnings written to D:\workspace\pywebview_example\build\basic\warnbasic.txt
15413 INFO: Graph cross-reference written to D:\workspace\pywebview_example\build\basic\xref-basic.html
15467 INFO: checking PYZ
15468 INFO: Building PYZ because out00-PYZ.toc is non existent
15469 INFO: Building PYZ (ZlibArchive) D:\workspace\pywebview_example\build\basic\out00-PYZ.pyz
Traceback (most recent call last):
    sys.exit(load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')())
  File "d:\python38\lib\site-packages\PyInstaller\__main__.py", line 94, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "d:\python38\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
  File "d:\python38\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "d:\python38\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
    exec(text, spec_namespace)
  File "<string>", line 17, in <module>
  File "d:\python38\lib\site-packages\PyInstaller\building\api.py", line 98, in __init__
    self.__postinit__()
  File "d:\python38\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__
    self.assemble()
  File "d:\python38\lib\site-packages\PyInstaller\building\api.py", line 128, in assemble
    self.code_dict = {
  File "d:\python38\lib\site-packages\PyInstaller\building\api.py", line 129, in <dictcomp>
    key: strip_paths_in_code(code)
  File "d:\python38\lib\site-packages\PyInstaller\building\utils.py", line 624, in strip_paths_in_code
    consts = tuple(
  File "d:\python38\lib\site-packages\PyInstaller\building\utils.py", line 625, in <genexpr>
    strip_paths_in_code(const_co, new_filename)
  File "d:\python38\lib\site-packages\PyInstaller\building\utils.py", line 632, 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)
PS D:\workspace\pywebview_example>

 

[pyinstaller 업데이트 후 문제 해결]

PS D:\workspace\pywebview_example> pyinstaller .\basic.py
132 INFO: PyInstaller: 4.5.1
132 INFO: Python: 3.8.10
169 INFO: Platform: Windows-10-10.0.19043-SP0
171 INFO: wrote D:\workspace\pywebview_example\basic.spec
174 INFO: UPX is not available.
179 INFO: Extending PYTHONPATH with paths
['D:\\workspace\\pywebview_example', 'D:\\workspace\\pywebview_example']
566 INFO: checking Analysis
567 INFO: Building Analysis because Analysis-00.toc is non existent
567 INFO: Initializing module dependency graph...
569 INFO: Caching module graph hooks...
595 INFO: Analyzing base_library.zip ...
2841 INFO: Processing pre-find module path hook distutils from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
2844 INFO: distutils: retargeting to non-venv dir 'd:\\python38\\lib'
5256 INFO: Caching module dependency graph...
5445 INFO: running Analysis Analysis-00.toc
5460 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by d:\python38\python.exe
5546 INFO: Analyzing D:\workspace\pywebview_example\basic.py
5920 INFO: Processing module hooks...
5920 INFO: Loading module hook 'hook-clr.py' from 'd:\\python38\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
5936 INFO: Loading module hook 'hook-webview.py' from 'd:\\python38\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
5953 INFO: Loading module hook 'hook-difflib.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
5956 INFO: Loading module hook 'hook-distutils.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
5959 INFO: Loading module hook 'hook-distutils.util.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
5962 INFO: Loading module hook 'hook-encodings.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6076 INFO: Loading module hook 'hook-heapq.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6078 INFO: Loading module hook 'hook-lib2to3.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6197 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6199 INFO: Loading module hook 'hook-pickle.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6202 INFO: Loading module hook 'hook-sysconfig.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6203 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6205 INFO: Loading module hook 'hook-xml.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6273 INFO: Loading module hook 'hook-_tkinter.py' from 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks'...
6451 INFO: checking Tree
6453 INFO: Building Tree because Tree-00.toc is non existent
6453 INFO: Building Tree Tree-00.toc
6518 INFO: checking Tree
6519 INFO: Building Tree because Tree-01.toc is non existent
6519 INFO: Building Tree Tree-01.toc
6637 INFO: checking Tree
6638 INFO: Building Tree because Tree-02.toc is non existent
6638 INFO: Building Tree Tree-02.toc
6652 INFO: Looking for ctypes DLLs
6678 INFO: Analyzing run-time hooks ...
6683 INFO: Including run-time hook 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
6687 INFO: Including run-time hook 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
6690 INFO: Including run-time hook 'd:\\python38\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
6699 INFO: Looking for dynamic libraries
7207 INFO: Looking for eggs
7207 INFO: Using Python library d:\python38\python38.dll
7207 INFO: Found binding redirects:
[]
7211 INFO: Warnings written to D:\workspace\pywebview_example\build\basic\warn-basic.txt
7266 INFO: Graph cross-reference written to D:\workspace\pywebview_example\build\basic\xref-basic.html
7283 INFO: checking PYZ
7284 INFO: Building PYZ because PYZ-00.toc is non existent
7285 INFO: Building PYZ (ZlibArchive) D:\workspace\pywebview_example\build\basic\PYZ-00.pyz
7843 INFO: Building PYZ (ZlibArchive) D:\workspace\pywebview_example\build\basic\PYZ-00.pyz completed successfully.
7856 INFO: checking PKG
7858 INFO: Building PKG because PKG-00.toc is non existent
7858 INFO: Building PKG (CArchive) PKG-00.pkg
7905 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
7907 INFO: Bootloader d:\python38\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
7908 INFO: checking EXE
7909 INFO: Building EXE because EXE-00.toc is non existent
7909 INFO: Building EXE from EXE-00.toc
7987 INFO: Copying icons from ['d:\\python38\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-console.ico']
8050 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes
8050 INFO: Writing RT_ICON 1 resource with 3752 bytes
8050 INFO: Writing RT_ICON 2 resource with 2216 bytes
8051 INFO: Writing RT_ICON 3 resource with 1384 bytes
8051 INFO: Writing RT_ICON 4 resource with 37019 bytes
8051 INFO: Writing RT_ICON 5 resource with 9640 bytes
8051 INFO: Writing RT_ICON 6 resource with 4264 bytes
8053 INFO: Writing RT_ICON 7 resource with 1128 bytes
8059 INFO: Appending archive to EXE D:\workspace\pywebview_example\build\basic\basic.exe
8669 INFO: Building EXE from EXE-00.toc completed successfully.
8673 INFO: checking COLLECT
8674 INFO: Building COLLECT because COLLECT-00.toc is non existent
8675 INFO: Building COLLECT COLLECT-00.toc
9441 INFO: Building COLLECT COLLECT-00.toc completed successfully.
PS D:\workspace\pywebview_example>

 

 

 

728x90