seamless_communication icon indicating copy to clipboard operation
seamless_communication copied to clipboard

No module named 'seamless_communication' error

Open bandhavya opened this issue 1 year ago • 5 comments

When trying to run the same code in my local. At statement , from seamless_communication.models.inference.translator import Translator

throws error as

line 8, in <module> from seamless_communication.models.inference.translator import Translator ModuleNotFoundError: No module named 'seamless_communication'

bandhavya avatar Sep 28 '23 09:09 bandhavya

Hi @bandhavya did you solve it? I am facing the same issue.

zovelsanj avatar Dec 04 '23 12:12 zovelsanj

The class translator is moved to seamless_communication.inference from seamless_communication.inference.translator import Translator check also the README of inference present here

francescobodria avatar Dec 05 '23 17:12 francescobodria

I am also facing same issue like "File "E:\seamless_communication\seamless_communication\demo\app.py", line 14, in from seamless_communication.models.inference.translator import Translator ModuleNotFoundError: No module named 'seamless_communication'"

TGajanan avatar Dec 13 '23 08:12 TGajanan

from seamless_communication.src.seamless_communication.models.inference.translator import Translator fixed the error in my case. As @francescobodria said, the class translator is moved to seamless_communication.inference.

zovelsanj avatar Dec 13 '23 11:12 zovelsanj

from seamless_communication.src.seamless_communication.models.inference.translator import Translator fixed the error in my case. As @francescobodria said, the class translator is moved to seamless_communication.inference.

Thanks its work for me, I made change" from seamless_communication.inference.translator import Translator"

TGajanan avatar Dec 14 '23 06:12 TGajanan