Skip to content

Commit

Permalink
Update mongodb_atlas.py to fix ImportError: cannot import name 'Drive…
Browse files Browse the repository at this point in the history
…rInfo' from 'pymongo'
  • Loading branch information
ruanwz authored Nov 20, 2023
1 parent 190952f commit c43a627
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/langchain/langchain/vectorstores/mongodb_atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def from_connection_string(
try:
from importlib.metadata import version

from pymongo import DriverInfo, MongoClient
from pymongo import MongoClient
from pymongo.driver_info import DriverInfo
except ImportError:
raise ImportError(
"Could not import pymongo, please install it with "
Expand Down

0 comments on commit c43a627

Please sign in to comment.