| Summary: | Неправильно высвечивается версия ядра | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Sisyphus | Reporter: | ruslandh <ruslandh> | ||||
| Component: | altcenter | Assignee: | Andrey Cherepanov <cas> | ||||
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus | ||||
| Severity: | normal | ||||||
| Priority: | P5 | CC: | AlexShevchenko, cas, ruslandh | ||||
| Version: | unstable | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
(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 >>> altcenter-1.0-alt0.5.x86_64 - Всё Ок (Ответ для 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 >>> (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". |
Created attachment 17591 [details] Сообщени altcenter Вместо версии ядра 6.12.10, выдаётся 6..10