question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Building on Windows 7 requires using proper toolchain, old CPython and old MSVC compilers

See original GitHub issue

Hello, 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

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ArkadiuszMichalskicommented, Jan 13, 2021

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.

1reaction
kayhayencommented, Jan 10, 2021

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WindowsCompilers - Python Wiki
Which Microsoft Visual C++ compiler to use with a specific Python version ... Build Tools also allows to install any previous Visual C++...
Read more >
Use the Microsoft C++ toolset from the command line
You can build C and C++ applications on the command line by using tools that are included in Visual Studio. The Microsoft C++...
Read more >
Unable to compile Rust hello world on Windows: linker link ...
It does not solve the original problem (possibly a MSVC faulty installation), Into using a completely different compiler and linker.
Read more >
Get Started with C++ and Mingw-w64 in Visual Studio Code
After configuring VS Code, you will compile and debug a simple Hello World program in VS Code. This tutorial does not teach you...
Read more >
PyStan on Windows
When drawing samples n_jobs=1 must be used); Python 3.5 or higher: Parallel sampling is supported; MSVC compiler is not supported. PyStan requires a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found