Open Mirlili opened 3 months ago
Возможно могли возникнуть проблемы с одной из зависимостью судя по документации lxml библиотеки
Они не подчиняются актуальным стандартам поставки бинарных библиотек, а используют по старинке wheel
Что можно попробовать сделать
установить скомпилированную из репозитория дистрибутива, в большинстве дистрибутивах она имеет название python3-lxml
(ubuntu, debian) или python-lxml
(arch linux). pip(x) должен автоматически найти
установить библиотеки ниже, чтобы pip(x) самостоятельно запустил сборку. gcc/clang компилятор должен быть в наличии если это не alpine:
... Unless you are using a static binary distribution (e.g. from a Windows binary installer), lxml requires libxml2 and libxslt to be installed, in particular:
libxml2 version 2.9.2 or later. libxslt version 1.1.27 or later. We recommend libxslt 1.1.28 or later.
Newer versions generally contain fewer bugs and are therefore recommended. XML Schema support is also still worked on in libxml2, so newer versions will give you better compliance with the W3C spec.
To install the required development packages of these dependencies on Linux systems, use your distribution specific installation tool, e.g. apt-get on Debian/Ubuntu:
sudo apt-get install libxml2-dev libxslt-dev python-dev
For Debian based systems, it should be enough to install the known build dependencies of the provided lxml package, e.g.
sudo apt-get build-dep python3-lxml
Также, я только проверял версии 3.8, 3.10, 3.11, возможно, что это проблемы 3.12
112.9ms (setup:1081): 2024-08-14 22:35:19 113.0ms (setup:1082): /usr/bin/pipx install anicli-ru 113.0ms (setup:1083): pipx version is 1.6.0 113.1ms (setup:1084): Default python interpreter is '/usr/bin/python3.12' 114.8ms (package_name_from_spec:378): Determined package name: anicli-ru 114.8ms (package_name_from_spec:379): Package name determined in 0.0s 115.1ms (create_venv:162): Creating virtual environment 115.7ms (run_subprocess:175): running /usr/bin/python3.12 -m venv --without-pip /root/.local/share/pipx/venvs/anicli-ru 166.7ms (run_subprocess:195): stdout: 166.7ms (run_subprocess:197): stderr: 166.8ms (run_subprocess:198): returncode: 0 167.0ms (run_subprocess:175): running <checking pip's availability> 191.9ms (run_subprocess:195): stdout: ModuleSpec(name='pip', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7a6bdc283a70>, origin='/root/.local/share/pipx/shared/lib/python3.12/site-packages/pip/init.py', submodule_search_locations=['/root/.local/share/pipx/shared/lib/python3.12/site-packages/pip']) 192.0ms (run_subprocess:198): returncode: 0 192.1ms (run_subprocess:175): running /root/.local/share/pipx/venvs/anicli-ru/bin/python -c import sysconfig; print(sysconfig.get_path('purelib')) 216.2ms (run_subprocess:195): stdout: /root/.local/share/pipx/venvs/anicli-ru/lib/python3.12/site-packages 216.3ms (run_subprocess:198): returncode: 0 216.5ms (run_subprocess:175): running /root/.local/share/pipx/shared/bin/python -c import sysconfig; print(sysconfig.get_path('purelib')) 238.9ms (run_subprocess:195): stdout: /root/.local/share/pipx/shared/lib/python3.12/site-packages 239.0ms (run_subprocess:198): returncode: 0 239.3ms (run_subprocess:175): running /root/.local/share/pipx/venvs/anicli-ru/bin/python --version 241.8ms (run_subprocess:195): stdout: Python 3.12.4 241.8ms (run_subprocess:197): stderr: 241.9ms (run_subprocess:198): returncode: 0 242.2ms (_parsed_package_to_package_or_url:139): cleaned package spec: anicli-ru 242.2ms (install_package:245): Installing anicli-ru 242.7ms (run_subprocess:175): running /root/.local/share/pipx/venvs/anicli-ru/bin/python -m pip --no-input install anicli-ru