Are you forgetting this?
from langchain_huggingface import HuggingFacePipeline, HuggingFaceEmbeddings
When you get that error, it is often because the data itself has not been retrieved and is empty, or because you have written [ or ( in the wrong way.
P.S.
I found it.