Bug 44130 - Не хватает зависимости на python3-module-asttokens
Summary: Не хватает зависимости на python3-module-asttokens
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: thonny (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Fr. Br. George
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-24 12:19 MSK by Alexander Makeenkov
Modified: 2022-10-24 12:19 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2022-10-24 12:19:59 MSK
Версия пакета:
thonny 3.3.14-alt1

Шаги воспроизведения.
1. Установить и запустить приложение:
# apt-get install thonny
$ thonny

2 .Ввести код:
print('hello world')

3. Сохранить файл.

4. Нажать Ctrl+F5 (или значок жука на панели инструментов).

Получаемый результат:
>>> %Debug test.py
ERROR   thonny.backend: PROBLEM WITH THONNY'S BACK-END
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/thonny/plugins/cpython/cpython_backend.py", line 1276, in execute_source
    root = self._prepare_ast(source, filename, mode)
  File "/usr/lib/python3/site-packages/thonny/plugins/cpython/cpython_backend.py", line 1734, in _prepare_ast
    ast_utils.mark_text_ranges(root, source)
  File "/usr/lib/python3/site-packages/thonny/ast_utils.py", line 178, in mark_text_ranges
    from asttokens.asttokens import ASTTokens
ModuleNotFoundError: No module named 'asttokens'

Проблема решается установкой пакета python3-module-asttokens