Nuitka: PyCharm: Can't compile anything on Windows 10 in its environment

Created on 21 Jul 2019  路  26Comments  路  Source: Nuitka/Nuitka

Noob here, if I'm missing anything, please do point out.

  • Nuitka version, full Python version and Platform (Windows, OSX, Linux ...)

0.6.4 (stable) / 0.6.5rc4 (dev)
Python: 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)]
Executable: D:\ProgramData\Anaconda3\python.exe
OS: Windows
Arch: x86_64

  • How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source,
    what is a virtualenv ...), this is very important usually.

Nuitka stable from conda or dev from pip, Python from conda.

  • Many times when you get an error from Nuitka, your setup may be so special
    that even a "hello world" program will not work, please try that and report
    it instead.

Exactly. Here's the console output when I try to compile a simple "hello world":

(base) D:\PycharmProjects\hw>python -m nuitka --standalone --show-progress hw.py
Nuitka:INFO:PASS 1:
Nuitka:INFO:Initial optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:PASS 2 ... :
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 36.15 MB (37908480 bytes):
Nuitka:INFO:Total memory usage before running scons: 41.90 MB (43937792 bytes):
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\MainControl.py", line 768, in main
    executePostProcessing(getResultFullpath(main_module))
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\PostProcessing.py", line 59, in executePostProcessing
    lang_id=0,
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 234, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 159, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.
  • Additional info

