FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

No module named 'fastchat.protocol'

Open maceygo opened this issue 11 months ago • 3 comments

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?

maceygo avatar Mar 04 '24 07:03 maceygo

I've encountered the problem. Have you found solution? Thanks!

yftianwin avatar Mar 08 '24 05:03 yftianwin

+1

damon-ldl avatar Mar 12 '24 06:03 damon-ldl

You should install fschat,not fastchat.

kevin-hxq avatar Apr 08 '24 07:04 kevin-hxq