Building on Windows 7 requires using proper toolchain, old CPython and old MSVC compilers
See original GitHub issueHello, I like the new option. I am testing compatibility according to Windows version. I used the --onefile option, but there was an error in Windows 7.
Env
0.6.10 Python: 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 16:33:24) [MSC v.1928 32 bit (Intel)] Executable: C:\Python\python.exe OS: Windows Arch: x86
NUITKA v(0, 6, 10) on Python 3.9.1 (win32) is compiling 'C:/Users/MK/Desktop/Py_Project/test.py' with these options:
--standalone
--recurse-none
--hinted-json-file=C:/Users/MK/Desktop/Py_Project/test-39-win32-32.json
--plugin-enable=qt-plugins
--include-qt-plugins=sensible,styles
--remove-output
--windows-product-version=1.0.0.0
--windows-company-name=MK
--windows-file-description=MK
--output-dir=../Nuitka
--onefile
--windows-icon-from-ico=exe.ico
test.py
import pathlib
print(pathlib.Path(__file__))
input()
Result
Windows 10 x32 : OK Windows 10 x64 : OK Windows 7 x32 : Error
Windows 7 Error Code:
Problem signature: Problem Event Name: APPCRASH Application Name: test.exe Application Version: 1.0.0.0 Application Timestamp: 5fd76c7b Fault Module Name: KERNELBASE.dll Fault Module Version: 6.1.7601.24168 Fault Module Timestamp: 5b1aa77b Exception Code: c0000005 Exception Offset: 0000c510 OS Version: 6.1.7601.2.1.0.256.1 Locale ID: 1033 Additional Information 1: 0a9e Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 Additional Information 3: 0a9e Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (11 by maintainers)
Top GitHub Comments
OK, after a few tests, the last working WinPython for Win7 is WinPython_3.6.3.0: https://github.com/winpython/winpython/releases/tag/1.9.20171031 Both pip and nuitka work without any problems. Unfortunately, we have a slightly older version of python and we have to be careful with the commands we use, but if someone really cares about the portable version for Win7, they have a hint ready.
Thanks for the tips.
@Pro100rus32 love you for that, I will add it to the docs, I knew it in theory, but it’s easy to not have it on your mind.
As for mingw, do not install it, let Nuitka download it for you. Just don’t have it in PATH.
And from the Executable: output, that is just plain
sys.executable
and indicative of your Python not feeling at home on that OS, or not with the installation path it is finding itself in. You might have to go back further. Or at least, you might have to install to something that doesn’t contain anything that is not ASCII.Ah, and don’t use WinPython, it might be gargage or more aggressive about Windows 7 support, or… I considered checking out, if Nuitka supports it, but right now it does not. Use CPython or Anaconda, those I know work.