I tried 3 possible C compilers, as guided by the user manual: VS Build Tools 2019, a standalone MinGW64 installation, or conda's m2w64-gcc. All of them halt at the same place with the same error.
The issues seems almost identical to what's in this comment, except that installing MinGW64 didn't fix it for me (in fact it's the first C compiler I tried).

bug

Most helpful comment

I may find solution.
https://github.com/Nuitka/Nuitka/blob/develop/nuitka/utils/WindowsResources.py#L253
just add 2 lines

def addResourceToFile(target_filename, data, resource_kind, lang_id, res_name):
    import os
    target_filename = os.path.abspath(target_filename)

    update_handle = _openFileWindowsResources(target_filename)

    _updateWindowsResource(update_handle, resource_kind, res_name, lang_id, data)

    _closeFileWindowsResources(update_handle)

I don't know why, just change relative Path to absolute Path, the problem was solved on my system.
Problem occurred on Linux separator?
Please try.

All 26 comments

Ok, I will try and add some traces and checks to to cover this.

When this is the case, it would have to mean that Scons failed to produce an executable, yet gave no error, or which is more possible, that Anaconda3 adds no resources, and maybe that updating without deleting resources fails. I am updating my Anaconda3 right now to see if I can reproduce it myself.

Yours,
Kay

When updating my Anaconda, I am not getting Python 3.7, but Python 3.6.8

I directly got 3.7 from the download page, and 3.7 is the only version I ever used.

I guess I am going to refresh my Anaconda installations then, they seem to be unable to update to the Python 3.7 without internal crashes. Likely there is something new or unexpected about those. I hope to be able to reproduce this then, doesn't seem too specific what you do.

Works for me. Can you provide the output of --show-scons so we can see it. As discussed I am adding checks to Nuitka, so can tell if it's about the binary not being created, or if it's about the Windows resources not being there.

Yours,
Kay

(base) D:\PycharmProjects\hw>python -m nuitka --standalone --show-progress --show-scons hw.py
Nuitka:INFO:PASS 1:
Nuitka:INFO:Initial optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:PASS 2 ... :
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 36.38 MB (38146048 bytes):
Nuitka:INFO:Total memory usage before running scons: 42.55 MB (44621824 bytes):
Scons command: D:\ProgramData\Anaconda3\python.exe -W ignore D:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\inline_copy\bin\scons.py -f D:\ProgramData\Anacon
da3\lib\site-packages\nuitka\build\SingleExe.scons --jobs 12 --warn=no-deprecated --no-site-dir --debug=explain name=hw result_name=hw.dist\hw source_dir=hw.build deb
ug_mode=false python_debug=false unstripped_mode=false module_mode=false full_compat=false experimental= trace_mode=false python_version=3.7 target_arch=x86_64 python
_prefix=D:\ProgramData\Anaconda3 nuitka_src=D:\ProgramData\Anaconda3\lib\site-packages\nuitka\build nuitka_cache=C:\Users\CrossGate\AppData\Local\Nuitka\Nuitka\Cache
module_count=454 result_exe=hw.dist\hw.exe cache_mode=true standalone_mode=true frozen_modules=168 show_scons=true noelf_mode=true
scons: Reading SConscript files ...
SCONS:  Tools= ['default']
Initial CC: cl
Initial CCVERSION: None
Initial CXX: $CC
Initial CXXVERSION: None
SCONS:  Picked compiler: cl
SCONS:  Picked name: cl
Scons compiler: Using C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64\cl.exe (MSVC 14.1)

Scons: Using resource mode: win_resource
scons: Told to run compilation on 12 CPUs.
scons: Unable to find clcache.exe, consider user manual.
scons: Using scons cache inside build directory.
Scons: Launching target: ['hw.dist\\hw.exe']
scons: done reading SConscript files.
scons: Building targets ...
scons: building `hw.build\module.__main__.obj' because it doesn't exist
cl /Fohw.build\module.__main__.obj /c hw.build\module.__main__.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_S
YSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_
FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-pa
ckages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__constants.obj' because it doesn't exist
cl /Fohw.build\__constants.obj /c hw.build\__constants.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\n
uitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__frozen.obj' because it doesn't exist
cl /Fohw.build\__frozen.obj /c hw.build\__frozen.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE
=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_
NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\
build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__helpers.obj' because it doesn't exist
cl /Fohw.build\__helpers.obj /c hw.build\__helpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SI
TE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /
D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\nuitk
a\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\MainProgram.obj' because it doesn't exist
cl /Fohw.build\MainProgram.obj /c hw.build\MainProgram.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\n
uitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCellType.obj' because it doesn't exist
cl /Fohw.build\CompiledCellType.obj /c hw.build\CompiledCellType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA
_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITK
A_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-
packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledFunctionType.obj' because it doesn't exist
cl /Fohw.build\CompiledFunctionType.obj /c hw.build\CompiledFunctionType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\l
ib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledMethodType.obj' because it doesn't exist
cl /Fohw.build\CompiledMethodType.obj /c hw.build\CompiledMethodType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NU
ITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_N
UITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\s
ite-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledGeneratorType.obj' because it doesn't exist
cl /Fohw.build\CompiledGeneratorType.obj /c hw.build\CompiledGeneratorType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3
\lib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCoroutineType.obj' because it doesn't exist
cl /Fohw.build\CompiledCoroutineType.obj /c hw.build\CompiledCoroutineType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3
\lib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledAsyncgenType.obj' because it doesn't exist
cl /Fohw.build\CompiledAsyncgenType.obj /c hw.build\CompiledAsyncgenType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\l
ib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledFrameType.obj' because it doesn't exist
cl /Fohw.build\CompiledFrameType.obj /c hw.build\CompiledFrameType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUIT
KA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUI
TKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\sit
e-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCodeHelpers.obj' because it doesn't exist
cl /Fohw.build\CompiledCodeHelpers.obj /c hw.build\CompiledCodeHelpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib
\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\InspectPatcher.obj' because it doesn't exist
cl /Fohw.build\InspectPatcher.obj /c hw.build\InspectPatcher.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYS
FLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FR
OZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-pack
ages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\MetaPathBasedLoader.obj' because it doesn't exist
cl /Fohw.build\MetaPathBasedLoader.obj /c hw.build\MetaPathBasedLoader.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib
\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.dist\hw.exe' because it doesn't exist
link /nologo /INCREMENTAL:NO /STACK:8388608 /OUT:hw.dist\hw.exe /LIBPATH:D:\ProgramData\Anaconda3\libs Shlwapi.lib Shell32.lib python37.lib hw.build\module.__main__.o
bj hw.build\__constants.obj hw.build\__frozen.obj hw.build\__helpers.obj hw.build\MainProgram.obj hw.build\CompiledCellType.obj hw.build\CompiledFunctionType.obj hw.b
uild\CompiledMethodType.obj hw.build\CompiledGeneratorType.obj hw.build\CompiledCoroutineType.obj hw.build\CompiledAsyncgenType.obj hw.build\CompiledFrameType.obj hw.
build\CompiledCodeHelpers.obj hw.build\InspectPatcher.obj hw.build\MetaPathBasedLoader.obj
scons: done building targets.
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\MainControl.py", line 768, in main
    executePostProcessing(getResultFullpath(main_module))
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\PostProcessing.py", line 59, in executePostProcessing
    lang_id=0,
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 234, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 159, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.

Thanks, I noticed you are using Visual Studio 2019, which is so far expected to fail in other way in Scons. But maybe updating scons to a minor new release, helped with that, not sure, but maybe it still doesn't work correctly. Can you try this one:

https://nuitka.net/doc/factory.html

If it gives you the very same error, that means the issue is not with that, but with the result being produced, being different. If it gives another error, I would like to see that. Now Nuitka checks if the expected file, from /OUT:hw.dist\hw.exe is actually created after calling scons. That is probably for the better.

Maybe only link fails, but Nuitka messes that up (we parse its output to suppress unimportant warnings).

Yours,
Kay

Also, seems Scons 3.1 was released, which does support VS 2019, I will consider merging that during the week.

(Almost) exactly the same error.

(base) D:\PycharmProjects\hw>python -m nuitka --standalone --show-progress --show-scons hw.py
Nuitka:INFO:PASS 1:
Nuitka:INFO:Initial optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:PASS 2 ... :
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 35.22 MB (36929536 bytes):
Nuitka:INFO:Total memory usage before running scons: 42.45 MB (44515328 bytes):
Scons command: D:\ProgramData\Anaconda3\python.exe -W ignore D:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\inline_copy\bin\scons.py -f D:\ProgramData\Anacon
da3\lib\site-packages\nuitka\build\SingleExe.scons --jobs 12 --warn=no-deprecated --no-site-dir --debug=explain name=hw result_name=hw.dist\hw source_dir=hw.build deb
ug_mode=false python_debug=false unstripped_mode=false module_mode=false full_compat=false experimental= trace_mode=false python_version=3.7 target_arch=x86_64 python
_prefix=D:\ProgramData\Anaconda3 nuitka_src=D:\ProgramData\Anaconda3\lib\site-packages\nuitka\build nuitka_cache=C:\Users\CrossGate\AppData\Local\Nuitka\Nuitka\Cache
module_count=454 result_exe=hw.dist\hw.exe cache_mode=true standalone_mode=true frozen_modules=168 show_scons=true noelf_mode=true
scons: Reading SConscript files ...
SCONS:  Tools= ['default']
Initial CC: cl
Initial CCVERSION: None
Initial CXX: $CC
Initial CXXVERSION: None
SCONS:  Picked compiler: cl
SCONS:  Picked name: cl
Scons compiler: Using C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64\cl.exe (MSVC 14.1)

Scons: Using resource mode: win_resource
scons: Told to run compilation on 12 CPUs.
scons: Unable to find clcache.exe, consider user manual.
scons: Using scons cache inside build directory.
Scons: Launching target: ['hw.dist\\hw.exe']
scons: done reading SConscript files.
scons: Building targets ...
scons: building `hw.build\module.__main__.obj' because it doesn't exist
cl /Fohw.build\module.__main__.obj /c hw.build\module.__main__.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_S
YSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_
FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-pa
ckages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__constants.obj' because it doesn't exist
cl /Fohw.build\__constants.obj /c hw.build\__constants.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\n
uitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__frozen.obj' because it doesn't exist
cl /Fohw.build\__frozen.obj /c hw.build\__frozen.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE
=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_
NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\
build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__helpers.obj' because it doesn't exist
cl /Fohw.build\__helpers.obj /c hw.build\__helpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SI
TE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /
D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\nuitk
a\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\MainProgram.obj' because it doesn't exist
cl /Fohw.build\MainProgram.obj /c hw.build\MainProgram.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\n
uitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCellType.obj' because it doesn't exist
cl /Fohw.build\CompiledCellType.obj /c hw.build\CompiledCellType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA
_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITK
A_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-
packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledFunctionType.obj' because it doesn't exist
cl /Fohw.build\CompiledFunctionType.obj /c hw.build\CompiledFunctionType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\l
ib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledMethodType.obj' because it doesn't exist
cl /Fohw.build\CompiledMethodType.obj /c hw.build\CompiledMethodType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NU
ITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_N
UITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\s
ite-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledGeneratorType.obj' because it doesn't exist
cl /Fohw.build\CompiledGeneratorType.obj /c hw.build\CompiledGeneratorType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3
\lib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCoroutineType.obj' because it doesn't exist
cl /Fohw.build\CompiledCoroutineType.obj /c hw.build\CompiledCoroutineType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3
\lib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledAsyncgenType.obj' because it doesn't exist
cl /Fohw.build\CompiledAsyncgenType.obj /c hw.build\CompiledAsyncgenType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\l
ib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledFrameType.obj' because it doesn't exist
cl /Fohw.build\CompiledFrameType.obj /c hw.build\CompiledFrameType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUIT
KA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUI
TKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\sit
e-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCodeHelpers.obj' because it doesn't exist
cl /Fohw.build\CompiledCodeHelpers.obj /c hw.build\CompiledCodeHelpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib
\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\InspectPatcher.obj' because it doesn't exist
cl /Fohw.build\InspectPatcher.obj /c hw.build\InspectPatcher.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYS
FLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FR
OZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-pack
ages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\MetaPathBasedLoader.obj' because it doesn't exist
cl /Fohw.build\MetaPathBasedLoader.obj /c hw.build\MetaPathBasedLoader.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib
\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.dist\hw.exe' because it doesn't exist
link /nologo /INCREMENTAL:NO /STACK:8388608 /OUT:hw.dist\hw.exe /LIBPATH:D:\ProgramData\Anaconda3\libs Shlwapi.lib Shell32.lib python37.lib hw.build\module.__main__.o
bj hw.build\__constants.obj hw.build\__frozen.obj hw.build\__helpers.obj hw.build\MainProgram.obj hw.build\CompiledCellType.obj hw.build\CompiledFunctionType.obj hw.b
uild\CompiledMethodType.obj hw.build\CompiledGeneratorType.obj hw.build\CompiledCoroutineType.obj hw.build\CompiledAsyncgenType.obj hw.build\CompiledFrameType.obj hw.
build\CompiledCodeHelpers.obj hw.build\InspectPatcher.obj hw.build\MetaPathBasedLoader.obj
scons: done building targets.
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\MainControl.py", line 780, in main
    executePostProcessing(getResultFullpath(main_module))
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\PostProcessing.py", line 63, in executePostProcessing
    lang_id=0,
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 252, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 159, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.

I grabbed Build Tools 2019 because I was kinda frustrated yesterday and wanted to get the easiest to find and smallest installation that provides me with cl.exe. If you're sure that it can cause failure I'll try 2017, but given that gcc-based plans also fail I think the problem has to be somewhere else.

I was hoping that you maybe just didn't use --mingw option which you would have to, but given that the binary was created properly, I don't think that makes any sense.

I added code like this:

    if not os.path.exists(result_filename):
        sys.exit(
            "Error, scons failed to create the expected file '%s'. " % result_filename
        )

to make sure the file exists. So that WinError is in fact very strange, and not true. The only thing, I can guess, is that BeginUpdateResource needs its arguments specified as well. Other functions have acted up when that was not present with 64 bits before. I will try and update the code, and let you know when to test again.

Can I ask you to update to current factory, I added the argtypes.

What could be going on is 64 bit pointers getting more or less lucky to use only 32 bits, I have seen such things before. But it's rather desparate.

Yours,
Kay

(base) D:\PycharmProjects\hw>python -m nuitka --standalone --show-progress --show-scons hw.py
Nuitka:INFO:PASS 1:
Nuitka:INFO:Initial optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:PASS 2 ... :
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 19 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 21 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'types', 20 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'types':
Nuitka:INFO:Optimizing module 'os', 19 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'os':
Nuitka:INFO:Optimizing module 'select', 18 more modules to go after that.
Nuitka:INFO:Optimizing module 'pythoncom', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 36.46 MB (38232064 bytes):
Nuitka:INFO:Total memory usage before running scons: 42.69 MB (44761088 bytes):
Scons command: D:\ProgramData\Anaconda3\python.exe -W ignore D:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\inline_copy\bin\scons.py -f D:\ProgramData\Anacon
da3\lib\site-packages\nuitka\build\SingleExe.scons --jobs 12 --warn=no-deprecated --no-site-dir --debug=explain name=hw result_name=hw.dist\hw source_dir=hw.build deb
ug_mode=false python_debug=false unstripped_mode=false module_mode=false full_compat=false experimental= trace_mode=false python_version=3.7 target_arch=x86_64 python
_prefix=D:\ProgramData\Anaconda3 nuitka_src=D:\ProgramData\Anaconda3\lib\site-packages\nuitka\build nuitka_cache=C:\Users\CrossGate\AppData\Local\Nuitka\Nuitka\Cache
module_count=454 result_exe=hw.dist\hw.exe cache_mode=true standalone_mode=true frozen_modules=168 show_scons=true noelf_mode=true
scons: Reading SConscript files ...
SCONS:  Tools= ['default']
Initial CC: cl
Initial CCVERSION: None
Initial CXX: $CC
Initial CXXVERSION: None
SCONS:  Picked compiler: cl
SCONS:  Picked name: cl
Scons compiler: Using C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64\cl.exe (MSVC 14.1)

Scons: Using resource mode: win_resource
scons: Told to run compilation on 12 CPUs.
scons: Unable to find clcache.exe, consider user manual.
scons: Using scons cache inside build directory.
Scons: Launching target: ['hw.dist\\hw.exe']
scons: done reading SConscript files.
scons: Building targets ...
scons: building `hw.build\module.__main__.obj' because it doesn't exist
cl /Fohw.build\module.__main__.obj /c hw.build\module.__main__.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_S
YSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_
FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-pa
ckages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__constants.obj' because it doesn't exist
cl /Fohw.build\__constants.obj /c hw.build\__constants.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\n
uitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__frozen.obj' because it doesn't exist
cl /Fohw.build\__frozen.obj /c hw.build\__frozen.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE
=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_
NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\
build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\__helpers.obj' because it doesn't exist
cl /Fohw.build\__helpers.obj /c hw.build\__helpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SI
TE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /
D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\nuitk
a\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\MainProgram.obj' because it doesn't exist
cl /Fohw.build\MainProgram.obj /c hw.build\MainProgram.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-packages\n
uitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCellType.obj' because it doesn't exist
cl /Fohw.build\CompiledCellType.obj /c hw.build\CompiledCellType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA
_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITK
A_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-
packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledFunctionType.obj' because it doesn't exist
cl /Fohw.build\CompiledFunctionType.obj /c hw.build\CompiledFunctionType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\l
ib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledMethodType.obj' because it doesn't exist
cl /Fohw.build\CompiledMethodType.obj /c hw.build\CompiledMethodType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NU
ITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_N
UITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\s
ite-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledGeneratorType.obj' because it doesn't exist
cl /Fohw.build\CompiledGeneratorType.obj /c hw.build\CompiledGeneratorType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3
\lib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCoroutineType.obj' because it doesn't exist
cl /Fohw.build\CompiledCoroutineType.obj /c hw.build\CompiledCoroutineType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3
\lib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledAsyncgenType.obj' because it doesn't exist
cl /Fohw.build\CompiledAsyncgenType.obj /c hw.build\CompiledAsyncgenType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\l
ib\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledFrameType.obj' because it doesn't exist
cl /Fohw.build\CompiledFrameType.obj /c hw.build\CompiledFrameType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUIT
KA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUI
TKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\sit
e-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\CompiledCodeHelpers.obj' because it doesn't exist
cl /Fohw.build\CompiledCodeHelpers.obj /c hw.build\CompiledCodeHelpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib
\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\InspectPatcher.obj' because it doesn't exist
cl /Fohw.build\InspectPatcher.obj /c hw.build\InspectPatcher.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYS
FLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FR
OZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib\site-pack
ages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.build\MetaPathBasedLoader.obj' because it doesn't exist
cl /Fohw.build\MetaPathBasedLoader.obj /c hw.build\MetaPathBasedLoader.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=454 /D_NUITKA_EXE /ID:\ProgramData\Anaconda3\include /ID:\ProgramData\Anaconda3\PC /Ihw.build /ID:\ProgramData\Anaconda3\lib
\site-packages\nuitka\build\include /ID:\ProgramData\Anaconda3\lib\site-packages\nuitka\build\static_src
scons: building `hw.dist\hw.exe' because it doesn't exist
link /nologo /INCREMENTAL:NO /STACK:8388608 /OUT:hw.dist\hw.exe /LIBPATH:D:\ProgramData\Anaconda3\libs Shlwapi.lib Shell32.lib python37.lib hw.build\module.__main__.o
bj hw.build\__constants.obj hw.build\__frozen.obj hw.build\__helpers.obj hw.build\MainProgram.obj hw.build\CompiledCellType.obj hw.build\CompiledFunctionType.obj hw.b
uild\CompiledMethodType.obj hw.build\CompiledGeneratorType.obj hw.build\CompiledCoroutineType.obj hw.build\CompiledAsyncgenType.obj hw.build\CompiledFrameType.obj hw.
build\CompiledCodeHelpers.obj hw.build\InspectPatcher.obj hw.build\MetaPathBasedLoader.obj
scons: done building targets.
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\MainControl.py", line 780, in main
    executePostProcessing(getResultFullpath(main_module))
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\PostProcessing.py", line 63, in executePostProcessing
    lang_id=0,
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 254, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "D:\ProgramData\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 161, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.

As an aside, I installed VS 2019, and it works without any changes with my development version at least, so no wonder it works on that level for you.

As for ctypes, would you be willing to test the 32 bits version of Anaconda, which will be different for ctypes. I am clearly at loss. I even checked the line numbers, you indeed use factory code. This would help me to know, if I am even looking at the right place.

Yours,
Kay

Sorry for not responding in time. I'm in the middle of a project right now and thus can't afford to set up Anaconda again or have it fail; will try when it's over. Might also try on a virtual machine to isolate the problem.

Ugh. Something stupid within Anaconda ultimately pushed me to uninstall Anaconda and install vanilla Python, and then I thought, hey, might as well try 32-bit now. But still...

D:\PycharmProjects\hw>python -m nuitka --standalone --show-progress --show-scons hw.py
Nuitka:INFO:PASS 1:
Nuitka:INFO:Initial optimization pass.
Nuitka:INFO:Optimizing module '__main__', 18 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 18 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'select', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 18 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 18 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'select', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:PASS 2 ... :
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 18 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 18 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'select', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 25.75 MB (27004928 bytes):
Nuitka:INFO:Total memory usage before running scons: 32.24 MB (33804288 bytes):
Scons command: C:\Program Files (x86)\Python37-32\python.exe -W ignore C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\inline_copy\bin\scons.py -f C
:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\SingleExe.scons --jobs 12 --warn=no-deprecated --no-site-dir --debug=explain name=hw result_name=hw.d
ist\hw source_dir=hw.build debug_mode=false python_debug=false unstripped_mode=false module_mode=false full_compat=false experimental= trace_mode=false python_version
=3.7 target_arch=x86 python_prefix=C:\Program Files (x86)\Python37-32 nuitka_src=C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build nuitka_cache=C:\Use
rs\CrossGate\AppData\Local\Nuitka\Nuitka\Cache module_count=448 result_exe=hw.dist\hw.exe cache_mode=true standalone_mode=true frozen_modules=168 show_scons=true noel
f_mode=true
scons: Reading SConscript files ...
SCONS:  Tools= ['default']
Initial CC: cl
Initial CCVERSION: None
Initial CXX: $CC
Initial CXXVERSION: None
SCONS:  Picked compiler: cl
SCONS:  Picked name: cl
Scons compiler: Using C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86\cl.exe (MSVC 14.2)

Scons: Using resource mode: win_resource
scons: Told to run compilation on 12 CPUs.
scons: Unable to find clcache.exe, consider user manual.
scons: Using scons cache inside build directory.
Scons: Launching target: ['hw.dist\\hw.exe']
scons: done reading SConscript files.
scons: Building targets ...
scons: building `hw.build\module.__main__.obj' because it doesn't exist
cl /Fohw.build\module.__main__.obj /c hw.build\module.__main__.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_S
YSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_
FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Program
Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\__constants.obj' because it doesn't exist
cl /Fohw.build\__constants.obj /c hw.build\__constants.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Program Files (x
86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\__frozen.obj' because it doesn't exist
cl /Fohw.build\__frozen.obj /c hw.build\__frozen.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE
=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_
NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Py
thon37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\__helpers.obj' because it doesn't exist
cl /Fohw.build\__helpers.obj /c hw.build\__helpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SI
TE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /
D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Program Files (x86)\
Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\MainProgram.obj' because it doesn't exist
cl /Fohw.build\MainProgram.obj /c hw.build\MainProgram.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_N
O_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=1
68 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Program Files (x
86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledCellType.obj' because it doesn't exist
cl /Fohw.build\CompiledCellType.obj /c hw.build\CompiledCellType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA
_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITK
A_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Progra
m Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledFunctionType.obj' because it doesn't exist
cl /Fohw.build\CompiledFunctionType.obj /c hw.build\CompiledFunctionType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC
:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledMethodType.obj' because it doesn't exist
cl /Fohw.build\CompiledMethodType.obj /c hw.build\CompiledMethodType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NU
ITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_N
UITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Pr
ogram Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledGeneratorType.obj' because it doesn't exist
cl /Fohw.build\CompiledGeneratorType.obj /c hw.build\CompiledGeneratorType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/
IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledCoroutineType.obj' because it doesn't exist
cl /Fohw.build\CompiledCoroutineType.obj /c hw.build\CompiledCoroutineType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0
 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURC
E /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/
IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledAsyncgenType.obj' because it doesn't exist
cl /Fohw.build\CompiledAsyncgenType.obj /c hw.build\CompiledAsyncgenType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /
D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE
/D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC
:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledFrameType.obj' because it doesn't exist
cl /Fohw.build\CompiledFrameType.obj /c hw.build\CompiledFrameType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUIT
KA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUI
TKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Prog
ram Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledCodeHelpers.obj' because it doesn't exist
cl /Fohw.build\CompiledCodeHelpers.obj /c hw.build\CompiledCodeHelpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\
Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\InspectPatcher.obj' because it doesn't exist
cl /Fohw.build\InspectPatcher.obj /c hw.build\InspectPatcher.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYS
FLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FR
OZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\Program Fi
les (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\MetaPathBasedLoader.obj' because it doesn't exist
cl /Fohw.build\MetaPathBasedLoader.obj /c hw.build\MetaPathBasedLoader.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_
NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D
_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build "/IC:\
Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.dist\hw.exe' because it doesn't exist
link /nologo /INCREMENTAL:NO /STACK:4194304 /OUT:hw.dist\hw.exe "/LIBPATH:C:\Program Files (x86)\Python37-32\libs" Shlwapi.lib Shell32.lib python37.lib hw.build\modul
e.__main__.obj hw.build\__constants.obj hw.build\__frozen.obj hw.build\__helpers.obj hw.build\MainProgram.obj hw.build\CompiledCellType.obj hw.build\CompiledFunctionT
ype.obj hw.build\CompiledMethodType.obj hw.build\CompiledGeneratorType.obj hw.build\CompiledCoroutineType.obj hw.build\CompiledAsyncgenType.obj hw.build\CompiledFrame
Type.obj hw.build\CompiledCodeHelpers.obj hw.build\InspectPatcher.obj hw.build\MetaPathBasedLoader.obj
scons: done building targets.
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\MainControl.py", line 781, in main
    executePostProcessing(getResultFullpath(main_module))
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\PostProcessing.py", line 63, in executePostProcessing
    lang_id=0,
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\utils\WindowsResources.py", line 254, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\utils\WindowsResources.py", line 161, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.

This is indeed amazing. Either something very special is happening on your system, or I just released a version of Nuitka that supports no Windows compilation.

Can you retry with 0.6.5 from PyPI?

Yours,
Kay

Okay, this is amusing. I went to reinstall pip from Windows Command Prompt, then for convenience ran Nuitka from there as well, and boom, it compiled successfully and gives me a working executable.
So it turns out the problem is PyCharm's built-in Terminal tab, which I've been running Nuitka from all this time, also for convenience. Sorry for not explicitly mentioning PyCharm, I didn't think it'd be the culprit... Probably some env variables missing there? Do you need me to do something to track this down?

Yes, please, if you can, since environment variables should ideally have no impact like this.

Can I ask you to give me the output of a hello world compilation using this one in PyCharm?

https://nuitka.net/doc/factory.html

D:\PycharmProjects\hw>python -m nuitka --standalone --show-progress --show-scons hw.py
Nuitka:INFO:PASS 1:
Nuitka:INFO:Initial optimization pass.
Nuitka:INFO:Optimizing module '__main__', 18 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 18 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'select', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 18 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 18 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'select', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:PASS 2 ... :
Nuitka:INFO:Next global optimization pass.
Nuitka:INFO:Optimizing module '__main__', 18 more modules to go after that.
Nuitka:INFO:Doing module local optimizations for '__main__'.
Nuitka:INFO:Optimizing module 'site', 18 more modules to go after that.
Nuitka:INFO:Doing module dependency considerations for 'site':
Nuitka:INFO:Optimizing module 'select', 17 more modules to go after that.
Nuitka:INFO:Optimizing module 'pyexpat', 16 more modules to go after that.
Nuitka:INFO:Optimizing module '_tkinter', 15 more modules to go after that.
Nuitka:INFO:Optimizing module '_ssl', 14 more modules to go after that.
Nuitka:INFO:Optimizing module '_sqlite3', 13 more modules to go after that.
Nuitka:INFO:Optimizing module '_socket', 12 more modules to go after that.
Nuitka:INFO:Optimizing module '_queue', 11 more modules to go after that.
Nuitka:INFO:Optimizing module '_overlapped', 10 more modules to go after that.
Nuitka:INFO:Optimizing module '_multiprocessing', 9 more modules to go after that.
Nuitka:INFO:Optimizing module '_msi', 8 more modules to go after that.
Nuitka:INFO:Optimizing module '_lzma', 7 more modules to go after that.
Nuitka:INFO:Optimizing module '_hashlib', 6 more modules to go after that.
Nuitka:INFO:Optimizing module '_elementtree', 5 more modules to go after that.
Nuitka:INFO:Optimizing module '_decimal', 4 more modules to go after that.
Nuitka:INFO:Optimizing module '_ctypes', 3 more modules to go after that.
Nuitka:INFO:Optimizing module '_asyncio', 2 more modules to go after that.
Nuitka:INFO:Optimizing module 'unicodedata', 1 more modules to go after that.
Nuitka:INFO:Optimizing module '_bz2', 0 more modules to go after that.
Nuitka:INFO:Total memory usage before generating C code: 25.95 MB (27205632 bytes):
Nuitka:INFO:Total memory usage before running scons: 32.81 MB (34402304 bytes):
Scons command: C:\Program Files (x86)\Python37-32\python.exe -W ignore C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\inline_copy\bin\scons.py -f C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\Sing
leExe.scons --jobs 12 --warn=no-deprecated --no-site-dir --debug=explain name=hw result_name=hw.dist\hw source_dir=hw.build debug_mode=false python_debug=false unstripped_mode=false module_mode=false full_compat=false experimental= tra
ce_mode=false python_version=3.7 target_arch=x86 python_prefix=C:\Program Files (x86)\Python37-32 nuitka_src=C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build nuitka_cache=C:\Users\CrossGate\AppData\Local\Nuitka\Nuitka\
Cache module_count=448 result_exe=hw.dist\hw.exe cache_mode=true standalone_mode=true frozen_modules=168 show_scons=true noelf_mode=true
scons: Reading SConscript files ...
Scons: Tools= ['default']
Scons: Initial CC: cl
Scons: Initial CCVERSION: None
Scons. Initial CXX: $CC
Scons: Initial CXXVERSION: None
Scons: Picked compiler: cl
Scons: Picked name: cl
Scons: Using C11 mode: False
Scons: Compiler used C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86\cl.exe (MSVC 14.2)

Scons: Using resource mode: win_resource
Scons: Told to run compilation on 12 CPUs.
Scons: Unable to find clcache.exe, consider reading user manual.
Scons: Using scons cache inside build directory.
Scons: Launching target: ['hw.dist\\hw.exe']
scons: done reading SConscript files.
scons: Building targets ...
scons: building `hw.build\module.__main__.obj' because it doesn't exist
scons: building `hw.build\__constants.obj' because it doesn't exist
cl /Fohw.build\module.__main__.obj /c hw.build\module.__main__.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0
 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\P
C" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
cl /Fohw.build\__constants.obj /c hw.build\__constants.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUIT
KA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.
build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\__frozen.obj' because it doesn't exist
cl /Fohw.build\__frozen.obj /c hw.build\__frozen.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYS
FLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.build
"/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\__helpers.obj' because it doesn't exist
cl /Fohw.build\__helpers.obj /c hw.build\__helpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_S
YSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.buil
d "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\MainProgram.obj' because it doesn't exist
cl /Fohw.build\MainProgram.obj /c hw.build\MainProgram.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUIT
KA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC" /Ihw.
build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledCellType.obj' because it doesn't exist
cl /Fohw.build\CompiledCellType.obj /c hw.build\CompiledCellType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8
=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32
\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledFunctionType.obj' because it doesn't exist
cl /Fohw.build\CompiledFunctionType.obj /c hw.build\CompiledFunctionType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSF
LAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Pyt
hon37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledMethodType.obj' because it doesn't exist
cl /Fohw.build\CompiledMethodType.obj /c hw.build\CompiledMethodType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_
UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python3
7-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledGeneratorType.obj' because it doesn't exist
cl /Fohw.build\CompiledGeneratorType.obj /c hw.build\CompiledGeneratorType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SY
SFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\P
ython37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledCoroutineType.obj' because it doesn't exist
cl /Fohw.build\CompiledCoroutineType.obj /c hw.build\CompiledCoroutineType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SY
SFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\P
ython37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledAsyncgenType.obj' because it doesn't exist
cl /Fohw.build\CompiledAsyncgenType.obj /c hw.build\CompiledAsyncgenType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSF
LAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Pyt
hon37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledFrameType.obj' because it doesn't exist
cl /Fohw.build\CompiledFrameType.obj /c hw.build\CompiledFrameType.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UT
F8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-
32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\CompiledCodeHelpers.obj' because it doesn't exist
cl /Fohw.build\CompiledCodeHelpers.obj /c hw.build\CompiledCodeHelpers.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLA
G_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Pytho
n37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\InspectPatcher.obj' because it doesn't exist
cl /Fohw.build\InspectPatcher.obj /c hw.build\InspectPatcher.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /
D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Python37-32\PC"
 /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.build\MetaPathBasedLoader.obj' because it doesn't exist
cl /Fohw.build\MetaPathBasedLoader.obj /c hw.build\MetaPathBasedLoader.cpp /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLA
G_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=448 /D_NUITKA_EXE "/IC:\Program Files (x86)\Python37-32\include" "/IC:\Program Files (x86)\Pytho
n37-32\PC" /Ihw.build "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\include" "/IC:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\build\static_src"
scons: building `hw.dist\hw.exe' because it doesn't exist
link /nologo /INCREMENTAL:NO /STACK:4194304 /OUT:hw.dist\hw.exe "/LIBPATH:C:\Program Files (x86)\Python37-32\libs" Shlwapi.lib Shell32.lib python37.lib hw.build\module.__main__.obj hw.build\__constants.obj hw.build\__frozen.obj hw.buil
d\__helpers.obj hw.build\MainProgram.obj hw.build\CompiledCellType.obj hw.build\CompiledFunctionType.obj hw.build\CompiledMethodType.obj hw.build\CompiledGeneratorType.obj hw.build\CompiledCoroutineType.obj hw.build\CompiledAsyncgenTyp
e.obj hw.build\CompiledFrameType.obj hw.build\CompiledCodeHelpers.obj hw.build\InspectPatcher.obj hw.build\MetaPathBasedLoader.obj
scons: done building targets.
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\MainControl.py", line 779, in main
    executePostProcessing(getResultFullpath(main_module))
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\PostProcessing.py", line 65, in executePostProcessing
    lang_id=0,
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\utils\WindowsResources.py", line 254, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\nuitka\utils\WindowsResources.py", line 161, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2] The system cannot find the file specified.

