[GH-ISSUE #271] os.uname() doesn't return Upsilon's version #111

Closed
opened 2026-05-06 13:15:29 +02:00 by BreizhHardware · 5 comments

Originally created by @Yaya-Cout on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/271

Describe the bug
In the output of the uname command of the OS module in Python, there is a “release” field. Upsilon version isn't displayed in this field.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Python app
  2. Create a new script
  3. Add
from os import *
print(uname()["release"])
  1. Execute the script
  2. See error

Expected behavior
Upsilon version should be displayed

Screenshots
image

Device:

  • N0110, Web simulator (I didn't test other simulators)
  • Upsilon Version: 1.0.1-dev
  • Upsilon commit: 1fbd5281a9

Solution
Edit python/port/mod/os/modos.cpp to include Upsilon version

Originally created by @Yaya-Cout on GitHub (Aug 18, 2022). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/271 **Describe the bug** In the output of the uname command of the OS module in Python, there is a “release” field. Upsilon version isn't displayed in this field. **To Reproduce** Steps to reproduce the behavior: 1. Go to the Python app 2. Create a new script 3. Add ```python from os import * print(uname()["release"]) ``` 5. Execute the script 6. See error **Expected behavior** Upsilon version should be displayed **Screenshots** ![image](https://user-images.githubusercontent.com/67095734/185406469-65687786-668d-4b2f-b7d4-4ea07ec126a8.png) **Device:** - N0110, Web simulator (I didn't test other simulators) - Upsilon Version: 1.0.1-dev - Upsilon commit: 1fbd5281a9c07905af130f8060a1e5121f1d1104 **Solution** Edit `python/port/mod/os/modos.cpp` to include Upsilon version
Author
Owner

@cartoone222 commented on GitHub (Jun 18, 2024):

hi this bug have been fix you can close this issue

<!-- gh-comment-id:2176613584 --> @cartoone222 commented on GitHub (Jun 18, 2024): hi this bug have been fix you can close this issue
Author
Owner

@Yaya-Cout commented on GitHub (Jun 18, 2024):

hi this bug have been fix you can close this issue

It's not fixed on upsilon-dev, where is your fix ?

image

<!-- gh-comment-id:2176643290 --> @Yaya-Cout commented on GitHub (Jun 18, 2024): > hi this bug have been fix you can close this issue It's not fixed on `upsilon-dev`, where is your fix ? ![image](https://github.com/UpsilonNumworks/Upsilon/assets/67095734/135c267b-abc4-484e-a237-30aca40973f7)
Author
Owner

@cartoone222 commented on GitHub (Jun 18, 2024):

i have test to replique the bug but nothings

image

image

<!-- gh-comment-id:2176830091 --> @cartoone222 commented on GitHub (Jun 18, 2024): i have test to replique the bug but nothings ![image](https://github.com/UpsilonNumworks/Upsilon/assets/69402484/04f98ac6-dcfa-4d1b-bcf6-f983d997d85f) ![image](https://github.com/UpsilonNumworks/Upsilon/assets/69402484/d338228b-48ef-4072-9508-dadcd9a516ff)
Author
Owner

@Yaya-Cout commented on GitHub (Jun 18, 2024):

On your screenshots, the issue is present : os.uname() doesn't return Upsilon's version.

<!-- gh-comment-id:2176833148 --> @Yaya-Cout commented on GitHub (Jun 18, 2024): On your screenshots, the issue is present : `os.uname()` doesn't return Upsilon's version.
Author
Owner

@cartoone222 commented on GitHub (Jun 18, 2024):

a ok i see the problemme i have miss undestande the first msg img show an pyton error is confusing

<!-- gh-comment-id:2176835229 --> @cartoone222 commented on GitHub (Jun 18, 2024): a ok i see the problemme i have miss undestande the first msg img show an pyton error is confusing
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#111
No description provided.