lm-sys / lm-sys/FastChat

No module named 'fastchat.protocol'

Open
#3,124 3 comments 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

when I run ' python3 -m fastchat.serve.openai_api_server --host localhost --port 8000'

then output error :
Traceback (most recent call last):
File "/work/miniconda3/envs/zq_vllm/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/work/miniconda3/envs/zq_vllm/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/work/miniconda3/envs/zq_vllm/lib/python3.10/site-packages/fastchat/serve/openai_api_server.py", line 39, in
from fastchat.protocol.openai_api_protocol import (
ModuleNotFoundError: No module named 'fastchat.protocol'

my python version is 3.10 and fastchat version is 'fastchat 0.1.0'
which version should I change to?

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

Start by checking the installed FastChat 0.1.0 package and the import in fastchat/serve/openai_api_server.py, then rerun the reported python3 -m fastchat.serve.openai_api_server command. Done means the fastchat.protocol import resolves and the server starts without this ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.