lm-sys / lm-sys/FastChat

pip3 install "fschat[model_worker,webui]" failed at Collecting sentencepiece (from fschat[model_worker,webui]) Downloading sentencepiece-0.1.99-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB)

Open
#2,405 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

camel) mt@hahaha camel % pip3 install "fschat[model_worker,webui]"
Collecting fschat[model_worker,webui]
Obtaining dependency information for fschat[model_worker,webui] from https://files.pythonhosted.org/packages/80/f4/4b64f15206171b3c11ffa0ffd4a534d0e7ed39cb5b75f2386192b2da5711/fschat-0.2.28-py3-none-any.whl.metadata
Downloading fschat-0.2.28-py3-none-any.whl.metadata (18 kB)
Requirement already satisfied: aiohttp in /opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages (from fschat[model_worker,webui]) (3.8.5)
Collecting fastapi (from fschat[model_worker,webui])
Obtaining dependency information for fastapi from https://files.pythonhosted.org/packages/76/e5/ca411b260caa4e72f9ac5482f331fe74fd4eb5b97aa74d1d2806ccf07e2c/fastapi-0.103.1-py3-none-any.whl.metadata
Downloading fastapi-0.103.1-py3-none-any.whl.metadata (24 kB)
Collecting httpx (from fschat[model_worker,webui])
Obtaining dependency information for httpx from https://files.pythonhosted.org/packages/33/0d/d9ce469af019741c8999711d36b270ff992ceb1a0293f73f9f34fdf131e9/httpx-0.25.0-py3-none-any.whl.metadata
Downloading httpx-0.25.0-py3-none-any.whl.metadata (7.6 kB)
Collecting markdown2[all] (from fschat[model_worker,webui])
Obtaining dependency information for markdown2[all] from https://files.pythonhosted.org/packages/f1/98/61276a753f078dd2f3171c9a69fd3f451d220e806b2b1cdca41b8e368b0f/markdown2-2.4.10-py2.py3-none-any.whl.metadata
Downloading markdown2-2.4.10-py2.py3-none-any.whl.metadata (2.0 kB)
Collecting nh3 (from fschat[model_worker,webui])
Obtaining dependency information for nh3 from https://files.pythonhosted.org/packages/c1/e5/6f8b8ffb51b0e676b9e058c881bd7db68e4e29a82797a06ff598f9c6a251/nh3-0.2.14-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.metadata
Downloading nh3-0.2.14-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.metadata (1.6 kB)
Requirement already satisfied: numpy in /opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages (from fschat[model_worker,webui]) (1.25.2)
Collecting prompt-toolkit>=3.0.0 (from fschat[model_worker,webui])
Obtaining dependency information for prompt-toolkit>=3.0.0 from https://files.pythonhosted.org/packages/a9/b4/ba77c84edf499877317225d7b7bc047a81f7c2eed9628eeb6bab0ac2e6c9/prompt_toolkit-3.0.39-py3-none-any.whl.metadata
Downloading prompt_toolkit-3.0.39-py3-none-any.whl.metadata (6.4 kB)
Collecting pydantic<2,>=1 (from fschat[model_worker,webui])
Obtaining dependency information for pydantic<2,>=1 from https://files.pythonhosted.org/packages/4d/96/c381c5fc6eaaec252d3acb89c6babc5f500e71feb6c5b612f6fe602bc0a2/pydantic-1.10.12-cp310-cp310-macosx_11_0_arm64.whl.metadata
Downloading pydantic-1.10.12-cp310-cp310-macosx_11_0_arm64.whl.metadata (149 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.3/149.3 kB 3.7 kB/s eta 0:00:00
Requirement already satisfied: requests in /opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages (from fschat[model_worker,webui]) (2.31.0)
Collecting rich>=10.0.0 (from fschat[model_worker,webui])
Obtaining dependency information for rich>=10.0.0 from https://files.pythonhosted.org/packages/8d/5f/21a93b2ec205f4b79853ff6e838e3c99064d5dbe85ec6b05967506f14af0/rich-13.5.2-py3-none-any.whl.metadata
Downloading rich-13.5.2-py3-none-any.whl.metadata (18 kB)
Collecting shortuuid (from fschat[model_worker,webui])
Downloading shortuuid-1.0.11-py3-none-any.whl (10 kB)
Requirement already satisfied: tiktoken in /opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages (from fschat[model_worker,webui]) (0.4.0)
Collecting uvicorn (from fschat[model_worker,webui])
Obtaining dependency information for uvicorn from https://files.pythonhosted.org/packages/79/96/b0882a1c3f7ef3dd86879e041212ae5b62b4bd352320889231cc735a8e8f/uvicorn-0.23.2-py3-none-any.whl.metadata
Downloading uvicorn-0.23.2-py3-none-any.whl.metadata (6.2 kB)
Collecting accelerate>=0.21 (from fschat[model_worker,webui])
Obtaining dependency information for accelerate>=0.21 from https://files.pythonhosted.org/packages/4d/a7/05c67003d659a0035f2b3a8cf389c1d9645865aee84a73ce99ddab16682f/accelerate-0.22.0-py3-none-any.whl.metadata
Downloading accelerate-0.22.0-py3-none-any.whl.metadata (17 kB)
Collecting peft (from fschat[model_worker,webui])
Obtaining dependency information for peft from https://files.pythonhosted.org/packages/37/1a/8d20e8704da9fa070eb909265584b960da57be1d833d550c59f50906dc5c/peft-0.5.0-py3-none-any.whl.metadata
Downloading peft-0.5.0-py3-none-any.whl.metadata (22 kB)
Collecting sentencepiece (from fschat[model_worker,webui])
Downloading sentencepiece-0.1.99-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━ 0.9/1.2 MB 4.8 kB/s eta 0:00:47
ERROR: Exception:
Traceback (most recent call last):
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
yield
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/http/client.py", line 466, in read
s = self.fp.read(amt)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
return func(self, options, args)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 377, in run
requirement_set = resolver.resolve(
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in bool
return bool(self._sequence)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in bool
return any(self)
File "/opt/homebrew/anaconda3/envs/camel/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 "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
candidate = func()
File "/opt/homebrew/anaconda3/envs/camel/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 "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 293, in init
super().init(
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in init
self.dist = self._prepare()
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare
dist = self._prepare_distribution()
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 538, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 609, in _prepare_linked_requirement
local_file = unpack_url(
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 166, in unpack_url
file = get_http_url(
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 107, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/network/download.py", line 147, in call
for chunk in chunks:
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 560, in read
with self._error_catcher():
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/opt/homebrew/anaconda3/envs/camel/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No project file or test is named. Start by reproducing pip3 install "fschat[model_worker,webui]" on the reported macOS/Python 3.10 environment and inspect the sentencepiece download timeout; done means the requested extras install successfully or the dependency failure is documented with a project-level remedy.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.