Ok, so it's not the environment variables related to the compiler, CCFLAGS, CXXFLAGS, or CPPFLAGS. And I added checks for compiler arch previously, now also effektive against link.exe so we are not speaking of architecture mismatch either. :/

Hello , I have a similar problem.
Windows10 64bit
Python3.6.7 Anaconda3

Traceback (most recent call last):
  File "C:\Users\nooman\Anaconda3\lib\site-packages\nuitka\__main__.py", line 184, in <module>
    main()
  File "C:\Users\nooman\Anaconda3\lib\site-packages\nuitka\__main__.py", line 177, in main
    MainControl.main()
  File "C:\Users\nooman\Anaconda3\lib\site-packages\nuitka\MainControl.py", line 781, in main
    executePostProcessing(getResultFullpath(main_module))
  File "C:\Users\nooman\Anaconda3\lib\site-packages\nuitka\PostProcessing.py", line 63, in executePostProcessing
    lang_id=0,
  File "C:\Users\nooman\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 256, in addResourceToFile
    update_handle = _openFileWindowsResources(target_filename)
  File "C:\Users\nooman\Anaconda3\lib\site-packages\nuitka\utils\WindowsResources.py", line 162, in _openFileWindowsResources
    raise ctypes.WinError()
FileNotFoundError: [WinError 2]

