FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

python module not found

Open yangboz opened this issue 2 years ago • 4 comments
trafficstars

python3: Error while finding module specification for 'fastchat.model.apply_delta' (ModuleNotFoundError: No module named 'fastchat.model')

any idea? thanks. env :python3.9, macOS12.5.1 (21G83) M1

yangboz avatar Apr 08 '23 11:04 yangboz

Did you pipe install fschat? Could you import fastchat in your python environment?

merrymercy avatar Apr 08 '23 12:04 merrymercy

Did you pipe install fschat? Could you import fastchat in your python environment?

yes, here is my pip info

(py39) yangbozs-MacBook-Pro: ~/git/yangboz/FastChat % pip list |grep fschat
fschat                   0.1.8

yangboz avatar Apr 09 '23 01:04 yangboz

@yangboz i have meet this situcation, i just upgrade the pip3 to newest version. (pip 23.0.1) maybe you need this

pip3 install --upgrade pip

Edinburgh020 avatar Apr 10 '23 09:04 Edinburgh020

I'm running into the same situation, I installed it using method one in a venv, that's the only thing I did differently than the guide says. I've got the latest version of pip3 in the venv, all other requirements are met, but when I try and start it, it can't find the module

EDIT: Nevermind, there was a typo in the execution command

Swizzler121 avatar Apr 12 '23 03:04 Swizzler121

Seems the issue is fixed. Closing. Re-open if it happens again.

zhisbug avatar Apr 21 '23 02:04 zhisbug

@yangboz i have meet this situcation, i just upgrade the pip3 to newest version. (pip 23.0.1) maybe you need this

pip3 install --upgrade pip

I have had the same problem, and upgrade my pip to 23.1.2 , But the problem is not resolved, could someone give me some advice?

kloop-guo avatar Jun 06 '23 07:06 kloop-guo

@yangboz i have meet this situcation, i just upgrade the pip3 to newest version. (pip 23.0.1) maybe you need this

pip3 install --upgrade pip

I have had the same problem, and upgrade my pip to 23.1.2 , But the problem is not resolved, could someone give me some advice?

i have resolved this question, The solution is : change fastchat install method don't use Method 1 "pip3 install fschat" , change Method 2 "pip3 install -e ."

kloop-guo avatar Jun 06 '23 07:06 kloop-guo

I've encountered the same issue in my simulations. I'm curious why

ali-vosoughi avatar May 13 '24 06:05 ali-vosoughi