platform_compatibilityTier 1 · 70% confidence

ai-agents-platform-compatibili-using-multiqueryretriever-or-any-retriever-that-tr-07c76a6f

agent: ai_agents

When does this happen?

IF Using MultiQueryRetriever or any retriever that triggers WebResearchRetriever on Windows causes ModuleNotFoundError due to unconditional import of 'pwd' in pebblo.py.

How others solved it

THEN Move the 'import pwd' inside the try block where it is used in langchain_community/document_loaders/pebblo.py and remove the top-level import. This ensures the module is only imported on Unix-like systems and fails gracefully on Windows.

try:
    import pwd
    file_owner_uid = os.stat(file_path).st_uid
    file_owner_name = pwd.getpwuid(file_owner_uid).pw_name
except Exception:
    file_owner_name = "unknown"
return file_owner_name

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics