Hello.  This problem probably has been solved before and if so I apologize 
for cluttering up this forum with already resolved questions.  I am 
relatively new to Python and have only written a few  scripts.  I am having 
trouble creating an executable from a simple Hello Word test script using 
pyinstaller.  This scrip runs correctly from the command line.  When I try 
to build it into an executable I get the following.  To get to this point I 
thought I needed to install the Windows SDK and I see that pyinstaller is 
looking in one of those directories when I get the warnings.  The resulting 
.exe in the dist folder only flashes the command prompt screen then 
closes.  Can you help please? Thanks in advance.


D:\My Documents\St_Walter Info\Video\TallyLights\Software>pyinstaller 
TestScript.py
53 INFO: PyInstaller: 3.6
53 INFO: Python: 3.8.3
53 INFO: Platform: Windows-10-10.0.18362-SP0
53 INFO: wrote D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\TestScript.spec
53 INFO: UPX is not available.
68 INFO: Extending PYTHONPATH with paths
['D:\\My Documents\\St_Walter Info\\Video\\TallyLights\\Software',
 'D:\\My Documents\\St_Walter Info\\Video\\TallyLights\\Software']
68 INFO: checking Analysis
68 INFO: Building Analysis because Analysis-00.toc is non existent
68 INFO: Initializing module dependency graph...
68 INFO: Caching module graph hooks...
68 INFO: Analyzing base_library.zip ...
2659 INFO: Processing pre-find module path hook   distutils
2659 INFO: distutils: retargeting to non-venv dir 
'c:\\users\\tom\\appdata\\local\\programs\\python\\python38\\lib'
5766 INFO: Caching module dependency graph...
5860 INFO: running Analysis Analysis-00.toc
5860 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies 
of final executable
  required by c:\users\tom\appdata\local\programs\python\python38\python.exe
6029 WARNING: Can not get binary dependencies for file: C:\Program Files 
(x86)\Windows Kits\10\Windows Performance 
Toolkit\api-ms-win-core-namedpipe-l1-1-0.dll
6029 WARNING:   Reason: too many values to unpack (expected 2)
Traceback (most recent call last):
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 728, in getImports
    return _getImports_pe(pth)
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 128, in _getImports_pe
    dll, _ = forwarder.split('.')
ValueError: too many values to unpack (expected 2)
6061 WARNING: Can not get binary dependencies for file: C:\Program Files 
(x86)\Windows Kits\10\Windows Performance 
Toolkit\api-ms-win-core-memory-l1-1-0.dll
6061 WARNING:   Reason: too many values to unpack (expected 2)
Traceback (most recent call last):
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 728, in getImports
    return _getImports_pe(pth)
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 128, in _getImports_pe
    dll, _ = forwarder.split('.')
ValueError: too many values to unpack (expected 2)
6061 WARNING: Can not get binary dependencies for file: C:\Program Files 
(x86)\Windows Kits\10\Windows Performance 
Toolkit\api-ms-win-core-libraryloader-l1-1-0.dll
6061 WARNING:   Reason: too many values to unpack (expected 2)
Traceback (most recent call last):
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 728, in getImports
    return _getImports_pe(pth)
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 128, in _getImports_pe
    dll, _ = forwarder.split('.')
ValueError: too many values to unpack (expected 2)
6067 WARNING: Can not get binary dependencies for file: C:\Program Files 
(x86)\Windows Kits\10\Windows Performance 
Toolkit\api-ms-win-core-processthreads-l1-1-0.dll
6067 WARNING:   Reason: too many values to unpack (expected 2)
Traceback (most recent call last):
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 728, in getImports
    return _getImports_pe(pth)
  File 
"c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\bindepend.py",
 
line 128, in _getImports_pe
    dll, _ = forwarder.split('.')
ValueError: too many values to unpack (expected 2)
6114 INFO: Analyzing D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\TestScript.py
6114 INFO: Processing module hooks...
6114 INFO: Loading module hook "hook-distutils.py"...
6114 INFO: Loading module hook "hook-encodings.py"...
6183 INFO: Loading module hook "hook-lib2to3.py"...
6183 INFO: Loading module hook "hook-pydoc.py"...
6183 INFO: Loading module hook "hook-sysconfig.py"...
6183 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
6183 INFO: Loading module hook "hook-xml.py"...
6245 INFO: Loading module hook "hook-_tkinter.py"...
6368 INFO: checking Tree
6368 INFO: Building Tree because Tree-00.toc is non existent
6368 INFO: Building Tree Tree-00.toc
6415 INFO: checking Tree
6415 INFO: Building Tree because Tree-01.toc is non existent
6415 INFO: Building Tree Tree-01.toc
6446 INFO: Looking for ctypes DLLs
6468 INFO: Analyzing run-time hooks ...
6468 INFO: Including run-time hook 'pyi_rth__tkinter.py'
6484 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
6484 INFO: Looking for dynamic libraries
6663 INFO: Looking for eggs
6663 INFO: Using Python library 
c:\users\tom\appdata\local\programs\python\python38\python38.dll
6663 INFO: Found binding redirects:
[]
6663 INFO: Warnings written to D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\build\TestScript\warn-TestScript.txt
6699 INFO: Graph cross-reference written to D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\build\TestScript\xref-TestScript.html
6731 INFO: checking PYZ
6731 INFO: Building PYZ because PYZ-00.toc is non existent
6731 INFO: Building PYZ (ZlibArchive) D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\build\TestScript\PYZ-00.pyz
7211 INFO: Building PYZ (ZlibArchive) D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\build\TestScript\PYZ-00.pyz completed 
successfully.
7219 INFO: checking PKG
7219 INFO: Building PKG because PKG-00.toc is non existent
7219 INFO: Building PKG (CArchive) PKG-00.pkg
7230 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
7230 INFO: Bootloader 
c:\users\tom\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
7230 INFO: checking EXE
7245 INFO: Building EXE because EXE-00.toc is non existent
7245 INFO: Building EXE from EXE-00.toc
7245 INFO: Appending archive to EXE D:\My Documents\St_Walter 
Info\Video\TallyLights\Software\build\TestScript\TestScript.exe
7292 INFO: Building EXE from EXE-00.toc completed successfully.
7292 INFO: checking COLLECT
7292 INFO: Building COLLECT because COLLECT-00.toc is non existent
7292 INFO: Building COLLECT COLLECT-00.toc
12273 INFO: Building COLLECT COLLECT-00.toc completed successfully.

D:\My Documents\St_Walter Info\Video\TallyLights\Software>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/f44a6f08-ad89-479e-833f-acc0316a5eb8o%40googlegroups.com.

Reply via email to