Bug 52807 - Неправильно высвечивается версия ядра
Summary: Неправильно высвечивается версия ядра
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: altcenter (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-24 10:29 MSK by ruslandh
Modified: 2025-01-29 21:47 MSK (History)
3 users (show)

See Also:


Attachments
Сообщени altcenter (38.31 KB, image/png)
2025-01-24 10:29 MSK, ruslandh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ruslandh 2025-01-24 10:29:58 MSK
Created attachment 17591 [details]
Сообщени altcenter

Вместо версии ядра 6.12.10, выдаётся 6..10
Comment 1 Garrett 2025-01-29 13:16:54 MSK
(In reply to ruslandh from comment #0)
> Created attachment 17591 [details]
> Сообщени altcenter
> 
> Вместо версии ядра 6.12.10, выдаётся 6..10

На вкладке "О системе"?
Я смотрел код, там используется модуль os из python3.

Проверьте у себя в терминале как светится версия ядра:

$ python3
Python 3.12.8 (main, Dec  5 2024, 22:16:34) [GCC 14.2.1 20241028 (ALT Sisyphus 14.2.1-alt1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print(os.uname().release)
6.6.74-6.6-alt1
>>>
Comment 2 ruslandh 2025-01-29 13:58:40 MSK
altcenter-1.0-alt0.5.x86_64 - Всё Ок
Comment 3 ruslandh 2025-01-29 14:04:26 MSK
(Ответ для Garrett на комментарий #1)
Извините, не заметил:

Python 3.12.8 (main, Dec  5 2024, 22:16:34) [GCC 14.2.1 20241028 (ALT Sisyphus 14.2.1-alt1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>>  print(os.uname().release)
  File "<stdin>", line 1
    print(os.uname().release)
IndentationError: unexpected indent
>>>  print(os.uname().release)
  File "<stdin>", line 1
    print(os.uname().release)
IndentationError: unexpected indent
>>>
Comment 4 Garrett 2025-01-29 21:47:13 MSK
(In reply to ruslandh from comment #3)
> (Ответ для Garrett на комментарий #1)
> Извините, не заметил:
> 
> Python 3.12.8 (main, Dec  5 2024, 22:16:34) [GCC 14.2.1 20241028 (ALT
> Sisyphus 14.2.1-alt1)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>>  print(os.uname().release)
>   File "<stdin>", line 1
>     print(os.uname().release)
> IndentationError: unexpected indent
> >>>  print(os.uname().release)
>   File "<stdin>", line 1
>     print(os.uname().release)
> IndentationError: unexpected indent
> >>>

У вас лишний пробел перед print.
import и print должны иметь одинаковый отступ слева.
Или создайте файл, к примеру k.py, со след.содержимым:

import os
print(os.uname().release)

и выполните команду "python3 k.py".