Incorrect OS Version Displayed for Windows 11 in marimo env
Command
#1409
Labels
bug
Something isn't working
marimo env
Command
#1409
Describe the bug
The
marimo env
command incorrectly displays the OS version as "10" for Windows 11 systems. This issue arises because theplatform.release()
function relies on the version of thekernel32.dll
file, which remains unchanged between Windows 10 and Windows 11. As a result, the actual Windows version is not accurately reflected.Workaround or Plan to Submit a PR
I have identified a solution that involves using
sys.getwindowsversion().build
to determine if the OS is Windows 11 and updating theOS Version
field accordingly. I am planning to submit a PR with the necessary changes to fix this issue.Stack Trace or Screenshots
N/A
Here’s the problematic output:
The
OS Version
should reflect "11" for Windows 11 systems instead of "10".Environment
Code to reproduce
To reproduce the issue, simply run the
marimo env
command on a Windows 11 machine. The command faces issues in displaying when the OS version is 11.Alternatively, you can use the following minimal reproducible example to observe the issue:
Running this code on a Windows 11 machine will display the incorrect OS version:
Expected Output (on Windows 11):
The text was updated successfully, but these errors were encountered: