Bug 57637 - newelle устанавливает сторонние python модули без спроса пользователя
Summary: newelle устанавливает сторонние python модули без спроса пользователя
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: newelle (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 major
Assignee: snk@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-25 13:21 MSK by Alexander Makeenkov
Modified: 2026-01-25 21:10 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 2026-01-25 13:21:28 MSK
newelle-1.2.0-alt1

При запуске без какого либо вопроса и подтверждения начинает устанавливать через pip сторонние модули:


```
$ newelle

(newelle:1235338): Adwaita-WARNING **: 07:56:00.262: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Downloading pip...
--2026-01-25 07:56:00--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.192.175, 151.101.128.175, 151.101.0.175, ...
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.192.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2182415 (2.1M) [text/x-python]
Saving to: 'get-pip.py'

get-pip.py                                                                                                   0%[                                                                                                                                                                                                                                                                                      ]       0  --.-KB/s               E
get-pip.py                                                                                                  34%[==============================================================================================>                                                                                                                                                                                       ] 731.00K  3.56MB/s
(newelle:1235338): Adwaita-WARNING **: 07:56:00.814: Given child of type 'AdwPreferencesGroup' not found in AdwViewStack
get-pip.py                                                                                                 100%[=====================================================================================================================================================================================================================================================================================>]   2.08M  7.83MB/s    in 0.3s

2026-01-25 07:56:00 (7.83 MB/s) - 'get-pip.py' saved [2182415/2182415]

Exception in thread Thread-148 (load_handlers):
Traceback (most recent call last):
  File "/usr/lib64/python3.13/threading.py", line 1045, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/usr/lib64/python3.13/threading.py", line 996, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/newelle/newelle/controller.py", line 798, in load_handlers
    self.embedding.load_model()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/newelle/newelle/handlers/embeddings/model2vec.py", line 33, in load_model
    from model2vec import StaticModel
ModuleNotFoundError: No module named 'model2vec'
  WARNING: The scripts pip, pip3 and pip3.13 are installed in '/home/amakeenk/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Collecting pip-install-test
  Downloading pip_install_test-0.5-py3-none-any.whl.metadata (979 bytes)
Downloading pip_install_test-0.5-py3-none-any.whl (1.7 kB)
Installing collected packages: pip-install-test
Successfully installed pip-install-test-0.5
pip-install-test installed
Collecting speechrecognition
  Downloading speechrecognition-3.14.5-py3-none-any.whl.metadata (30 kB)
Collecting typing-extensions (from speechrecognition)
  Using cached typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
Collecting standard-aifc (from speechrecognition)
  Downloading standard_aifc-3.13.0-py3-none-any.whl.metadata (969 bytes)
Collecting audioop-lts (from speechrecognition)
  Downloading audioop_lts-0.2.2-cp313-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (2.0 kB)
Collecting standard-chunk (from standard-aifc->speechrecognition)
  Downloading standard_chunk-3.13.0-py3-none-any.whl.metadata (860 bytes)
Downloading speechrecognition-3.14.5-py3-none-any.whl (32.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.9/32.9 MB 65.9 MB/s  0:00:00
Downloading audioop_lts-0.2.2-cp313-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (85 kB)
Downloading standard_aifc-3.13.0-py3-none-any.whl (10 kB)
Downloading standard_chunk-3.13.0-py3-none-any.whl (4.9 kB)
Using cached typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Installing collected packages: standard-chunk, typing-extensions, audioop-lts, standard-aifc, speechrecognition
Successfully installed audioop-lts-0.2.2 speechrecognition-3.14.5 standard-aifc-3.13.0 standard-chunk-3.13.0 typing-extensions-4.15.0
speechrecognition installed
Collecting model2vec
  Downloading model2vec-0.7.0-py3-none-any.whl.metadata (16 kB)
Collecting jinja2 (from model2vec)
  Downloading jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)

^CERROR: Operation cancelled by user
```

Это недопустимо, поскольку могут возникнуть конфликты с уже установленными модулями из репозитория, что приведёт к ошибкам в работе зависимых приложений.
Comment 1 Repository Robot 2026-01-25 21:10:04 MSK
newelle-1.2.0-alt2 -> sisyphus:

Sun Jan 25 2026 Nikolay Strelkov <snk@altlinux> 1.2.0-alt2
- Inform user about downloading data into home folder (closes: #57637):
  + Use Python3 pip from the repository.
  + Added post-install warning message about downloading files into home folder.
- Added missed lsb-release dependency.