Kausik Sharma
Kausik Sharma

Reputation: 21

No module named 'pwd' while use 'from langchain_community.document_loaders import WebBaseLoader'

When I start to use webloader with 'from langchain_community.document_loaders import WebBaseLoader' then got error of missing 'pwd' module Picture of error

Upvotes: 2

Views: 5461

Answers (2)

Abdullah Bin Aftab
Abdullah Bin Aftab

Reputation: 1

This helped me in my RAG model in python 3.11.4

from langchain_community.document_loaders import PyPDFLoader
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())

Upvotes: 0

DIMKA_4621
DIMKA_4621

Reputation: 51

This bug has already been fixed on GitHub langchain. We have to wait for the next version of langchain-community. Now you can install the previous pip install langchain-community==0.0.19

Upvotes: 5

Related Questions