-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Hi I encountered multiples issues while trying to install trankit library
I've tried multiple pyenv python versions and every gives me some error (different every time)
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
python --version
Python 3.10.13
pip --version
pip 23.0.1 from /home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip (python 3.10)
And then
pip install --no-cache-dir trankit==1.1.2
Collecting trankit==1.1.2
Downloading trankit-1.1.2-py3-none-any.whl (92 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.1/92.1 kB 883.9 kB/s eta 0:00:00
Collecting filelock
Downloading filelock-3.20.3-py3-none-any.whl (16 kB)
Collecting protobuf
Downloading protobuf-6.33.4-cp39-abi3-manylinux2014_x86_64.whl (323 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.3/323.3 kB 3.3 MB/s eta 0:00:00
Collecting regex!=2019.12.17
Downloading regex-2026.1.15-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (791 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 791.8/791.8 kB 8.5 MB/s eta 0:00:00
Collecting six
Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
Collecting transformers
Downloading transformers-4.57.5-py3-none-any.whl (12.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.0/12.0 MB 10.6 MB/s eta 0:00:00
Collecting requests
Downloading requests-2.32.5-py3-none-any.whl (64 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.7/64.7 kB 74.6 MB/s eta 0:00:00
Requirement already satisfied: numpy in /home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages (from trankit==1.1.2) (1.26.4)
Collecting sacremoses
Downloading sacremoses-0.1.1-py3-none-any.whl (897 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 897.5/897.5 kB 9.1 MB/s eta 0:00:00
Collecting tqdm>=4.27
Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 57.4 MB/s eta 0:00:00
Collecting tokenizers>=0.7.0
Downloading tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 8.6 MB/s eta 0:00:00
ERROR: Exception:
Traceback (most recent call last):
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 419, in run
requirement_set = resolver.resolve(
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 204, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in bool
return bool(self._sequence)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
return any(self)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
candidate = func()
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 268, in init
cache_entry = factory.get_wheel_cache_entry(link, name)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 543, in get_wheel_cache_entry
supported_tags=get_supported(),
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_internal/utils/compatibility_tags.py", line 142, in get_supported
supported.extend(
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/packaging/tags.py", line 210, in cpython_tags
platforms = list(platforms or platform_tags())
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/packaging/tags.py", line 425, in _linux_platforms
yield from _manylinux.platform_tags(linux, arch)
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/packaging/_manylinux.py", line 295, in platform_tags
if _is_compatible(tag, arch, glibc_version):
File "/home/max/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip/_vendor/packaging/_manylinux.py", line 237, in _is_compatible
import _manylinux # noqa
File "", line 1027, in _find_and_load
File "", line 1002, in _find_and_load_unlocked
File "", line 945, in _find_spec
File "", line 1439, in find_spec
File "", line 1406, in _get_spec
TypeError: str() argument 'encoding' must be str, not tuple
WARNING: There was an error checking the latest version of pip.