Distinguish between Windows 10 and 11 in errors & debug info

On Windows 11, error messages say:

Platform: Windows 10

Debug info says:

Platform: Windows-10-10.0.22631

So, Anki doesn’t distinguish between Win 10 and 11.

Distinguishing between Win 10 and 11 is easy and doing this in Anki may make support easier.

The Windows 11 version is reported as “10.0” with a build number >= 22000.

Source: Windows SDK for Windows 11 (walbourn.github.io)

Basically, unless the application was updated to know about Windows 11, it’s going to think it’s Windows 10.

From: How can my app distinguish between Windows 10 and Windows 11? - Stack Overflow

2 Likes

AFAIK it’s an issue in older Python versions and should be solved when Anki upgrades.

1 Like

Thank you for the answer. I have confirmed that Python 3.12 correctly reports the Windows version.

>>> import platform
>>> platform.release()
'11'
>>> platform.win32_ver()
('11', '10.0.22631', 'SP0', 'Multiprocessor Free')
>>> platform.platform()
'Windows-11-10.0.22631-SP0'
1 Like