No module named 'fastchat.protocol'
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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