This program try to open aaa.dist\aaa.exe.
I checked by insert os.path.exists(target_filename) and it returns True, the exe exist.
Next, I open the exe by REPL with same way and find it success, I cannot find what's problem.
The problem doesn't always happen, it looks sometimes success.

I may find solution.
https://github.com/Nuitka/Nuitka/blob/develop/nuitka/utils/WindowsResources.py#L253
just add 2 lines

def addResourceToFile(target_filename, data, resource_kind, lang_id, res_name):
    import os
    target_filename = os.path.abspath(target_filename)

    update_handle = _openFileWindowsResources(target_filename)

    _updateWindowsResource(update_handle, resource_kind, res_name, lang_id, data)

    _closeFileWindowsResources(update_handle)

I don't know why, just change relative Path to absolute Path, the problem was solved on my system.
Problem occurred on Linux separator?
Please try.

The workaround of @namuyan is on develop now, and might be followed up by more changes later, it seems we might have discovered a issue with how the ctypes binding is defined, this is going to be soon on factory, I am adding the tag now already, although it will appear only later there.

Ok, I will try and add some traces and checks to to cover this.

When this is the case, it would have to mean that Scons failed to produce an executable, yet gave no error, or which is more possible, that Anaconda3 adds no resources, and maybe that updating without deleting resources fails. I am updating my Anaconda3 right now to see if I can reproduce it myself.

Yours,
Kay

same issue i face @kayhayen

This was solved in 0.6.6 in another issue, both the CXXFLAGS and the resource issues were blocking out of the box usage for some cases. Let me know if this persists with the release state.

Was this page helpful?
0 / 5 - 0 ratings